CheckingControlView.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. using EMIS.ViewModel.CacheManage;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. namespace EMIS.ViewModel.StudentManage.OnlineChecking
  9. {
  10. public class CheckingControlView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid StudentEditControlID { get; set; }
  17. /// <summary>
  18. /// 序号
  19. /// </summary>
  20. [Required]
  21. [DisplayName("序号")]
  22. public int? OrderNo { get; set; }
  23. /// <summary>
  24. /// 校对代码
  25. /// </summary>
  26. [Required]
  27. [DisplayName("校对代码")]
  28. public string ColumnName { get; set; }
  29. /// <summary>
  30. /// 校对列名
  31. /// </summary>
  32. [Required]
  33. [DisplayName("校对列名")]
  34. public string DisplayColumnName { get; set; }
  35. /// <summary>
  36. /// 校对名称
  37. /// </summary>
  38. [Required]
  39. [DisplayName("校对名称")]
  40. public string Description { get; set; }
  41. /// <summary>
  42. /// 校对类型
  43. /// </summary>
  44. [Required]
  45. [DisplayName("校对类型")]
  46. public int? CheckingTypeID { get; set; }
  47. /// <summary>
  48. /// 校对类型
  49. /// </summary>
  50. [DisplayName("校对类型")]
  51. public string CheckingTypeName
  52. {
  53. get
  54. {
  55. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CheckingType.ToString()).Where(x => x.Value == CheckingTypeID).Select(x => x.Name).FirstOrDefault();
  56. }
  57. }
  58. /// <summary>
  59. /// 状态
  60. /// </summary>
  61. [DisplayName("状态")]
  62. public int? RecordStatus { get; set; }
  63. /// <summary>
  64. /// 创建人
  65. /// </summary>
  66. [DisplayName("创建人")]
  67. public Guid? CreateUserID { get; set; }
  68. /// <summary>
  69. /// 创建人
  70. /// </summary>
  71. [DisplayName("创建人")]
  72. public string CreateUserName { get; set; }
  73. /// <summary>
  74. /// 创建时间
  75. /// </summary>
  76. [DisplayName("创建时间")]
  77. public DateTime? CreateTime { get; set; }
  78. /// <summary>
  79. /// 修改人
  80. /// </summary>
  81. [DisplayName("修改人")]
  82. public Guid? ModifyUserID { get; set; }
  83. /// <summary>
  84. /// 修改人
  85. /// </summary>
  86. [DisplayName("修改人")]
  87. public string ModifyUserName { get; set; }
  88. /// <summary>
  89. /// 修改时间
  90. /// </summary>
  91. [DisplayName("修改时间")]
  92. public DateTime? ModifyTime { get; set; }
  93. }
  94. }