diff --git a/src/main/java/seed/com/gtm/base/OzReportController.java b/src/main/java/seed/com/gtm/base/OzReportController.java index 00ccbb49..9c83e25a 100644 --- a/src/main/java/seed/com/gtm/base/OzReportController.java +++ b/src/main/java/seed/com/gtm/base/OzReportController.java @@ -52,7 +52,74 @@ public class OzReportController { @SuppressWarnings("unchecked") @RequestMapping("/clip/ozReport/OzReportReqPrint.do") public String xxxTest2(ModelMap model) throws Exception { + + JSONObject P1TOP = new JSONObject(); + P1TOP.put("P1T1", "2024.11.19"); + P1TOP.put("P1T2", "하도2024-0986"); + P1TOP.put("P1T3", "한송이"); + P1TOP.put("P1T4", "하도급거래분쟁조정신청서"); + + JSONArray P2TOP = new JSONArray(); + //1 + { + JSONObject P2TOP1 = new JSONObject(); + P2TOP1.put("P2T1", "유강종합건설(주)1011"); + P2TOP1.put("P2T2", "박종홍133"); + P2TOP1.put("P2T3", "(63277)제주특별자치도 제주시 노형11길 5-4 에이치하우제 6층-043"); + + P2TOP.put(P2TOP1); + } + //2 + { + JSONObject P2TOP1 = new JSONObject(); + P2TOP1.put("P2T1", "유강종합건설(주)10112"); + P2TOP1.put("P2T2", "박종홍1332"); + P2TOP1.put("P2T3", "(63277)제주특별자치도 제주시 노형11길 5-4 에이치하우제 6층-0432"); + + P2TOP.put(P2TOP1); + } + + + JSONObject P3TOP = new JSONObject(); + P3TOP.put("P3T1", "하도2024-0986"); + P3TOP.put("P3T2", "양주희"); + P3TOP.put("P3T3", "(주)혁신건설"); + P3TOP.put("P3T4", "부산향신항웅동지구(2단계) 굴재 선별 파쇄 하여 2024년 8월30일 까지 납품하여쓴데, 지금까지 한푼도 주지 ㅇ낳고 이용수 사장은 2억을 현금 주고 나머지는 통장으로 준하하여 부산 역으로 나오라 하여 통장으로 입금 해 달라니 안주고 또 서울역으로 나라라 하여 가는 조둥 수서 역으로 바꾸거며 나오라 해갔너니 나오지 앟ㄴ고 다음날 본사 사무실로 갔더니 주거 침입으로 신고 하는 등 갑질을 하는 등 전화도 밪않고 있습니다.\\n시행처도 발주처도 이용수 사장이 저러니 법으로 가는수밖에 없다하니 법으로 소송하면 기간이 얼마나 걸릴지도 모르겠고 하여 신청합니다."); + + + JSONObject P4TOP = new JSONObject(); + P4TOP.put("P4T1", "공사는 마무리 잘 했는데 공사대금을 받지 못하여 이렇게 신청합니다."); + + + JSONArray P5TOP = new JSONArray(); + //1 + { + JSONObject P5TOP1 = new JSONObject(); + P5TOP1.put("P5T1", "혁신건설-유강종합건설.pdf"); + + P5TOP.put(P5TOP1); + } + //2 + { + JSONObject P5TOP1 = new JSONObject(); + P5TOP1.put("P5T1", "증빙자료(종료요청서)1부.pdf"); + + P5TOP.put(P5TOP1); + } + + /* + JSONObject P1TOP = new JSONObject(); + P1TOP.put("P1T1", "2024.11.19"); + P1TOP.put("P1T2", "하도2024-0986"); + P1TOP.put("P1T3", "한송이"); + P1TOP.put("P1T4", "하도급거래분쟁조정신청서"); + + for(int i = 0 ; i < 100 ; i++) { + P2TOP.put(json1); + } + + JSONObject json1 = new JSONObject(); json1.put("col1", "test1"); json1.put("col2", "test2"); @@ -63,9 +130,14 @@ public class OzReportController { for(int i = 0 ; i < 100 ; i++) { jsonArray.put(json1); } + */ JSONObject pramJsonObj = new JSONObject(); - pramJsonObj.put("json1", jsonArray); + pramJsonObj.put("P1TOP", P1TOP); + pramJsonObj.put("P2TOP", P2TOP); + pramJsonObj.put("P3TOP", P3TOP); + pramJsonObj.put("P4TOP", P4TOP); + pramJsonObj.put("P5TOP", P5TOP); ozUtill.ozReportJson(pramJsonObj, model); diff --git a/src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp b/src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp index 841d63cf..c8987a23 100644 --- a/src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp +++ b/src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp @@ -46,10 +46,10 @@ oz.sendToActionScript("connection.reportname", "/kofair2024/reqPrint.ozr"); oz.sendToActionScript('connection.pcount', '3'); oz.sendToActionScript('connection.args1', 'jsonData=' + jsonData); //Json 파라미터 전달 - oz.sendToActionScript('connection.args2', 'subject1=' + '컬럼111'); //Json 파라미터 전달 - oz.sendToActionScript('connection.args3', 'subject2=' + '컬럼222'); //Json 파라미터 전달 + //oz.sendToActionScript('connection.args2', 'subject1=' + '컬럼111'); //Json 파라미터 전달 + //oz.sendToActionScript('connection.args3', 'subject2=' + '컬럼222'); //Json 파라미터 전달 oz.sendToActionScript('export.applyformat', 'pdf,png,gif,jpg,jpeg'); //파일 다운로드 확장자 지정 - oz.sendToActionScript('export.filename', '테스트'); //다운로드 파일 이름 지정 + oz.sendToActionScript('export.filename', '신청서출력'); //다운로드 파일 이름 지정 oz.sendToActionScript("toolbar.addmemo", "false"); //메모저장 아이콘 oz.sendToActionScript("toolbar.savedm", "false"); //데이터 저장 아이콘 oz.sendToActionScript("toolbar.etc", "false"); //다른메뉴 아이콘