GraduationSchoolYearView.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.GraduationManage.GraduationSetting
  9. {
  10. public class GraduationSchoolYearView
  11. {
  12. ///<summary>
  13. ///主键ID
  14. ///</summary>
  15. [DisplayName("主键ID")]
  16. public Guid GraduationSchoolYearSettingID { get; set; }
  17. /// <summary>
  18. /// 毕业学期ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("毕业学期ID")]
  22. public Guid? GraduatingSemesterID { get; set; }
  23. /// <summary>
  24. /// 毕业学期
  25. /// </summary>
  26. [DisplayName("毕业学期")]
  27. public string GraduatingSemesterCode { get; set; }
  28. /// <summary>
  29. /// 学年
  30. /// </summary>
  31. [DisplayName("学年")]
  32. public int? Years { get; set; }
  33. /// <summary>
  34. /// 学期
  35. /// </summary>
  36. [DisplayName("学期")]
  37. public int? SchoolcodeID { get; set; }
  38. /// <summary>
  39. /// 学期
  40. /// </summary>
  41. [DisplayName("学期")]
  42. public string SchoolcodeName
  43. {
  44. get
  45. {
  46. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  47. }
  48. }
  49. /// <summary>
  50. /// 周数
  51. /// </summary>
  52. [DisplayName("周数")]
  53. public int? WeeksNum { get; set; }
  54. /// <summary>
  55. /// 每周工作天数
  56. /// </summary>
  57. [DisplayName("每周工作天数")]
  58. public int? WeekDays { get; set; }
  59. ///<summary>
  60. ///毕业日期
  61. ///</summary>
  62. [Required]
  63. [DisplayName("毕业日期")]
  64. public DateTime? GraduateDate { get; set; }
  65. /// <summary>
  66. /// 是否当前学期
  67. /// </summary>
  68. [DisplayName("是否当前学期")]
  69. public bool IsCurrent { get; set; }
  70. /// <summary>
  71. /// 是否当前学期
  72. /// </summary>
  73. [DisplayName("是否当前学期")]
  74. public string IsCurrentName { get; set; }
  75. /// <summary>
  76. /// 启用状态
  77. /// </summary>
  78. [DisplayName("启用状态")]
  79. public bool IsEnable { get; set; }
  80. /// <summary>
  81. /// 启用状态
  82. /// </summary>
  83. [DisplayName("启用状态")]
  84. public string IsEnableName { get; set; }
  85. /// <summary>
  86. /// 毕业学期Value
  87. /// </summary>
  88. [DisplayName("Value")]
  89. public int? GraduatingSemesterValue { get; set; }
  90. /// <summary>
  91. /// 状态
  92. /// </summary>
  93. [DisplayName("状态")]
  94. public int? RecordStatus { get; set; }
  95. /// <summary>
  96. /// 创建人
  97. /// </summary>
  98. [DisplayName("创建人")]
  99. public Guid? CreateUserID { get; set; }
  100. /// <summary>
  101. /// 创建时间
  102. /// </summary>
  103. [DisplayName("创建时间")]
  104. public DateTime? CreateTime { get; set; }
  105. /// <summary>
  106. /// 修改人
  107. /// </summary>
  108. [DisplayName("修改人")]
  109. public Guid? ModifyUserID { get; set; }
  110. /// <summary>
  111. /// 修改时间
  112. /// </summary>
  113. [DisplayName("修改时间")]
  114. public DateTime? ModifyTime { get; set; }
  115. }
  116. }