EvaluationNormDetailView.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.EvaluationManage.EvaluationTable
  9. {
  10. public class EvaluationNormDetailView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid EvaluationNormDetailID { get; set; }
  17. /// <summary>
  18. /// 评价标准ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("评价标准ID")]
  22. public Guid? EvaluationNormID { get; set; }
  23. /// <summary>
  24. /// 评分标准
  25. /// </summary>
  26. [DisplayName("评分标准")]
  27. public string EvaluationNormName { get; set; }
  28. /// <summary>
  29. /// 次序
  30. /// </summary>
  31. [Required]
  32. [DisplayName("次序")]
  33. [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入自然数")]
  34. public int? OrderNo { get; set; }
  35. /// <summary>
  36. /// 名称
  37. /// </summary>
  38. [Required]
  39. [DisplayName("名称")]
  40. public string Name { get; set; }
  41. /// <summary>
  42. /// 权重
  43. /// </summary>
  44. [Required]
  45. [DisplayName("权重")]
  46. [RegularExpression(@"^\d+(\.\d{1})?$", ErrorMessage = "请输入整数或保留1位小数")]
  47. public decimal? Weight { get; set; }
  48. /// <summary>
  49. /// 评分类型
  50. /// </summary>
  51. [DisplayName("评分类型")]
  52. public int? NormTypeID { get; set; }
  53. /// <summary>
  54. /// 评分类型
  55. /// </summary>
  56. [DisplayName("评分类型")]
  57. public string NormTypeName
  58. {
  59. get
  60. {
  61. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EvaluationNormType.ToString()).Where(x => x.Value == NormTypeID).Select(x => x.Name).FirstOrDefault();
  62. }
  63. }
  64. /// <summary>
  65. /// 备注
  66. /// </summary>
  67. [DisplayName("备注")]
  68. public string Remark { get; set; }
  69. /// <summary>
  70. /// 状态
  71. /// </summary>
  72. [DisplayName("状态")]
  73. public int? RecordStatus { get; set; }
  74. /// <summary>
  75. /// 创建人
  76. /// </summary>
  77. [DisplayName("创建人")]
  78. public Guid? CreateUserID { get; set; }
  79. /// <summary>
  80. /// 创建时间
  81. /// </summary>
  82. [DisplayName("创建时间")]
  83. public DateTime? CreateTime { get; set; }
  84. /// <summary>
  85. /// 修改人
  86. /// </summary>
  87. [DisplayName("修改人")]
  88. public Guid? ModifyUserID { get; set; }
  89. /// <summary>
  90. /// 修改时间
  91. /// </summary>
  92. [DisplayName("修改时间")]
  93. public DateTime? ModifyTime { get; set; }
  94. }
  95. }