AllowanceStateEnum.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_CHECK = 5;
  17. const FIRST_REJECT = 10;
  18. const REJECT_TO_FIRST = 13;
  19. const NEED_VISIT_CHECK = 15;
  20. const NEED_REVIEW = 20;
  21. const REVIEW_REJECT = 25;
  22. const REVIEW_PASS = 30;
  23. const PUBLIC_REJECT = 35;
  24. static function getStateName($code) {
  25. switch ($code) {
  26. case self::NOTPASS:
  27. return "审核不通过";
  28. case self::SAVE:
  29. return "待提交";
  30. case self::NEED_CHECK:
  31. return "待审核";
  32. case self::FIRST_REJECT:
  33. return "初审驳回";
  34. case self::REJECT_TO_FIRST:
  35. return "驳回(至初审)";
  36. case self::NEED_VISIT_CHECK:
  37. return "待走访";
  38. case self::NEED_REVIEW:
  39. return "待复核";
  40. case self::REVIEW_REJECT:
  41. return "已驳回(至走访核查)";
  42. case self::REVIEW_PASS:
  43. return "审核通过";
  44. case self::PUBLIC_REJECT:
  45. return "已驳回(至复核)";
  46. default:
  47. return "";
  48. }
  49. }
  50. }