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 WorktimeAdditionView { public System.Guid WorktimeAdditionID { get; set; } [Required] [DisplayName("学年学期")] public Nullable SchoolyearID { get; set; } public string SchoolyearCode { get; set; } [DisplayName("教师单位")] public Nullable CollegeID { get; set; } public string CollegeNo { get; set; } public string CollegeName { get; set; } [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public Nullable StudentCollegeID { get; set; } [Required] [DisplayName("教师")] public Nullable UserID { get; set; } public string TeacherName { get; set; } [Required] [DisplayName("月份")] public int? Month { get; set; } [DisplayName("年级")] public Nullable GradeYearID { get; set; } [DisplayName("专业")] public Nullable StandardID { get; set; } public string StandardDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()) .Where(x => x.Value == StandardID) .Select(x => x.Name).FirstOrDefault(); } } [Required] [DisplayName("年级专业")] public Nullable GrademajorID { get; set; } public string GrademajorName { get; set; } [Required] [DisplayName("课程名称")] public Nullable CoursematerialID { get; set; } public string CourseCode { get; set; } public string CourseName { get; set; } [Required] [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")] public Nullable CourseCollegeID { get; set; } public string CourseCollegeNo { get; set; } public string CourseCollegeName { get; set; } [DisplayName("任务班名")] public string EducationMissionClassName { get; set; } [Required] [DisplayName("授课方式")] public Nullable TeachingModeID { get; set; } public string TeachingModeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()) .Where(x => x.Value == TeachingModeID) .Select(x => x.Name).FirstOrDefault(); } } [Required] [DisplayName("任课方式")] public Nullable TeachType { get; set; } public string TeachTypeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString()) .Where(x => x.Value == TeachType) .Select(x => x.Name).FirstOrDefault(); } } [Required] [DisplayName("学生人数")] public Nullable StudentCount { get; set; } [Required] [DisplayName("课时数")] public Nullable CourseTime { get; set; } [DisplayName("备注")] public string Remark { get; set; } } }