1
0

JsydghxkAttachmentNameEnum.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.siwei.apply.enums;
  2. /**
  3. * 建设用地规划许可阶段
  4. */
  5. public enum JsydghxkAttachmentNameEnum {
  6. NAME_1("1", "建设项目用地预审(选址意见书)申请报告", "", "用地报批阶段资料"),
  7. NAME_2("2", "项目建设依据", "", "用地报批阶段资料"),
  8. NAME_3("3", "测量报告", "", "用地报批阶段资料"),
  9. NAME_4("4", "相关规划图纸", "", "用地报批阶段资料"),
  10. NAME_5("5", "节地专章", "", "用地报批阶段资料"),
  11. NAME_6("6", "项目图形", "", "用地报批阶段资料"),
  12. NAME_7("7", "建设项目用地预审与选址意见书", "", "用地报批阶段资料");
  13. private final String name;
  14. private final String code;
  15. private final String relationName;
  16. private final String parentName;
  17. JsydghxkAttachmentNameEnum(String code, String name,String relationName, String parentName) {
  18. this.code = code;
  19. this.name = name;
  20. this.relationName = relationName;
  21. this.parentName = parentName;
  22. }
  23. public String getName() {
  24. return this.name;
  25. }
  26. public String getCode() {
  27. return this.code;
  28. }
  29. public String getRelationName() {
  30. return this.relationName;
  31. }
  32. public String getParentName() {
  33. return this.parentName;
  34. }
  35. public static JsydghxkAttachmentNameEnum fromCode(String code) {
  36. if (code == null) return null;
  37. for (JsydghxkAttachmentNameEnum e : values()) {
  38. if (code.equals(e.code)) return e;
  39. }
  40. return null;
  41. }
  42. }