SchoolYearView.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 Bowin.Common.DataTime;
  8. namespace EMIS.ViewModel.CalendarManage
  9. {
  10. public class SchoolYearView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid? SchoolYearID { get; set; }
  17. /// <summary>
  18. /// 学年学期
  19. /// </summary>
  20. [Required]
  21. [DisplayName("学年学期")]
  22. public string Code { get; set; }
  23. /// <summary>
  24. /// 学年
  25. /// </summary>
  26. [Required]
  27. [DisplayName("学年")]
  28. public int? Years { get; set; }
  29. /// <summary>
  30. /// 学期
  31. /// </summary>
  32. [Required]
  33. [DisplayName("学期")]
  34. public int? SchoolcodeID { get; set; }
  35. /// <summary>
  36. /// 学期
  37. /// </summary>
  38. [Required]
  39. [DisplayName("学期")]
  40. public string SchoolcodeName { get; set; }
  41. /// <summary>
  42. /// 学年学期全名
  43. /// </summary>
  44. public string FullName { get; set; }
  45. /// <summary>
  46. /// 周数
  47. /// </summary>
  48. [Required]
  49. [DisplayName("周数")]
  50. public int? WeeksNum { get; set; }
  51. /// <summary>
  52. /// 毕业学期ID
  53. /// </summary>
  54. public Guid? GraduateSchoolyearID { get; set; }
  55. ///<summary>
  56. ///毕业日期
  57. ///</summary>
  58. [Required]
  59. [DisplayName("毕业日期")]
  60. public DateTime? GraduateDate { get; set; }
  61. public string GraduateDateStr
  62. {
  63. get
  64. {
  65. string date = "";
  66. if (GraduateDate.HasValue)
  67. {
  68. date = GraduateDate.Value.Year + "年" + GraduateDate.Value.Month + "月" + GraduateDate.Value.Day + "日";
  69. }
  70. return date;
  71. }
  72. }
  73. /// <summary>
  74. /// 首周周一日期
  75. /// </summary>
  76. [Required]
  77. [DisplayName("首周周一日期")]
  78. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
  79. public DateTime? FirstWeek { get; set; }
  80. /// <summary>
  81. /// Value
  82. /// </summary>
  83. [DisplayName("Value")]
  84. public int? Value { get; set; }
  85. ///<summary>
  86. ///默认
  87. ///</summary>
  88. [DisplayName("默认")]
  89. public int? RecordStatus { get; set; }
  90. /// <summary>
  91. /// 是否当前学期
  92. /// </summary>
  93. [DisplayName("是否当前学期")]
  94. public bool IsCurrent { get; set; }
  95. /// <summary>
  96. /// 是否当前学期
  97. /// </summary>
  98. [DisplayName("是否当前学期")]
  99. public string Current { get; set; }
  100. /// <summary>
  101. /// 每周工作天数
  102. /// </summary>
  103. [Required]
  104. [DisplayName("每周工作天数")]
  105. public int? WeekDays { get; set; }
  106. /// <summary>
  107. /// 创建人
  108. /// </summary>
  109. [DisplayName("创建人")]
  110. public Guid? CreateUserID { get; set; }
  111. /// <summary>
  112. /// 创建时间
  113. /// </summary>
  114. [DisplayName("创建时间")]
  115. public DateTime? CreateTime { get; set; }
  116. /// <summary>
  117. /// 更新人
  118. /// </summary>
  119. [DisplayName("更新人")]
  120. public Guid? ModifyUserID { get; set; }
  121. /// <summary>
  122. /// 更新时间
  123. /// </summary>
  124. [DisplayName("更新时间")]
  125. public DateTime? ModifyTime { get; set; }
  126. }
  127. }