|
|
@ -111,6 +111,7 @@ public class PrintUtil {
|
|
|
|
switch (formatName) {
|
|
|
|
switch (formatName) {
|
|
|
|
case "crdnList": {
|
|
|
|
case "crdnList": {
|
|
|
|
this.recordPerPartFile = 6;
|
|
|
|
this.recordPerPartFile = 6;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -121,11 +122,13 @@ public class PrintUtil {
|
|
|
|
this.formatKorName = "단속확인서";
|
|
|
|
this.formatKorName = "단속확인서";
|
|
|
|
this.baseFormatFilePath = "format/crdnConfirm.hwp";
|
|
|
|
this.baseFormatFilePath = "format/crdnConfirm.hwp";
|
|
|
|
this.attachFormatFilePath = "";
|
|
|
|
this.attachFormatFilePath = "";
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "crdnList": {
|
|
|
|
case "crdnList": {
|
|
|
|
this.formatKorName = "단속내역서";
|
|
|
|
this.formatKorName = "단속내역서";
|
|
|
|
this.baseFormatFilePath = "format/crdnList_root.hwp";
|
|
|
|
this.baseFormatFilePath = "format/crdnList_root.hwp";
|
|
|
|
this.attachFormatFilePath = "format/crdnList_inner.hwp";
|
|
|
|
this.attachFormatFilePath = "format/crdnList_inner.hwp";
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -202,6 +205,9 @@ public class PrintUtil {
|
|
|
|
|
|
|
|
|
|
|
|
String instNm = (String) this.printRequestUserInfo.getInfo().get("instNm");
|
|
|
|
String instNm = (String) this.printRequestUserInfo.getInfo().get("instNm");
|
|
|
|
instNm = FactionUtil.getLastWord(instNm);
|
|
|
|
instNm = FactionUtil.getLastWord(instNm);
|
|
|
|
|
|
|
|
if(instNm.endsWith("구") || instNm.endsWith("군")) {
|
|
|
|
|
|
|
|
instNm += "청";
|
|
|
|
|
|
|
|
}
|
|
|
|
baseFileEditor.set("발신", instNm);
|
|
|
|
baseFileEditor.set("발신", instNm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -248,8 +254,51 @@ public class PrintUtil {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ClickHereEditor baseFileEditor = new ClickHereEditor(baseFile);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.formatName.equals("crdnConfirm")){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baseFileEditor.set("과태료", dataObject.string("TASK_SE_NM"));
|
|
|
|
|
|
|
|
baseFileEditor.set("차량번호", dataObject.string("VHRNO"));
|
|
|
|
|
|
|
|
String crdnYmdTm = dataObject.string("CRDN_YMD_TM");
|
|
|
|
|
|
|
|
crdnYmdTm = CmmnUtil.yyyy_mm_dd_hh_mm_ss(crdnYmdTm);
|
|
|
|
|
|
|
|
baseFileEditor.set("단속일시", crdnYmdTm);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baseFileEditor.set("위반내용", dataObject.string("VLTN_ARTCL"));
|
|
|
|
|
|
|
|
baseFileEditor.set("단속장소", dataObject.string("CRDN_PLC"));
|
|
|
|
|
|
|
|
baseFileEditor.set("단속동", dataObject.string("CRDN_STDG_NM"));
|
|
|
|
|
|
|
|
baseFileEditor.set("단속조", dataObject.string("TEAM_NM"));
|
|
|
|
|
|
|
|
baseFileEditor.set("소유자", dataObject.string("RTPYR_NM"));
|
|
|
|
|
|
|
|
baseFileEditor.set("주소", dataObject.string("RTPYR_FULL_ADDR"));
|
|
|
|
|
|
|
|
baseFileEditor.set("우편번호", dataObject.string("RTPYR_ZIP"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String printRequestYmd = this.printRequestDt.substring(0, 8);
|
|
|
|
|
|
|
|
String yyyy = printRequestYmd.substring(0, 4);
|
|
|
|
|
|
|
|
String mm = printRequestYmd.substring(4, 6);
|
|
|
|
|
|
|
|
String dd = printRequestYmd.substring(6, 8);
|
|
|
|
|
|
|
|
String ymd = yyyy+"년 "+mm+"월 "+dd+"일";
|
|
|
|
|
|
|
|
baseFileEditor.set("연월일", ymd);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String instNm = (String) this.printRequestUserInfo.getInfo().get("instNm");
|
|
|
|
|
|
|
|
if(instNm.endsWith("구") || instNm.endsWith("군")) {
|
|
|
|
|
|
|
|
instNm += "청";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
baseFileEditor.set("발신", instNm);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!dataObject.string("PHOTO1").equals("")) {
|
|
|
|
|
|
|
|
InsertingImageCell.IMPL_InsertPicture(baseFile, "왼쪽위사진", dataObject.string("PHOTO1"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!dataObject.string("PHOTO2").equals("")) {
|
|
|
|
|
|
|
|
InsertingImageCell.IMPL_InsertPicture(baseFile, "오른쪽위사진", dataObject.string("PHOTO2"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!dataObject.string("PHOTO3").equals("")) {
|
|
|
|
|
|
|
|
InsertingImageCell.IMPL_InsertPicture(baseFile, "왼쪽아래사진", dataObject.string("PHOTO3"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!dataObject.string("PHOTO4").equals("")) {
|
|
|
|
|
|
|
|
InsertingImageCell.IMPL_InsertPicture(baseFile, "오른쪽아래사진", dataObject.string("PHOTO4"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch(Exception e) {
|
|
|
|
} catch(Exception e) {
|
|
|
|