|
|
|
@ -36,6 +36,10 @@ public class Nht extends PDFFormat {
|
|
|
|
|
images("crdnPhoto","단속사진","").a4(110, 100).letter(116, 95).size(90, 80),
|
|
|
|
|
image("rprsCrdnPhoto","대표단속사진","").a4(10, 200).letter(10, 186).size(80, 80),
|
|
|
|
|
|
|
|
|
|
text("ocr1","OCR32자리",""),
|
|
|
|
|
text("ocr2","OCR54자리1",""),
|
|
|
|
|
text("ocr3","OCR54자리2",""),
|
|
|
|
|
|
|
|
|
|
text("rtpyrNm","수신자명",""),
|
|
|
|
|
text("rtpyrNo","수신자번호",""),
|
|
|
|
|
text("rtpyrAddr","수신자주소",""),
|
|
|
|
@ -193,6 +197,48 @@ public class Nht extends PDFFormat {
|
|
|
|
|
result = dataObject.string("EPAY_NO");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case "ocr1" -> {
|
|
|
|
|
|
|
|
|
|
String deptCode = dataObject.string("DEPT_CD");
|
|
|
|
|
String fyr = dataObject.string("FYR");
|
|
|
|
|
String acntgSeCd = dataObject.string("ACNTG_SE_CD");
|
|
|
|
|
String txitmCd = dataObject.string("TXITM_CD");
|
|
|
|
|
String levyNo = dataObject.string("LEVY_NO");
|
|
|
|
|
String inspySn = dataObject.string("INSPY_SN");
|
|
|
|
|
result = CmmnUtil.getOcrband1(deptCode,fyr, acntgSeCd, txitmCd, levyNo, inspySn);
|
|
|
|
|
}
|
|
|
|
|
case "ocr2" -> {
|
|
|
|
|
String deptCode = dataObject.string("DEPT_CD");
|
|
|
|
|
String fyr = dataObject.string("FYR");
|
|
|
|
|
String acntgSeCd = dataObject.string("ACNTG_SE_CD");
|
|
|
|
|
String txitmCd = dataObject.string("TXITM_CD");
|
|
|
|
|
String levyNo = dataObject.string("LEVY_NO");
|
|
|
|
|
String inspySn = dataObject.string("INSPY_SN");
|
|
|
|
|
String ocrBand1 = CmmnUtil.getOcrband1(deptCode, fyr, acntgSeCd, txitmCd, levyNo, inspySn);
|
|
|
|
|
|
|
|
|
|
String levySeCd = dataObject.string("LEVY_SE_CD");
|
|
|
|
|
int sumAmt = dataObject.number("SUM_AMT").intValue(); // 합계 금액
|
|
|
|
|
String dudtYmd = dataObject.string("DUDT_YMD");
|
|
|
|
|
result = CmmnUtil.getOcrband2(ocrBand1, levySeCd, sumAmt, dudtYmd);
|
|
|
|
|
}
|
|
|
|
|
case "ocr3" -> {
|
|
|
|
|
String deptCode = dataObject.string("DEPT_CD");
|
|
|
|
|
String fyr = dataObject.string("FYR");
|
|
|
|
|
String acntgSeCd = dataObject.string("ACNTG_SE_CD");
|
|
|
|
|
String txitmCd = dataObject.string("TXITM_CD");
|
|
|
|
|
String levyNo = dataObject.string("LEVY_NO");
|
|
|
|
|
String inspySn = dataObject.string("INSPY_SN");
|
|
|
|
|
String ocrBand1 = CmmnUtil.getOcrband1(deptCode, fyr, acntgSeCd, txitmCd, levyNo, inspySn);
|
|
|
|
|
|
|
|
|
|
String levySeCd = dataObject.string("LEVY_SE_CD");
|
|
|
|
|
int sumAmt = dataObject.number("SUM_AMT").intValue(); // 합계 금액
|
|
|
|
|
String dudtYmd = dataObject.string("DUDT_YMD");
|
|
|
|
|
String ocrBand2 = CmmnUtil.getOcrband2(ocrBand1, levySeCd, sumAmt, dudtYmd);
|
|
|
|
|
|
|
|
|
|
int afterSumAmt = dataObject.number("DUDT_AFTR_AMT").intValue(); // 납기후 금액
|
|
|
|
|
result = CmmnUtil.getOcrband3(ocrBand2, sumAmt, dudtYmd, afterSumAmt);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case "otptYmd" -> {
|
|
|
|
|
result = DataFormat.yyyy_mm_dd(pdfPrintUtil.getPrintRequestDt().substring(0,8));
|
|
|
|
|
}
|
|
|
|
@ -327,6 +373,19 @@ public class Nht extends PDFFormat {
|
|
|
|
|
dataObject.put("VR_ACTNO10", "101010-00-000000");
|
|
|
|
|
dataObject.put("EPAY_NO", "00000-0-00-00-000000000");
|
|
|
|
|
dataObject.put("FFNLG_CRDN_AMT", "100000");
|
|
|
|
|
dataObject.put("ADVNTCE_AMT", "80000");
|
|
|
|
|
dataObject.put("ADVNTCE_DUDT_YMD", "20231231");
|
|
|
|
|
|
|
|
|
|
dataObject.put("DEPT_CD", "4060411");
|
|
|
|
|
dataObject.put("FYR", "2023");
|
|
|
|
|
dataObject.put("ACNTG_SE_CD", "61");
|
|
|
|
|
dataObject.put("TXITM_CD", "234006");
|
|
|
|
|
dataObject.put("LEVY_NO", "123456");
|
|
|
|
|
dataObject.put("INSPY_SN", "00");
|
|
|
|
|
dataObject.put("LEVY_SE_CD", "01");
|
|
|
|
|
dataObject.put("SUM_AMT", "80000");
|
|
|
|
|
dataObject.put("DUDT_YMD", "20231215");
|
|
|
|
|
dataObject.put("DUDT_AFTR_AMT", "20231231");
|
|
|
|
|
|
|
|
|
|
dataObject.put("CRDN_PHOTO1", "samplefiles/crdn1.png");
|
|
|
|
|
dataObject.put("CRDN_PHOTO2", "samplefiles/crdn2.png");
|
|
|
|
|