From 95ac1e0b432123063692232f590d506173c67204 Mon Sep 17 00:00:00 2001 From: myname Date: Thu, 12 Dec 2024 12:52:05 +0900 Subject: [PATCH] # WARNING: head commit changed in the meantime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge branch 'master' of http://yongjoon.cho@vcs.iten.co.kr:9999/itnAdmin/fairnet 신청서 출력 --- .../seed/com/gtm/base/OzReportController.java | 25 +++++++ .../_extra/gtm/trublprocessmng/rceptEdit.jsp | 64 +++++++++++++++++- .../WEB-INF/jsp/xxx/ozReportReqPrint.jsp | 65 +++++++++++++++++++ 3 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp diff --git a/src/main/java/seed/com/gtm/base/OzReportController.java b/src/main/java/seed/com/gtm/base/OzReportController.java index a3a641a0..00ccbb49 100644 --- a/src/main/java/seed/com/gtm/base/OzReportController.java +++ b/src/main/java/seed/com/gtm/base/OzReportController.java @@ -6,6 +6,8 @@ import javax.servlet.http.HttpSession; import org.apache.ibatis.logging.Log; import org.apache.ibatis.logging.LogFactory; +import org.json.JSONArray; +import org.json.simple.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; @@ -47,6 +49,29 @@ public class OzReportController { session.removeAttribute("self"); } + @SuppressWarnings("unchecked") + @RequestMapping("/clip/ozReport/OzReportReqPrint.do") + public String xxxTest2(ModelMap model) throws Exception { + + JSONObject json1 = new JSONObject(); + json1.put("col1", "test1"); + json1.put("col2", "test2"); + json1.put("col3", "test3"); + json1.put("col4", "test4"); + + JSONArray jsonArray = new JSONArray(); + for(int i = 0 ; i < 100 ; i++) { + jsonArray.put(json1); + } + + JSONObject pramJsonObj = new JSONObject(); + pramJsonObj.put("json1", jsonArray); + + ozUtill.ozReportJson(pramJsonObj, model); + + return "/xxx/ozReportReqPrint"; + } + @SuppressWarnings("unchecked") @RequestMapping("/clip/ozReport/OzReport.do") public String ozReportOdi(ModelMap model diff --git a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp index 06cc6778..91ccceb8 100644 --- a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp +++ b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp @@ -3928,7 +3928,7 @@ function SetPriceInput(str){ //클립리포트 호출 -function clipCall(crfNm, a, b){ +function clipCall_bak(crfNm, a, b){ $("#crfNm").val(crfNm); $("#CLIPDATA_SEQNO").val(a); @@ -4113,6 +4113,65 @@ function authChg(caseAuthId, authYn){ } }) } + +//클립리포트 호출 +function clipCall(){ + + if($("#searchType").val() == ""){ + alert("통계를 선택해 주세요."); + $("#searchType").focus(); + return false; + } + + $("#crfNm").val($("#searchType").val()); + /* $("#CLIPDATA_SEARCHVAL").val($("#searchVal").val()); + $("#CLIPDATA_SEARCHTYPE").val($("#searchType").val()); + $("#CLIPDATA_DATEST").val($("#dateSt").val()); + $("#CLIPDATA_DATEEND").val($("#dateEnd").val()); */ + + var f = document.frm; + f.target = "blank"; + //f.action = "/clip/ClipReport4/ClipReportViewer/ClipReport4.do"; + f.action = "/clip/ozReport/OzReport.do"; + f.submit(); + f.target = "_self"; +} + +//클립리포트 호출 +function clipCall(crfNm, a, b){ + + $("#crfNm").val(crfNm); + $("#CLIPDATA_SEQNO").val(a); + $("#CLIPDATA_USERTYPE").val(b); + var f = document.clipFrm; + f.target = "blank"; + f.action = "/clip/ClipReport4/ClipReportViewer/ClipReport4.do"; + f.submit(); + f.target = "_self"; +} + +//클립리포트 호출 +function clipCallTmp(){ + + if($("#searchType").val() == ""){ + alert("통계를 선택해 주세요."); + $("#searchType").focus(); + return false; + } + + $("#crfNm").val($("#searchType").val()); + /* $("#CLIPDATA_SEARCHVAL").val($("#searchVal").val()); + $("#CLIPDATA_SEARCHTYPE").val($("#searchType").val()); + $("#CLIPDATA_DATEST").val($("#dateSt").val()); + $("#CLIPDATA_DATEEND").val($("#dateEnd").val()); */ + + var f = document.frm; + f.target = "blank"; + //f.action = "/clip/ClipReport4/ClipReportViewer/ClipReport4.do"; + f.action = "/clip/ozReport/OzReportReqPrint.do"; + f.submit(); + f.target = "_self"; +} @@ -4395,7 +4454,8 @@ function authChg(caseAuthId, authYn){ - + + diff --git a/src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp b/src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp new file mode 100644 index 00000000..841d63cf --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp @@ -0,0 +1,65 @@ +<%-- + 대국민 사용자 + Class Name : adjstReqReport.jsp + Description : 조정신청서 리포트 전송 화면(오즈리포트 정보 전송) + Modification Information + + 수정일 수정자 수정내용 + ------- -------- --------------------------- + 2021.09.27 우영두 최초생성 + + author : 우영두 + since : 2021.09.27 + +--%> +<%-- 공통 JS 함수 정의 : /jsp/web/com/webLayout.jsp --%> +<%@ page contentType="text/html; charset=utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%> + + + + + + + + + + + + + + +
+ + + + + +