using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.PaymentManage { public class WorktimeAdjustmentView { public System.Guid WorktimeAdjustmentID { get; set; } [DisplayName("学年学期")] public Nullable SchoolyearID { get; set; } public string SchoolyearCode { get; set; } [Required] [DisplayName("登记类型")] public Nullable WorktimeAdjustmentTypeID { get; set; } public string WorktimeAdjustmentTypeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.TP_WorktimeAdjustmentType.ToString()) .Where(x => x.Value == WorktimeAdjustmentTypeID) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("调整日期")] public DateTime? AdjustDate { get; set; } [Required] [DisplayName("教师")] public Nullable UserID { get; set; } public string TeacherName { get; set; } [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public Nullable CollegeID { get; set; } [DisplayName("年级")] public Nullable GradeYearID { get; set; } [DisplayName("专业")] public Nullable StandardID { get; set; } [DisplayName("课程")] public Nullable CoursematerialID { get; set; } public string CourseCode { get; set; } public string CourseName { get; set; } [Required] [DisplayName("任务班")] public Nullable EducationMissionClassID { get; set; } public string EducationMissionClassName { get; set; } [Required] [DisplayName("课时数")] public Nullable Worktime { get; set; } [DisplayName("记录时间")] public Nullable CreateTime { get; set; } } }