WorktimeAdjustmentView.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.PaymentManage
  9. {
  10. public class WorktimeAdjustmentView
  11. {
  12. public System.Guid WorktimeAdjustmentID { get; set; }
  13. [DisplayName("学年学期")]
  14. public Nullable<System.Guid> SchoolyearID { get; set; }
  15. public string SchoolyearCode { get; set; }
  16. [Required]
  17. [DisplayName("登记类型")]
  18. public Nullable<int> WorktimeAdjustmentTypeID { get; set; }
  19. public string WorktimeAdjustmentTypeDesc
  20. {
  21. get
  22. {
  23. return IdNameExt.GetDictionaryItem(DictionaryItem.TP_WorktimeAdjustmentType.ToString())
  24. .Where(x => x.Value == WorktimeAdjustmentTypeID)
  25. .Select(x => x.Name).FirstOrDefault();
  26. }
  27. }
  28. [DisplayName("调整日期")]
  29. public DateTime? AdjustDate { get; set; }
  30. [Required]
  31. [DisplayName("教师")]
  32. public Nullable<System.Guid> UserID { get; set; }
  33. public string TeacherName { get; set; }
  34. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  35. public Nullable<Guid> CollegeID { get; set; }
  36. [DisplayName("年级")]
  37. public Nullable<int> GradeYearID { get; set; }
  38. [DisplayName("专业")]
  39. public Nullable<int> StandardID { get; set; }
  40. [DisplayName("课程")]
  41. public Nullable<System.Guid> CoursematerialID { get; set; }
  42. public string CourseCode { get; set; }
  43. public string CourseName { get; set; }
  44. [Required]
  45. [DisplayName("任务班")]
  46. public Nullable<System.Guid> EducationMissionClassID { get; set; }
  47. public string EducationMissionClassName { get; set; }
  48. [Required]
  49. [DisplayName("课时数")]
  50. public Nullable<int> Worktime { get; set; }
  51. [DisplayName("记录时间")]
  52. public Nullable<DateTime> CreateTime { get; set; }
  53. }
  54. }