AllowanceStateEnum.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace app\common\state;
  8. /**
  9. * Description of AllowanceStateEnum
  10. *
  11. * @author sgq
  12. */
  13. class AllowanceStateEnum {
  14. const NOTPASS = -1;
  15. const SAVE = 1;
  16. const NEED_GENERAL_CHECK = 3;
  17. const NEED_CHECK = 5;
  18. const GENERAL_REJECT = 8;
  19. const FIRST_REJECT_BRANCH = 9;
  20. const FIRST_REJECT = 10;
  21. const REJECT_TO_FIRST = 13;
  22. const NEED_VISIT_CHECK = 15;
  23. const NEED_REVIEW = 20;
  24. const REVIEW_REJECT = 25;
  25. const REVIEW_PASS = 30;
  26. const PUBLIC_REJECT = 35;
  27. static function getStateName($code) {
  28. switch ($code) {
  29. case self::NOTPASS:
  30. return "审核不通过";
  31. case self::SAVE:
  32. return "待提交";
  33. case self::NEED_GENERAL_CHECK:
  34. return "待总院审核";
  35. case self::NEED_CHECK:
  36. return "待审核";
  37. case self::GENERAL_REJECT:
  38. return "总院驳回";
  39. case self::FIRST_REJECT_BRANCH:
  40. return "初审驳回到分院";
  41. case self::FIRST_REJECT:
  42. return "初审驳回";
  43. case self::REJECT_TO_FIRST:
  44. return "驳回(至初审)";
  45. case self::NEED_VISIT_CHECK:
  46. return "待走访";
  47. case self::NEED_REVIEW:
  48. return "待复核";
  49. case self::REVIEW_REJECT:
  50. return "已驳回(至走访核查)";
  51. case self::REVIEW_PASS:
  52. return "审核通过";
  53. case self::PUBLIC_REJECT:
  54. return "已驳回(至复核)";
  55. default:
  56. return "";
  57. }
  58. }
  59. }