|
|
@ -25,6 +25,36 @@ import net.minidev.json.parser.ParseException;
|
|
|
|
|
|
|
|
|
|
|
|
abstract public class LayoutParser {
|
|
|
|
abstract public class LayoutParser {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LayoutParser() {
|
|
|
|
|
|
|
|
allCode = new HashMap<String, List<CommonCode>>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<CommonCode> photoType = new ArrayList<CommonCode>();
|
|
|
|
|
|
|
|
photoType.add(newCommonCode("1","입차사진"));
|
|
|
|
|
|
|
|
photoType.add(newCommonCode("2","주차사진"));
|
|
|
|
|
|
|
|
photoType.add(newCommonCode("3","위반사진"));
|
|
|
|
|
|
|
|
photoType.add(newCommonCode("4","출차사진"));
|
|
|
|
|
|
|
|
allCode.put("PHOTO_TYPE", photoType);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<CommonCode> fileStatus = new ArrayList<CommonCode>();
|
|
|
|
|
|
|
|
fileStatus.add(newCommonCode("S","정상등록자료"));
|
|
|
|
|
|
|
|
fileStatus.add(newCommonCode("E","삭제자료"));
|
|
|
|
|
|
|
|
allCode.put("FILE_STATUS", fileStatus);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<CommonCode> crdnCn = new ArrayList<CommonCode>();
|
|
|
|
|
|
|
|
crdnCn.add(newCommonCode("00","사용안함"));
|
|
|
|
|
|
|
|
crdnCn.add(newCommonCode("01","일반차량(전기차)"));
|
|
|
|
|
|
|
|
crdnCn.add(newCommonCode("02","장기주차(전기차)"));
|
|
|
|
|
|
|
|
allCode.put("CRDN_CN", crdnCn);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static CommonCode newCommonCode(String code, String value) {
|
|
|
|
|
|
|
|
CommonCode commonCode = new CommonCode();
|
|
|
|
|
|
|
|
commonCode.setCode(code);
|
|
|
|
|
|
|
|
commonCode.setValue(value);
|
|
|
|
|
|
|
|
return commonCode;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected int tempGroupSeq = 1;
|
|
|
|
protected int tempGroupSeq = 1;
|
|
|
|
|
|
|
|
|
|
|
|
public int getTempGroupSeq() {
|
|
|
|
public int getTempGroupSeq() {
|
|
|
@ -73,37 +103,7 @@ abstract public class LayoutParser {
|
|
|
|
return dataObject;
|
|
|
|
return dataObject;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> allCode = new HashMap<String, List<CommonCode>>(){
|
|
|
|
Map<String, List<CommonCode>> allCode = new HashMap<String, List<CommonCode>>();
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
put("PHOTO_TYPE",new ArrayList<CommonCode>() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("1"); setValue("입차사진"); }});
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("2"); setValue("주차사진"); }});
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("3"); setValue("위반사진"); }});
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("4"); setValue("출차사진"); }});
|
|
|
|
|
|
|
|
}});
|
|
|
|
|
|
|
|
put("FILE_STATUS",new ArrayList<CommonCode>() {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("S"); setValue("정상등록자료"); }});
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("E"); setValue("삭제자료"); }});
|
|
|
|
|
|
|
|
}});
|
|
|
|
|
|
|
|
put("CRDN_CN",new ArrayList<CommonCode>() {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("00"); setValue("사용안함"); }});
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("01"); setValue("일반차량(전기차)"); }});
|
|
|
|
|
|
|
|
add(new CommonCode() {{ setCode("02"); setValue("장기주차(전기차)"); }});
|
|
|
|
|
|
|
|
}});
|
|
|
|
|
|
|
|
}};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void addCommonCode(Map<String, List<CommonCode>> commonCode) {
|
|
|
|
public void addCommonCode(Map<String, List<CommonCode>> commonCode) {
|
|
|
|
this.allCode.putAll(commonCode);
|
|
|
|
this.allCode.putAll(commonCode);
|
|
|
|