EvaluationOpenControlView.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. namespace EMIS.ViewModel.EvaluationManage
  8. {
  9. public class EvaluationOpenControlView
  10. {
  11. /// <summary>
  12. /// 主键ID
  13. /// </summary>
  14. public Guid EvaluationGradeControlID { get; set; }
  15. /// <summary>
  16. /// 学年学期
  17. /// </summary>
  18. [DisplayName("学年学期")]
  19. [Required]
  20. public Guid? SchoolyearID { get; set; }
  21. /// <summary>
  22. /// 学年学期Code
  23. /// </summary>
  24. [DisplayName("学年学期")]
  25. public string SchoolyearCode { get; set; }
  26. /// <summary>
  27. /// 开始时间
  28. /// </summary>
  29. [Required]
  30. [DisplayName("开始时间")]
  31. public DateTime? StartTime { get; set; }
  32. public string StartTimeStr {
  33. get
  34. {
  35. string Time = string.Empty;
  36. if (StartTime != null)
  37. Time = StartTime.Value.Year + "/" + StartTime.Value.Month + "/" + StartTime.Value.Day;
  38. return Time;
  39. }
  40. }
  41. /// <summary>
  42. /// 结束时间
  43. /// </summary>
  44. [Required]
  45. [DisplayName("结束时间")]
  46. public DateTime? EndTime { get; set; }
  47. public string EndTimeStr
  48. {
  49. get
  50. {
  51. string Time = string.Empty;
  52. if (StartTime != null)
  53. Time = EndTime.Value.Year + "/" + EndTime.Value.Month + "/" + EndTime.Value.Day;
  54. return Time;
  55. }
  56. }
  57. /// <summary>
  58. /// 可评次数
  59. /// </summary>
  60. [Required]
  61. [DisplayName("可评次数")]
  62. public int? EvaluationCount { get; set; }
  63. /// <summary>
  64. /// 院系所ID
  65. /// </summary>
  66. [Required]
  67. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  68. public Guid? CollegeID { get; set; }
  69. /// <summary>
  70. /// 院系所名称
  71. /// </summary>
  72. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  73. public string CollegeName { get; set; }
  74. /// <summary>
  75. /// 年级专业
  76. /// </summary>
  77. [Required]
  78. [DisplayName("年级专业")]
  79. public Guid? GrademajorID { get; set; }
  80. /// <summary>
  81. /// 年级专业编号
  82. /// </summary>
  83. public string GrademajorCode { get; set; }
  84. /// <summary>
  85. /// 年级专业名称
  86. /// </summary>
  87. [DisplayName("年级专业名称")]
  88. public string GrademajorName { get; set; }
  89. }
  90. }