DictionaryView.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. namespace EMIS.ViewModel.SystemSetting
  8. {
  9. public class DictionaryView
  10. {
  11. /// <summary>
  12. /// 序号
  13. /// </summary>
  14. [Required]
  15. [DisplayName("序号")]
  16. [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入正整数")]
  17. public int? OrderNo { get; set; }
  18. /// <summary>
  19. /// 类型代码
  20. /// </summary>
  21. [Required]
  22. [DisplayName("类型代码")]
  23. public string DictionaryCode { get; set; }
  24. /// <summary>
  25. /// 类型名称
  26. /// </summary>
  27. [Required]
  28. [DisplayName("类型名称")]
  29. public string DictionaryName { get; set; }
  30. /// <summary>
  31. /// 可否编辑
  32. /// </summary>
  33. [DisplayName("可否编辑")]
  34. public bool IsEditable { get; set; }
  35. /// <summary>
  36. /// 可否编辑
  37. /// </summary>
  38. [DisplayName("可否编辑")]
  39. public string IsEditableName
  40. {
  41. get
  42. {
  43. return IsEditable == true ? "是" : "否";
  44. }
  45. }
  46. /// <summary>
  47. /// 状态
  48. /// </summary>
  49. [DisplayName("状态")]
  50. public int? RecordStatus { get; set; }
  51. }
  52. }