DegreeConditionPackageView.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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.DegreeManage.DegreeSetting
  9. {
  10. public class DegreeConditionPackageView
  11. {
  12. /// <summary>
  13. /// 学位公式ID
  14. /// </summary>
  15. [DisplayName("学位公式ID")]
  16. public Guid DegreeConditionPackageID { get; set; }
  17. /// <summary>
  18. /// 公式名称
  19. /// </summary>
  20. [Required]
  21. [DisplayName("公式名称")]
  22. public string Title { get; set; }
  23. /// <summary>
  24. /// 学生类别
  25. /// </summary>
  26. [Required]
  27. [DisplayName("学生类别")]
  28. public int? StudentTypeID { get; set; }
  29. /// <summary>
  30. /// 学生类别
  31. /// </summary>
  32. [DisplayName("学生类别")]
  33. public string StudentTypeName
  34. {
  35. get
  36. {
  37. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString())
  38. .Where(x => x.Value == StudentTypeID)
  39. .Select(x => x.Name).FirstOrDefault();
  40. }
  41. }
  42. /// <summary>
  43. /// 是否默认
  44. /// </summary>
  45. [DisplayName("是否默认")]
  46. public bool IsDefault { get; set; }
  47. /// <summary>
  48. /// 是否默认
  49. /// </summary>
  50. [DisplayName("是否默认公式")]
  51. public string IsDefaultName
  52. {
  53. get
  54. {
  55. return IsDefault ? "是" : "否";
  56. }
  57. }
  58. /// <summary>
  59. /// 启用状态
  60. /// </summary>
  61. [DisplayName("启用状态")]
  62. public bool IsEnable { get; set; }
  63. /// <summary>
  64. /// 启用状态
  65. /// </summary>
  66. [DisplayName("启用状态")]
  67. public string IsEnableName
  68. {
  69. get
  70. {
  71. return IsEnable ? "启用" : "禁用";
  72. }
  73. }
  74. /// <summary>
  75. /// 学位条件
  76. /// </summary>
  77. [DisplayName("学位条件")]
  78. public string DegreeCondition { get; set; }
  79. /// <summary>
  80. /// 状态
  81. /// </summary>
  82. [DisplayName("状态")]
  83. public int? RecordStatus { get; set; }
  84. /// <summary>
  85. /// 创建人
  86. /// </summary>
  87. [DisplayName("创建人")]
  88. public Guid? CreateUserID { get; set; }
  89. /// <summary>
  90. /// 创建时间
  91. /// </summary>
  92. [DisplayName("创建时间")]
  93. public DateTime? CreateTime { get; set; }
  94. /// <summary>
  95. /// 修改人
  96. /// </summary>
  97. [DisplayName("")]
  98. public Guid? ModifyUserID { get; set; }
  99. /// <summary>
  100. /// 修改时间
  101. /// </summary>
  102. [DisplayName("修改时间")]
  103. public DateTime? ModifyTime { get; set; }
  104. }
  105. }