WorktimeAdditionView.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 WorktimeAdditionView
  11. {
  12. public System.Guid WorktimeAdditionID { get; set; }
  13. [Required]
  14. [DisplayName("学年学期")]
  15. public Nullable<System.Guid> SchoolyearID { get; set; }
  16. public string SchoolyearCode { get; set; }
  17. [DisplayName("教师单位")]
  18. public Nullable<System.Guid> CollegeID { get; set; }
  19. public string CollegeNo { get; set; }
  20. public string CollegeName { get; set; }
  21. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  22. public Nullable<System.Guid> StudentCollegeID { get; set; }
  23. [Required]
  24. [DisplayName("教师")]
  25. public Nullable<System.Guid> UserID { get; set; }
  26. public string TeacherName { get; set; }
  27. [Required]
  28. [DisplayName("月份")]
  29. public int? Month { get; set; }
  30. [DisplayName("年级")]
  31. public Nullable<int> GradeYearID { get; set; }
  32. [DisplayName("专业")]
  33. public Nullable<int> StandardID { get; set; }
  34. public string StandardDesc
  35. {
  36. get
  37. {
  38. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  39. .Where(x => x.Value == StandardID)
  40. .Select(x => x.Name).FirstOrDefault();
  41. }
  42. }
  43. [Required]
  44. [DisplayName("年级专业")]
  45. public Nullable<System.Guid> GrademajorID { get; set; }
  46. public string GrademajorName { get; set; }
  47. [Required]
  48. [DisplayName("课程名称")]
  49. public Nullable<System.Guid> CoursematerialID { get; set; }
  50. public string CourseCode { get; set; }
  51. public string CourseName { get; set; }
  52. [Required]
  53. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  54. public Nullable<System.Guid> CourseCollegeID { get; set; }
  55. public string CourseCollegeNo { get; set; }
  56. public string CourseCollegeName { get; set; }
  57. [DisplayName("任务班名")]
  58. public string EducationMissionClassName { get; set; }
  59. [Required]
  60. [DisplayName("授课方式")]
  61. public Nullable<int> TeachingModeID { get; set; }
  62. public string TeachingModeDesc
  63. {
  64. get
  65. {
  66. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  67. .Where(x => x.Value == TeachingModeID)
  68. .Select(x => x.Name).FirstOrDefault();
  69. }
  70. }
  71. [Required]
  72. [DisplayName("任课方式")]
  73. public Nullable<int> TeachType { get; set; }
  74. public string TeachTypeDesc
  75. {
  76. get
  77. {
  78. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString())
  79. .Where(x => x.Value == TeachType)
  80. .Select(x => x.Name).FirstOrDefault();
  81. }
  82. }
  83. [Required]
  84. [DisplayName("学生人数")]
  85. public Nullable<int> StudentCount { get; set; }
  86. [Required]
  87. [DisplayName("课时数")]
  88. public Nullable<int> CourseTime { get; set; }
  89. [DisplayName("备注")]
  90. public string Remark { get; set; }
  91. }
  92. }