123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- using Bowin.Common.DataTime;
- namespace EMIS.ViewModel.CalendarManage
- {
- public class SchoolYearView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid? SchoolYearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [Required]
- [DisplayName("学年学期")]
- public string Code { get; set; }
- /// <summary>
- /// 学年
- /// </summary>
- [Required]
- [DisplayName("学年")]
- public int? Years { get; set; }
- /// <summary>
- /// 学期
- /// </summary>
- [Required]
- [DisplayName("学期")]
- public int? SchoolcodeID { get; set; }
- /// <summary>
- /// 学期
- /// </summary>
- [Required]
- [DisplayName("学期")]
- public string SchoolcodeName { get; set; }
- /// <summary>
- /// 学年学期全名
- /// </summary>
- public string FullName { get; set; }
- /// <summary>
- /// 周数
- /// </summary>
- [Required]
- [DisplayName("周数")]
- public int? WeeksNum { get; set; }
- /// <summary>
- /// 毕业学期ID
- /// </summary>
- public Guid? GraduateSchoolyearID { get; set; }
- ///<summary>
- ///毕业日期
- ///</summary>
- [Required]
- [DisplayName("毕业日期")]
- public DateTime? GraduateDate { get; set; }
- public string GraduateDateStr
- {
- get
- {
- string date = "";
- if (GraduateDate.HasValue)
- {
- date = GraduateDate.Value.Year + "年" + GraduateDate.Value.Month + "月" + GraduateDate.Value.Day + "日";
- }
- return date;
- }
- }
- /// <summary>
- /// 首周周一日期
- /// </summary>
- [Required]
- [DisplayName("首周周一日期")]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
- public DateTime? FirstWeek { get; set; }
- /// <summary>
- /// Value
- /// </summary>
- [DisplayName("Value")]
- public int? Value { get; set; }
- ///<summary>
- ///默认
- ///</summary>
- [DisplayName("默认")]
- public int? RecordStatus { get; set; }
-
- /// <summary>
- /// 是否当前学期
- /// </summary>
- [DisplayName("是否当前学期")]
- public bool IsCurrent { get; set; }
- /// <summary>
- /// 是否当前学期
- /// </summary>
- [DisplayName("是否当前学期")]
- public string Current { get; set; }
- /// <summary>
- /// 每周工作天数
- /// </summary>
- [Required]
- [DisplayName("每周工作天数")]
- public int? WeekDays { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 更新人
- /// </summary>
- [DisplayName("更新人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 更新时间
- /// </summary>
- [DisplayName("更新时间")]
- public DateTime? ModifyTime { get; set; }
- }
- }
|