ScoreConvertByApplyView.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using EMIS.ViewModel.CacheManage;
  8. using EMIS.Resources.DataAnnotations;
  9. using EMIS.Entities;
  10. namespace EMIS.ViewModel.ScoreManage
  11. {
  12. public class ScoreConvertByApplyView
  13. {
  14. public Guid ScoreConvertByApplyID { get; set; }
  15. [DisplayName("学年学期")]
  16. public Guid? SchoolyearID { get; set; }
  17. public string SchoolyearCode { get; set; }
  18. [DisplayName("学号/姓名")]
  19. [Required]
  20. public Guid? UserID { get; set; }
  21. public string LoginID { get; set; }
  22. public string Name { get; set; }
  23. [DisplayName("欲认定课程")]
  24. [Required]
  25. public Guid? CoursematerialID { get; set; }
  26. public string CourseCode { get; set; }
  27. public string CourseName { get; set; }
  28. [Display(ResourceType = typeof(Label), Name = "College")]
  29. public Nullable<System.Guid> CollegeID { get; set; }
  30. public string CollegeNo { get; set; }
  31. public string CollegeName { get; set; }
  32. [DisplayName("年级")]
  33. public Nullable<int> YearID { get; set; }
  34. [DisplayName("专业")]
  35. public Nullable<int> StandardID { get; set; }
  36. public string StandardDesc
  37. {
  38. get
  39. {
  40. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  41. .Where(x => x.Value == StandardID)
  42. .Select(x => x.Name).FirstOrDefault();
  43. }
  44. }
  45. [DisplayName("班级")]
  46. public Nullable<Guid> ClassmajorID { get; set; }
  47. public string ClassmajorNo { get; set; }
  48. public string ClassmajorName { get; set; }
  49. /// <summary>
  50. /// 开课学年
  51. /// </summary>
  52. //[Required]
  53. [DisplayName("开课学年")]
  54. public int? SchoolyearNumID { get; set; }
  55. [DisplayName("开课学年")]
  56. public string SchoolyearNumNameStr { get; set; }
  57. /// <summary>
  58. /// 开课学年
  59. /// </summary>
  60. [DisplayName("开课学年")]
  61. public string SchoolyearNumName
  62. {
  63. get
  64. {
  65. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  66. .Where(x => x.Value == SchoolyearNumID)
  67. .Select(x => x.Name).FirstOrDefault();
  68. }
  69. }
  70. /// <summary>
  71. /// 学期
  72. /// </summary>
  73. //[Required]
  74. [DisplayName("学期")]
  75. public int? SchoolcodeID { get; set; }
  76. [DisplayName("学期")]
  77. public string SchoolcodeStr { get; set; }
  78. /// <summary>
  79. /// 学期
  80. /// </summary>
  81. [DisplayName("学期")]
  82. public string SchoolcodeName
  83. {
  84. get
  85. {
  86. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  87. }
  88. }
  89. [DisplayName("成绩")]
  90. public decimal? TotalScore { get; set; }
  91. //public decimal? TotalHours { get; set; }
  92. [DisplayName("原因")]
  93. public string Reason { get; set;}
  94. public int? RecordStatus { get; set; }
  95. public string RecordStatusDesc { get; set; }
  96. public IEnumerable<ER_ScoreConvertByApplyAttachment> AttachmentList { get; set; }
  97. /// <summary>
  98. /// 附件名称
  99. /// </summary>
  100. [DisplayName("附件名称")]
  101. public string AttachmentName
  102. {
  103. get
  104. {
  105. if (AttachmentList != null && AttachmentList.Count() > 0)
  106. {
  107. return string.Join(",", AttachmentList.Select(x => x.Name));
  108. }
  109. else
  110. {
  111. return "";
  112. }
  113. }
  114. }
  115. [DisplayName("证明文件")]
  116. public string UploadAttachmentName { get; set; }
  117. /// <summary>
  118. /// 附件状态
  119. /// </summary>
  120. public int? IsChangeAttachment { get; set; }
  121. }
  122. }