form_button_model.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace PMS.BusinessModels.SysManager
  6. {
  7. /// <summary>
  8. /// 创 建 人:王海洋
  9. /// 创建日期:2018-12-10
  10. /// 功能描述:系统按钮业务模型
  11. /// </summary>
  12. public class form_button_model : UIModel
  13. {
  14. [DbColumn("ID")]
  15. public long id { get; set; }
  16. [DbColumn("名称")]
  17. public string name { get; set; }
  18. [DbColumn("标识")]
  19. public string tag { get; set; }
  20. [DbColumn("序号")]
  21. public int ordnum { get; set; }
  22. [DbColumn("图标")]
  23. public string icon { get; set; }
  24. public string isactive { get; set; }
  25. [DbColumn("颜色")]
  26. public string color { get; set; }
  27. [DbColumn("备注")]
  28. public string remark { get; set; }
  29. [DbColumn("启用")]
  30. public int Active
  31. {
  32. get
  33. {
  34. if (isactive == "on")
  35. {
  36. return 1;
  37. }
  38. return 0;
  39. }
  40. set
  41. {
  42. isactive = value == 1 ? "on" : "";
  43. }
  44. }
  45. }
  46. }