# WARNING: head commit changed in the meantime
Merge branch 'master' of http://yongjoon.cho@vcs.iten.co.kr:9999/itnAdmin/fairnet 신청서 출력
This commit is contained in:
parent
c7cc1a9bb3
commit
95ac1e0b43
@ -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
|
||||
|
||||
@ -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";
|
||||
}
|
||||
</script>
|
||||
|
||||
<form:form name="clipFrm" id="clipFrm" action="" method="post">
|
||||
@ -4395,7 +4454,8 @@ function authChg(caseAuthId, authYn){
|
||||
</c:if>
|
||||
</c:if>
|
||||
|
||||
<button type="button" class="btn-default btn btn_text blue_fill" onclick="clipCall('reqPrint', '', '');">신청서출력</button>
|
||||
<!-- <button type="button" class="btn-default btn btn_text blue_fill" onclick="clipCall('reqPrint', '', '');">신청서출력</button> -->
|
||||
<button type="button" class="btn-default btn btn_text blue_fill" onclick="clipCallTmp('reqPrint', '', '');">신청서출력</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
65
src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp
Normal file
65
src/main/webapp/WEB-INF/jsp/xxx/ozReportReqPrint.jsp
Normal file
@ -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"%>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html style="height:100%">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<script src="${ozServerNm}/oz80/ozhviewer/jquery-2.0.3.min.js"></script>
|
||||
<link rel="stylesheet" href="${ozServerNm}/oz80/ozhviewer/jquery-ui.css" type="text/css"/>
|
||||
<script src="${ozServerNm}/oz80/ozhviewer/jquery-ui.min.js"></script>
|
||||
<link rel="stylesheet" href="${ozServerNm}/oz80/ozhviewer/ui.dynatree.css" type="text/css"/>
|
||||
<script type="text/javascript" src="${ozServerNm}/oz80/ozhviewer/jquery.dynatree.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="${ozServerNm}/oz80/ozhviewer/OZJSViewer.js" charset="utf-8"></script>
|
||||
|
||||
</head>
|
||||
<body style="width:98%;height:98%">
|
||||
<div id="OZViewer" style="width:98%;height:98%"></div>
|
||||
<script type="text/javascript">
|
||||
function SetOZParamters_OZViewer() {
|
||||
var oz;
|
||||
var jsonData = '${jsonData}';
|
||||
oz = document.getElementById("OZViewer");
|
||||
oz.sendToActionScript("information.debug", "true");
|
||||
oz.sendToActionScript("connection.servlet", '${ozServerNm}'+"/oz80/server");
|
||||
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('export.applyformat', 'pdf,png,gif,jpg,jpeg'); //파일 다운로드 확장자 지정
|
||||
oz.sendToActionScript('export.filename', '테스트'); //다운로드 파일 이름 지정
|
||||
oz.sendToActionScript("toolbar.addmemo", "false"); //메모저장 아이콘
|
||||
oz.sendToActionScript("toolbar.savedm", "false"); //데이터 저장 아이콘
|
||||
oz.sendToActionScript("toolbar.etc", "false"); //다른메뉴 아이콘
|
||||
oz.sendToActionScript("viewer.pagedisplay" , "singlepagecontinuous"); //스크롤 추가_220921_이준호
|
||||
return true;
|
||||
}
|
||||
start_ozjs("OZViewer", '${ozServerNm}'+"/oz80/ozhviewer/");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user