NodeStateConst.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System.ComponentModel;
  2. namespace GxPress.EnumConst
  3. {
  4. /// <summary>
  5. /// 节点状态类型
  6. /// </summary>
  7. public enum NodeStateConst
  8. {
  9. Start, // 发起
  10. Meeting, // 上会
  11. Checked, // 同意
  12. Denied, // 驳回
  13. Checking, // 审批中
  14. Referral, //已转审
  15. }
  16. public static class NodeStateConstUtils
  17. {
  18. public static string GetText(NodeStateConst state)
  19. {
  20. if (state == NodeStateConst.Start)
  21. {
  22. return "发起";
  23. }
  24. else if (state == NodeStateConst.Meeting)
  25. {
  26. return "上会";
  27. }
  28. else if (state == NodeStateConst.Checked)
  29. {
  30. return "同意";
  31. }
  32. else if (state == NodeStateConst.Denied)
  33. {
  34. return "驳回";
  35. }
  36. else if (state == NodeStateConst.Referral)
  37. {
  38. return "已转审";
  39. }
  40. return "审批中";
  41. }
  42. }
  43. }