HRPoliticalEnum.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.kingdee.eas.custom.recuritment.task.osf.database;
  2. public enum HRPoliticalEnum {
  3. POLITICAL_1("01","中共党员","1","中共党员"),
  4. POLITICAL_2("02","中共党员","6","中共预备党员"),
  5. POLITICAL_3("03","共青团员","2","共青团员"),
  6. POLITICAL_4("04","民革会员","7","民革党员"),
  7. POLITICAL_5("05","民盟盟员","8","民盟盟员"),
  8. POLITICAL_6("06","民建会员","9","民建会员"),
  9. POLITICAL_7("07","民建会员","10","民进会员"),
  10. POLITICAL_8("08","农工党员","11","农工党党员"),
  11. POLITICAL_9("07","致公党员","12","致公党党员"),
  12. POLITICAL_10("10","九三社员","13","九三学社社员"),
  13. POLITICAL_11("11","台盟会员","14","台盟盟员"),
  14. POLITICAL_12("12","无党派","15","无党派人士"),
  15. POLITICAL_13("13","群众","7","群众"),
  16. POLITICAL_14("14","民主党派","5","其他"),
  17. ;
  18. private final String key;
  19. private final String value;
  20. private final String beisenKey;
  21. private final String beisenValue;
  22. public String getBeisenKey() {
  23. return beisenKey;
  24. }
  25. public String getBeisenValue() {
  26. return beisenValue;
  27. }
  28. public String getKey() {
  29. return key;
  30. }
  31. public String getValue() {
  32. return value;
  33. }
  34. HRPoliticalEnum(String key, String value, String beisenKey, String beisenValue) {
  35. this.key = key;
  36. this.value = value;
  37. this.beisenKey = beisenKey;
  38. this.beisenValue = beisenValue;
  39. }
  40. public static HRPoliticalEnum getByKey(String key){
  41. HRPoliticalEnum propertyEnum=null;
  42. for(HRPoliticalEnum e : HRPoliticalEnum.values()){
  43. if(e.getKey().equals(key)){
  44. propertyEnum = e;
  45. break;
  46. }
  47. }
  48. return propertyEnum;
  49. }
  50. public static HRPoliticalEnum getBeisenKey(String beisenKey){
  51. HRPoliticalEnum propertyEnum=null;
  52. for(HRPoliticalEnum e : HRPoliticalEnum.values()){
  53. if(e.getBeisenKey().equals(beisenKey)){
  54. propertyEnum = e;
  55. break;
  56. }
  57. }
  58. return propertyEnum;
  59. }
  60. }