MinorStandardSettingView.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.ComponentModel;
  8. namespace EMIS.ViewModel.MinorManage.MinorSetting
  9. {
  10. public class MinorStandardSettingView
  11. {
  12. /// <summary>
  13. /// 辅修专业可报读设置ID
  14. /// </summary>
  15. [Required]
  16. [DisplayName("辅修专业可报读设置ID")]
  17. public Guid MinorStandardSettingID { get; set; }
  18. /// <summary>
  19. /// 辅修专业ID
  20. /// </summary>
  21. [Required]
  22. [DisplayName("辅修专业ID")]
  23. public int? MinorStandardID { get; set; }
  24. /// <summary>
  25. /// 专业代码
  26. /// </summary>
  27. [Required]
  28. [DisplayName("专业代码")]
  29. public string MinorStandardCode { get; set; }
  30. /// <summary>
  31. /// 辅修专业名称
  32. /// </summary>
  33. [Required]
  34. [DisplayName("辅修专业名称")]
  35. public string MinorStandardName {
  36. get {
  37. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  38. .Where(x => x.Value == MinorStandardID)
  39. .Select(x => x.Name).FirstOrDefault();
  40. }
  41. }
  42. /// <summary>
  43. /// 标准专业ID
  44. /// </summary>
  45. [Required]
  46. [DisplayName("标准专业ID")]
  47. public int? StandardID { get; set; }
  48. /// <summary>
  49. /// 专业代码
  50. /// </summary>
  51. [Required]
  52. [DisplayName("专业代码")]
  53. public string StandardCode { get; set; }
  54. /// <summary>
  55. /// 专业名称
  56. /// </summary>
  57. [Required]
  58. [DisplayName("专业名称")]
  59. public string StandardName
  60. {
  61. get
  62. {
  63. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  64. .Where(x => x.Value == StandardID)
  65. .Select(x => x.Name).FirstOrDefault();
  66. }
  67. }
  68. /// <summary>
  69. /// 状态
  70. /// </summary>
  71. public int? RecordStatus { get; set; }
  72. /// <summary>
  73. /// CreateTime
  74. /// </summary>
  75. public Nullable<System.DateTime> CreateTime { get; set; }
  76. /// <summary>
  77. /// CreateUserID
  78. /// </summary>
  79. public Nullable<System.Guid> CreateUserID { get; set; }
  80. /// <summary>
  81. /// ModifyUserID
  82. /// </summary>
  83. public Nullable<System.Guid> ModifyUserID { get; set; }
  84. /// <summary>
  85. /// ModifyTime
  86. /// </summary>
  87. public Nullable<System.DateTime> ModifyTime { get; set; }
  88. }
  89. }