You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
4.8 KiB
Plaintext
119 lines
4.8 KiB
Plaintext
<%@page import="com.clipsoft.clipreport.oof.OOFFile"%>
|
|
<%@page import="com.clipsoft.clipreport.oof.OOFDocument"%>
|
|
<%@page import="java.io.File"%>
|
|
<%@page import="com.clipsoft.clipreport.server.service.ReportUtil"%>
|
|
<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%
|
|
|
|
|
|
|
|
String penaltyDateFrom = request.getParameter("penaltyDateFrom");
|
|
String penaltyDateTo = request.getParameter("penaltyDateTo");
|
|
|
|
|
|
|
|
String crfName = request.getParameter("crfName");
|
|
String inStDate = request.getParameter("inStDate");
|
|
String inEdDate = request.getParameter("inEdDate");
|
|
String fareOfficeId = request.getParameter("fareOfficeId");
|
|
|
|
String isAmpm = request.getParameter("isAmpm");
|
|
String isGubun = request.getParameter("isGubun");
|
|
String workerId = request.getParameter("workerId");
|
|
String boothId = request.getParameter("boothId");
|
|
String fromDt = request.getParameter("fromDt");
|
|
String toDt = request.getParameter("toDt");
|
|
String passDate = request.getParameter("passDate");
|
|
String carNo = request.getParameter("carNo");
|
|
String deleteYn = request.getParameter("deleteYn");
|
|
String roadNumber = request.getParameter("roadNumber");
|
|
String owner = request.getParameter("owner");
|
|
String passTime = request.getParameter("passTime");
|
|
String residentNo = request.getParameter("residentNo");
|
|
String contactUsFare1 = request.getParameter("contactUsFare1");
|
|
String contactUsFare3 = request.getParameter("contactUsFare3");
|
|
String motionId = request.getParameter("motionId");
|
|
|
|
|
|
|
|
|
|
|
|
String report ="%root%/crf/" + crfName + ".crf";
|
|
|
|
OOFDocument oof = OOFDocument.newOOF();
|
|
OOFFile file = oof.addFile("crf.root", report);
|
|
oof.addConnectionData("*", "oracle1");
|
|
|
|
// 옵션 - 레포트 파라메터(파라메터 NAME 대문자 중요!)
|
|
|
|
|
|
|
|
oof.addField("PENALTYDATEFROM",penaltyDateFrom);
|
|
oof.addField("PENALTYDATETO",penaltyDateTo);
|
|
|
|
|
|
oof.addField("FAREOFFICEID", fareOfficeId);
|
|
oof.addField("BOOTHID", boothId);
|
|
oof.addField("PASSDATE", passDate);
|
|
oof.addField("PASSTIME", passTime);
|
|
oof.addField("CARNO", carNo);
|
|
oof.addField("RESIDENTNO", residentNo);
|
|
oof.addField("INSTDATE", inStDate);
|
|
oof.addField("INEDDATE", inEdDate);
|
|
oof.addField("OFFICEONE", contactUsFare1);
|
|
oof.addField("OFFICETHR", contactUsFare3);
|
|
oof.addField("MOTIONID", motionId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println(carNo);
|
|
System.out.println("-------------------------------------------------");
|
|
|
|
%><%@include file="Property.jsp"%><%
|
|
//세션을 활용하여 리포트키들을 관리하지 않는 옵션
|
|
//request.getSession().setAttribute("ClipReport-SessionList-Allow", false);
|
|
String resultKey = ReportUtil.createReport(request, oof, "false", "false", request.getRemoteAddr(), propertyPath);
|
|
//리포트의 특정 사용자 ID를 부여합니다.
|
|
//clipreport4.properties 의 useuserid 옵션이 true 일 때만 적용됩니다.
|
|
//clipreport4.properties 의 useuserid 옵션이 true 이고 기본 예제[String resultKey = ReportUtil.createReport(request, oof, "false", "false", request.getRemoteAddr(), propertyPath);] 사용 했을 때 세션ID가 userID로 사용 됩니다.
|
|
//String resultKey = ReportUtil.createReport(request, oof, "false", "false", request.getRemoteAddr(), propertyPath, "userID");
|
|
|
|
//리포트key의 사용자문자열을 추가합니다.(문자숫자만 가능합니다.)
|
|
//String resultKey = ReportUtil.createReport(request, oof, "false", "false", request.getRemoteAddr(), propertyPath, "", "usetKey");
|
|
|
|
//리포트를 저장 스토리지를 지정하여 생성합니다.
|
|
//String resultKey = ReportUtil.createReportByStorage(request, oof, "false", "false", request.getRemoteAddr(), propertyPath, "rpt1");
|
|
%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<title>Report</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<link rel="stylesheet" type="text/css" href="/cm/ClipReport4/css/clipreport.css">
|
|
<link rel="stylesheet" type="text/css" href="/cm/ClipReport4/css/UserConfig.css">
|
|
<link rel="stylesheet" type="text/css" href="/cm/ClipReport4/css/font.css">
|
|
<script type='text/javascript' src='/cm/ClipReport4/js/jquery-1.11.1.js'></script>
|
|
<script type='text/javascript' src='/cm/ClipReport4/js/clipreport.js'></script>
|
|
<script type='text/javascript' src='/cm/ClipReport4/js/UserConfig.js'></script>
|
|
<script type='text/javascript'>
|
|
var urlPath = document.location.protocol + "//" + document.location.host;
|
|
|
|
function html2xml(divPath){
|
|
var reportkey = "<%=resultKey%>";
|
|
var report = createImportJSPReport(urlPath + "/ClipReport4/Clip.jsp", reportkey, document.getElementById(divPath));
|
|
//alert("리포트실행");
|
|
//리포트 실행
|
|
report.view();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="html2xml('targetDiv1')">
|
|
<div id='targetDiv1' style='position:absolute;top:5px;left:5px;right:5px;bottom:5px;'></div>
|
|
</body>
|
|
</html>
|