init
This commit is contained in:
@@ -0,0 +1,315 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/script.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/jqplotScript.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/jqplotCss.jsp"/>
|
||||
|
||||
|
||||
<script language="javascript" >
|
||||
var url ='<c:url value="/onl/statistics/company/companyAnnuallyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyAnnuallyMan.view" />';
|
||||
var url_excel ='<c:url value="/onl/statistics/company/companyAnnuallyMan.excel" />';
|
||||
|
||||
var selectName = "searchTypeCode,searchEaiBzwkDstcd,searchAdptrInstiCode"; // selectBox Name
|
||||
|
||||
function detail(){
|
||||
var startDate = $("select[name=searchStart]").val();
|
||||
var endDate = $("select[name=searchEnd]").val();
|
||||
if(startDate>endDate){
|
||||
alert("<%= localeMessage.getString("statisticsByCompany.alert")%>");
|
||||
return;
|
||||
}
|
||||
$("input[name=searchStartYYYY]").val(startDate);
|
||||
$("input[name=searchEndYYYY]").val(endDate);
|
||||
|
||||
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
postData['searchAppDstcd'] = postData['searchAppDstcd'].toUpperCase();
|
||||
postData['searchCompanyCode'] = postData['searchCompanyCode'].toUpperCase();
|
||||
postData['searchAppName'] = postData['searchAppName'].toUpperCase();
|
||||
|
||||
$("#grid").setGridParam({ url:url,postData: postData ,page:1 }).trigger("reloadGrid");
|
||||
}
|
||||
|
||||
function dateFormater(cellvalue, options, rowObject){
|
||||
if (cellvalue==null|| cellvalue==undefined) return "";
|
||||
if (cellvalue.trim().length !=8) return "";
|
||||
var display = "";
|
||||
display=display+cellvalue.substr(0,4)+"-";
|
||||
display=display+cellvalue.substr(4,2)+"-";
|
||||
display=display+cellvalue.substr(6,2)+" ";
|
||||
|
||||
return display;
|
||||
}
|
||||
function init(callback){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_INIT_COMBO'},
|
||||
success:function(json){
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchTypeCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchEaiBzwkDstcd]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.bzwkDstcdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchAdptrInstiCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.adptrDescRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
setSearchable(selectName); // 콤보에 searchable 설정
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var now = new Date();
|
||||
var year = now.getFullYear();
|
||||
|
||||
var beforeMonth= now.getMonth();
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=searchStart]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=searchStart]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=searchEnd]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=searchEnd]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
$("select[name=searchStart],select[name=searchEnd]").each(function(){
|
||||
if(beforeMonth==0){
|
||||
$("select[name=searchStart]").val(year-1);
|
||||
}else{
|
||||
$("select[name=searchStart]").val(year);
|
||||
}
|
||||
$("select[name=searchEnd]").val(year);
|
||||
});
|
||||
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
|
||||
$('#grid').jqGrid({
|
||||
datatype:"json",
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData : gridPostData,
|
||||
colNames:[
|
||||
'<%= localeMessage.getString("statisticsByCompany.annually")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.bzwkName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.sendRecvType")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errTelmLen")%>'
|
||||
],
|
||||
colModel:[
|
||||
{ name : 'ANNUALLY' , align:'center' ,width:'85px' },
|
||||
{ name : 'EAIBZWKDSTCD' , align:'center' ,width:'85px' },
|
||||
{ name : 'BZWKDSTICNAME' , align:'left' },
|
||||
{ name : 'APPDSTCD' , align:'center' ,width:'95px' },
|
||||
{ name : 'APPNAME' , align:'left' },
|
||||
{ name : 'COMPANYCODE' , align:'left' ,width:'80px' },
|
||||
{ name : 'COMPANYNAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTINAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTICODE' , align:'left' ,hidden:true },
|
||||
{ name : 'TYPECODE' , align:'center' ,width:'80px' },
|
||||
{ name : 'TOTALCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'TOTALLEN' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} }
|
||||
],
|
||||
|
||||
jsonReader: {
|
||||
repeatitems:false
|
||||
},
|
||||
pager : $('#pager'),
|
||||
page : '${param.page}',
|
||||
rowNum : '${rmsDefaultRowNum}',
|
||||
height: '500',
|
||||
autowidth: true,
|
||||
viewrecords: true,
|
||||
rowList : eval('[${rmsDefaultRowList}]'),
|
||||
gridComplete:function (d){
|
||||
var colModel = $(this).getGridParam("colModel");
|
||||
for(var i = 0 ; i< colModel.length; i++){
|
||||
$(this).setColProp(colModel[i].name, {sortable : false}); //그리드 헤더 화살표 삭제(정렬X)
|
||||
}
|
||||
},
|
||||
loadComplete:function (d){
|
||||
$("#grid").tuiTableRowSpan("0");
|
||||
},
|
||||
loadError: function (jqXHR, textStatus, errorThrown) {
|
||||
|
||||
var location ='<%=request.getContextPath()%>/';
|
||||
comloadError(jqXHR, textStatus, errorThrown ,location);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$("#btn_popup").click(function(){
|
||||
var key = "";
|
||||
var args = new Object();
|
||||
args['companyName'] = $('input[name=companyName1]').val();
|
||||
var url='<c:url value="/onl/admin/service/companyMan.view" />';
|
||||
url = url + "?cmd=POPUP";
|
||||
var ret = showModal(url,args,1020,630, function(arg){
|
||||
var args = null;
|
||||
if(arg == null || arg == undefined ) {//chrome
|
||||
args = this.dialogArguments;
|
||||
args.returnValue = this.returnValue;
|
||||
} else {//ie
|
||||
args = arg;
|
||||
}
|
||||
|
||||
if( !args || !args.returnValue ) return;
|
||||
|
||||
var ret = args.returnValue;
|
||||
console.log("ret",ret);
|
||||
key = ret['key'];
|
||||
$("input[name=companyName1]").val(key);
|
||||
$("input[name=searchCompanyName]").val(key);
|
||||
|
||||
});
|
||||
});
|
||||
$("#btn_init").click(function(){
|
||||
$("input[name=companyName1]").val("");
|
||||
$("input[name=searchCompanyName]").val("");
|
||||
});
|
||||
|
||||
$("#btn_search").click(function(){
|
||||
detail();
|
||||
});
|
||||
|
||||
$("input[name^=search]").keydown(function(key){
|
||||
if (key.keyCode == 13){
|
||||
$("#btn_search").click();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#btn_excel").click(function(event) {
|
||||
event.stopPropagation(); // Do not propagate the event.
|
||||
// Create an object that will manage to download the file.
|
||||
var target = "excelDown" ; // iframe의 name
|
||||
//(url,cmd,gridObj,formObject,fileName,merge)
|
||||
gridToExcelSubmit2(url_excel,"LIST_GRID_TO_EXCEL",$("#grid"),$("#ajaxForm"),'<%= localeMessage.getString("statisticsByCompany.titleAnnually")%>');
|
||||
return false;
|
||||
});
|
||||
$("#startDatepicker").datepicker();
|
||||
$("#endDatepicker").datepicker();
|
||||
|
||||
init(detail);
|
||||
buttonControl();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<button type="button" class="cssbtn" id="btn_excel" level="W" ><i class="material-icons">table_view</i> <%= localeMessage.getString("button.excel") %></button>
|
||||
<button type="button" class="cssbtn" id="btn_search" level="R" ><i class="material-icons">search</i> <%= localeMessage.getString("button.search") %></button>
|
||||
<%-- <img src="<c:url value="/img/btn_excel.png"/>" id="btn_excel" level="W"/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_search.png"/>" alt="" id="btn_search" level="R" /> --%>
|
||||
</div>
|
||||
<div class="title"><%= localeMessage.getString("statisticsByCompany.titleAnnually")%></div>
|
||||
<form id="ajaxForm" onsubmit="return false;">
|
||||
<table class="search_condition" cellspacing=0;>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.searchDate")%></th>
|
||||
<td width="600px">
|
||||
<select name="searchStart" style="padding: 2px;">
|
||||
</select>
|
||||
~
|
||||
<select name="searchEnd" style="padding: 2px;">
|
||||
</select>
|
||||
<input type="hidden" name="searchStartYYYY" value="2019">
|
||||
<input type="hidden" name="searchEndYYYY" value="2019">
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchEaiBzwkDstcd" value="${param.searchEaiBzwkDstcd}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppDstcd" value="${param.searchAppDstcd}">
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appName")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppName" value="${param.searchAppName}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.companyCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchCompanyCode" value="${param.searchCompanyCode}">
|
||||
</td>
|
||||
<th><%= localeMessage.getString("statisticsByCompany.companyName")%></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchCompanyName" value="" style="width:0px;">
|
||||
<input type="text" name="companyName1" value="${param.searchCompanyName}" style="width:85%;" readonly>
|
||||
<%-- <img src="<c:url value="/img/icon_search.png"/>" alt="" id="btn_popup" style="margin: 5px;cursor:hand "/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_pop_initialize.png"/>" alt="" id="btn_init" style="margin: 5px;cursor:hand "/> --%>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_popup" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">search</i><%= localeMessage.getString("button.search") %></button>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_init" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">restart_alt</i><%= localeMessage.getString("button.reset") %></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.sendRecvType")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchTypeCode" value="${param.searchTypeCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.instiName2")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchAdptrInstiCode" value="${param.searchAdptrInstiCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<table id="grid" ></table>
|
||||
<div id="pager"></div>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp" />
|
||||
<jsp:include page="/jsp/common/include/script.jsp" />
|
||||
|
||||
<script language="javascript">
|
||||
var url ='<c:url value="/onl/statistics/company/companyAnnuallyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyAnnuallyMan.view" />';
|
||||
var isDetail = false;
|
||||
function init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,annually){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_DETAIL_COMBO'},
|
||||
success:function(json){
|
||||
var sndRecvCdRows = json.sndRecvCdRows;
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=typeCode]")).setData(sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
detail(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode, typeCode,annually);
|
||||
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
function detail( appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,annually) {
|
||||
if (!isDetail)
|
||||
return;
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
dataType : "json",
|
||||
data : {
|
||||
cmd : 'DETAIL',
|
||||
appDstcd : appDstcd,
|
||||
eaiBzwkDstcd : eaiBzwkDstcd,
|
||||
adptrInstiCode : adptrInstiCode,
|
||||
companyCode : companyCode,
|
||||
typeCode : typeCode,
|
||||
annually : annually
|
||||
},
|
||||
success : function(json) {
|
||||
var data = json;
|
||||
|
||||
$("#ajaxForm input[type!=radio],#ajaxForm select,#ajaxForm textarea").each(function(){
|
||||
var name = $(this).attr("name");
|
||||
var tag = $(this).prop("tagName").toLowerCase();
|
||||
$(tag+"[name="+name+"]").val(data[name.toUpperCase()]);
|
||||
});
|
||||
|
||||
},
|
||||
error : function(e) {
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var returnUrl = getReturnUrlForReturn();
|
||||
|
||||
var appDstcd = "${param.appDstcd}";
|
||||
var eaiBzwkDstcd = "${param.eaiBzwkDstcd}";
|
||||
var adptrInstiCode = "${param.adptrInstiCode}";
|
||||
var companyCode = "${param.companyCode}";
|
||||
var typeCode = "${param.typeCode}";
|
||||
var annually= "${param.annually}";
|
||||
|
||||
if(appDstcd!=null && appDstcd!='' && eaiBzwkDstcd!=null && eaiBzwkDstcd!=''){
|
||||
isDetail=true;
|
||||
}
|
||||
init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,annually);
|
||||
|
||||
$("#btn_previous").click(function() {
|
||||
goNav(returnUrl);//LIST로 이동
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<img src="<c:url value="/img/btn_previous.png"/>" alt="" id="btn_previous" level="R" status="DETAIL,NEW"/>
|
||||
</div>
|
||||
<div class="title">업체별 연별 거래현황 상세</div>
|
||||
<form id="ajaxForm">
|
||||
<table class="table_row" cellspacing="0">
|
||||
<tr>
|
||||
<th width="30%" class="detail_title">일자</th>
|
||||
<td colspan="5"><input type="text" name="statcYMD" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션코드</th>
|
||||
<td colspan="5"><input type="text" name="appDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션명</th>
|
||||
<td colspan="5"><input type="text" name="appName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업무명</th>
|
||||
<td colspan="5"><input type="text" name="eaiBzwkDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체코드</th>
|
||||
<td colspan="5"><input type="text" name="companyCode" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체명</th>
|
||||
<td colspan="5"><input type="text" name="companyName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">접속기관명</th>
|
||||
<td colspan="5"><input type="text" name="codeName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title"><%=localeMessage.getString("batInterfaceMan.popSndRecvDiv")%></th>
|
||||
<td colspan="5">
|
||||
<div class="select-style">
|
||||
<select name="typeCode"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 건수</th>
|
||||
<td><input type="text" name="totalCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title">정상 건수</th>
|
||||
<td><input type="text" name="successCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 건수</th>
|
||||
<td><input type="text" name="errorCnt" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 전문크기</th>
|
||||
<td><input type="text" name="totalLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">정상 전문크기</th>
|
||||
<td><input type="text" name="successLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 전문크기</th>
|
||||
<td><input type="text" name="errorLen" style="width: 100%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,297 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/script.jsp"/>
|
||||
|
||||
<script language="javascript" >
|
||||
var url ='<c:url value="/onl/statistics/company/companyDailyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyDailyMan.view" />';
|
||||
var url_excel ='<c:url value="/onl/statistics/company/companyDailyMan.excel" />';
|
||||
|
||||
var selectName = "searchTypeCode,searchEaiBzwkDstcd,searchAdptrInstiCode"; // selectBox Name
|
||||
|
||||
function detail(){
|
||||
var startDate = $("input[name=searchStart]").val().replace(/-/gi,"");
|
||||
var endDate = $("input[name=searchEnd]").val().replace(/-/gi,"");
|
||||
if(startDate>endDate){
|
||||
alert("<%= localeMessage.getString("statisticsByCompany.alert")%>");
|
||||
return;
|
||||
}
|
||||
$("input[name=searchStartYYYYMMDD]").val(startDate);
|
||||
$("input[name=searchEndYYYYMMDD]").val(endDate);
|
||||
|
||||
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
postData['searchAppDstcd'] = postData['searchAppDstcd'].toUpperCase();
|
||||
postData['searchCompanyCode'] = postData['searchCompanyCode'].toUpperCase();
|
||||
postData['searchAppName'] = postData['searchAppName'].toUpperCase();
|
||||
$("#grid").setGridParam({ url:url,postData: postData ,page:1 }).trigger("reloadGrid");
|
||||
}
|
||||
function dateFormater(cellvalue, options, rowObject){
|
||||
if (cellvalue==null|| cellvalue==undefined) return "";
|
||||
if (cellvalue.trim().length <8) return "";
|
||||
var display = "";
|
||||
display=display+cellvalue.substr(0,4)+"-";
|
||||
display=display+cellvalue.substr(4,2)+"-";
|
||||
display=display+cellvalue.substr(6,2)+" ";
|
||||
|
||||
return display;
|
||||
}
|
||||
function init(callback){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_INIT_COMBO'},
|
||||
success:function(json){
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchTypeCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchEaiBzwkDstcd]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.bzwkDstcdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchAdptrInstiCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.adptrDescRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
setSearchable(selectName); // 콤보에 searchable 설정
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var day = new Date();
|
||||
day.setDate(day.getDate()-1);
|
||||
var beforeDay = day.getFullYear();
|
||||
beforeDay += right("0" + (day.getMonth() + 1), 2);
|
||||
beforeDay += right("0" + day.getDate(), 2);
|
||||
|
||||
$("input[name=searchStart],input[name=searchEnd]").inputmask("yyyy-mm-dd",{'autoUnmask':true});
|
||||
$("input[name=searchStart],input[name=searchEnd]").each(function(){
|
||||
if ($(this).val() == undefined || $(this).val() == null || $(this).val() == ""){
|
||||
$("input[name=searchStart]").val(beforeDay);
|
||||
$("input[name=searchEnd]").val(getToday());
|
||||
}
|
||||
});
|
||||
|
||||
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
|
||||
$('#grid').jqGrid({
|
||||
datatype:"json",
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData : gridPostData,
|
||||
colNames:[
|
||||
'<%= localeMessage.getString("statisticsByCompany.daily")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.bzwkName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.sendRecvType")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errTelmLen")%>'
|
||||
],
|
||||
colModel:[
|
||||
|
||||
{ name : 'STATCYMD' , align:'center' ,width:'85px' , formatter: dateFormater },
|
||||
{ name : 'EAIBZWKDSTCD' , align:'center' ,width:'85px' },
|
||||
{ name : 'BZWKDSTICNAME' , align:'left' },
|
||||
{ name : 'APPDSTCD' , align:'center' ,width:'95px' },
|
||||
{ name : 'APPNAME' , align:'left' },
|
||||
{ name : 'COMPANYCODE' , align:'left' ,width:'80px' },
|
||||
{ name : 'COMPANYNAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTINAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTICODE' , align:'left' ,hidden:true },
|
||||
{ name : 'TYPECODE' , align:'center' ,width:'80px' },
|
||||
{ name : 'TOTALCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'TOTALLEN' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} }
|
||||
],
|
||||
|
||||
jsonReader: {
|
||||
repeatitems:false
|
||||
},
|
||||
pager : $('#pager'),
|
||||
page : '${param.page}',
|
||||
rowNum : '${rmsDefaultRowNum}',
|
||||
height: '500',
|
||||
autowidth: true,
|
||||
viewrecords: true,
|
||||
rowList : eval('[${rmsDefaultRowList}]'),
|
||||
gridComplete:function (d){
|
||||
var colModel = $(this).getGridParam("colModel");
|
||||
for(var i = 0 ; i< colModel.length; i++){
|
||||
$(this).setColProp(colModel[i].name, {sortable : false}); //그리드 헤더 화살표 삭제(정렬X)
|
||||
}
|
||||
},
|
||||
loadComplete:function (d){
|
||||
$("#grid").tuiTableRowSpan("0");
|
||||
},
|
||||
loadError: function (jqXHR, textStatus, errorThrown) {
|
||||
|
||||
var location ='<%=request.getContextPath()%>/';
|
||||
comloadError(jqXHR, textStatus, errorThrown ,location);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$("#btn_popup").click(function(){
|
||||
var key = "";
|
||||
var args = new Object();
|
||||
args['companyName'] = $('input[name=companyName1]').val();
|
||||
var url='<c:url value="/onl/admin/service/companyMan.view" />';
|
||||
url = url + "?cmd=POPUP";
|
||||
var ret = showModal(url,args,1020,630, function(arg){
|
||||
var args = null;
|
||||
if(arg == null || arg == undefined ) {//chrome
|
||||
args = this.dialogArguments;
|
||||
args.returnValue = this.returnValue;
|
||||
} else {//ie
|
||||
args = arg;
|
||||
}
|
||||
|
||||
if( !args || !args.returnValue ) return;
|
||||
|
||||
var ret = args.returnValue;
|
||||
key = ret['key'];
|
||||
$("input[name=companyName1]").val(key);
|
||||
$("input[name=searchCompanyName]").val(key);
|
||||
|
||||
});
|
||||
});
|
||||
$("#btn_init").click(function(){
|
||||
$("input[name=companyName1]").val("");
|
||||
$("input[name=searchCompanyName]").val("");
|
||||
});
|
||||
|
||||
$("#btn_search").click(function(){
|
||||
detail();
|
||||
});
|
||||
|
||||
$("input[name^=search]").keydown(function(key){
|
||||
if (key.keyCode == 13){
|
||||
$("#btn_search").click();
|
||||
}
|
||||
});
|
||||
|
||||
$("#btn_excel").click(function(event) {
|
||||
event.stopPropagation(); // Do not propagate the event.
|
||||
// Create an object that will manage to download the file.
|
||||
var target = "excelDown" ; // iframe의 name
|
||||
//(url,cmd,gridObj,formObject,fileName,merge)
|
||||
gridToExcelSubmit2(url_excel,"LIST_GRID_TO_EXCEL",$("#grid"),$("#ajaxForm"),'<%= localeMessage.getString("statisticsByCompany.titleDaily")%>');
|
||||
return false;
|
||||
});
|
||||
$("#startDatepicker").datepicker();
|
||||
$("#endDatepicker").datepicker();
|
||||
|
||||
init(detail);
|
||||
buttonControl();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<button type="button" class="cssbtn" id="btn_excel" level="W" ><i class="material-icons">table_view</i> <%= localeMessage.getString("button.excel") %></button>
|
||||
<button type="button" class="cssbtn" id="btn_search" level="R" ><i class="material-icons">search</i> <%= localeMessage.getString("button.search") %></button>
|
||||
<%-- <img src="<c:url value="/img/btn_excel.png"/>" id="btn_excel" level="W"/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_search.png"/>" alt="" id="btn_search" level="R" /> --%>
|
||||
</div>
|
||||
<div class="title"><%= localeMessage.getString("statisticsByCompany.titleDaily")%></div>
|
||||
<form id="ajaxForm" onsubmit="return false;">
|
||||
<table class="search_condition" cellspacing=0;>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.searchDate")%></th>
|
||||
<td width="600px">
|
||||
<input type="text" name="searchStart" id="startDatepicker" value="" readonly="readonly" size="10" style="width:100px;">
|
||||
~<input type="text" name="searchEnd" id="endDatepicker" value="" size="10" readonly="readonly" style="width:100px;">
|
||||
<input type="hidden" name="searchStartYYYYMMDD" value="20190202">
|
||||
<input type="hidden" name="searchEndYYYYMMDD" value="20190202">
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchEaiBzwkDstcd" value="${param.searchEaiBzwkDstcd}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppDstcd" value="${param.searchAppDstcd}">
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appName")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppName" value="${param.searchAppName}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.companyCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchCompanyCode" value="${param.searchCompanyCode}">
|
||||
</td>
|
||||
<th><%= localeMessage.getString("statisticsByCompany.companyName")%></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchCompanyName" value="" style="width:0px;">
|
||||
<input type="text" name="companyName1" value="${param.searchCompanyName}" style="width:85%;" readonly>
|
||||
<%-- <img src="<c:url value="/img/icon_search.png"/>" alt="" id="btn_popup" style="margin: 5px;cursor:hand "/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_pop_initialize.png"/>" alt="" id="btn_init" style="margin: 5px;cursor:hand "/> --%>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_popup" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">search</i><%= localeMessage.getString("button.search") %></button>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_init" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">restart_alt</i><%= localeMessage.getString("button.reset") %></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.sendRecvType")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchTypeCode" value="${param.searchTypeCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.instiName2")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchAdptrInstiCode" value="${param.searchAdptrInstiCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<table id="grid" ></table>
|
||||
<div id="pager"></div>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp" />
|
||||
<jsp:include page="/jsp/common/include/script.jsp" />
|
||||
|
||||
<script language="javascript">
|
||||
var url ='<c:url value="/onl/statistics/company/companyDailyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyDailyMan.view" />';
|
||||
var isDetail = false;
|
||||
function init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_DETAIL_COMBO'},
|
||||
success:function(json){
|
||||
var sndRecvCdRows = json.sndRecvCdRows;
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=typeCode]")).setData(sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
detail(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode, typeCode);
|
||||
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
function detail( appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode) {
|
||||
if (!isDetail)
|
||||
return;
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
dataType : "json",
|
||||
data : {
|
||||
cmd : 'DETAIL',
|
||||
appDstcd : appDstcd,
|
||||
eaiBzwkDstcd : eaiBzwkDstcd,
|
||||
adptrInstiCode : adptrInstiCode,
|
||||
companyCode : companyCode,
|
||||
typeCode : typeCode
|
||||
},
|
||||
success : function(json) {
|
||||
var data = json;
|
||||
|
||||
$("#ajaxForm input[type!=radio],#ajaxForm select,#ajaxForm textarea").each(function(){
|
||||
var name = $(this).attr("name");
|
||||
var tag = $(this).prop("tagName").toLowerCase();
|
||||
$(tag+"[name="+name+"]").val(data[name.toUpperCase()]);
|
||||
});
|
||||
|
||||
},
|
||||
error : function(e) {
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var returnUrl = getReturnUrlForReturn();
|
||||
|
||||
var appDstcd = "${param.appDstcd}";
|
||||
var eaiBzwkDstcd = "${param.eaiBzwkDstcd}";
|
||||
var adptrInstiCode = "${param.adptrInstiCode}";
|
||||
var companyCode = "${param.companyCode}";
|
||||
var typeCode = "${param.typeCode}";
|
||||
|
||||
if(appDstcd!=null && appDstcd!='' && eaiBzwkDstcd!=null && eaiBzwkDstcd!=''){
|
||||
isDetail=true;
|
||||
}
|
||||
init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode);
|
||||
|
||||
$("#btn_previous").click(function() {
|
||||
goNav(returnUrl);//LIST로 이동
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<img src="<c:url value="/img/btn_previous.png"/>" alt="" id="btn_previous" level="R" status="DETAIL,NEW"/>
|
||||
</div>
|
||||
<div class="title">업체별 일별 거래현황 상세</div>
|
||||
<form id="ajaxForm">
|
||||
<table class="table_row" cellspacing="0">
|
||||
<tr>
|
||||
<th width="30%" class="detail_title">일자</th>
|
||||
<td colspan="5"><input type="text" name="statcYMD" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션코드</th>
|
||||
<td colspan="5"><input type="text" name="appDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션명</th>
|
||||
<td colspan="5"><input type="text" name="appName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업무명</th>
|
||||
<td colspan="5"><input type="text" name="eaiBzwkDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체코드</th>
|
||||
<td colspan="5"><input type="text" name="companyCode" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체명</th>
|
||||
<td colspan="5"><input type="text" name="companyName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">접속기관명</th>
|
||||
<td colspan="5"><input type="text" name="codeName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title"><%=localeMessage.getString("batInterfaceMan.popSndRecvDiv")%></th>
|
||||
<td colspan="5">
|
||||
<div class="select-style">
|
||||
<select name="typeCode"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 건수</th>
|
||||
<td><input type="text" name="totalCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title"><%=localeMessage.getString("batMonitor.compCnt")%></th>
|
||||
<td><input type="text" name="successCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 건수</th>
|
||||
<td><input type="text" name="errorCnt" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 전문크기</th>
|
||||
<td><input type="text" name="totalLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">정상 전문크기</th>
|
||||
<td><input type="text" name="successLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 전문크기</th>
|
||||
<td><input type="text" name="errorLen" style="width: 100%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,344 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/script.jsp"/>
|
||||
|
||||
<script language="javascript" >
|
||||
|
||||
var url ='<c:url value="/onl/statistics/company/companyMonthlyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyMonthlyMan.view" />';
|
||||
var url_excel ='<c:url value="/onl/statistics/company/companyMonthlyMan.excel" />';
|
||||
|
||||
var selectName = "searchTypeCode,searchEaiBzwkDstcd,searchAdptrInstiCode"; // selectBox Name
|
||||
|
||||
function detail(){
|
||||
var startMonth =parseInt($("select[name=searchStart]").val());
|
||||
var endMonth = parseInt($("select[name=searchEnd]").val());
|
||||
if(startMonth<10){
|
||||
startMonth='0'+startMonth
|
||||
}
|
||||
if(endMonth<10){
|
||||
endMonth='0'+endMonth
|
||||
}
|
||||
var startDate = $("select[name=selectStartYear]").val()+startMonth;
|
||||
var endDate = $("select[name=selectEndYear]").val()+endMonth;
|
||||
|
||||
if(startDate > endDate){
|
||||
alert("<%= localeMessage.getString("statisticsByCompany.alert")%>");
|
||||
return;
|
||||
}
|
||||
|
||||
$("input[name=searchStartYYYYMM]").val(startDate);
|
||||
$("input[name=searchEndYYYYMM]").val(endDate);
|
||||
|
||||
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
postData['searchAppDstcd'] = postData['searchAppDstcd'].toUpperCase();
|
||||
postData['searchCompanyCode'] = postData['searchCompanyCode'].toUpperCase();
|
||||
postData['searchAppName'] = postData['searchAppName'].toUpperCase();
|
||||
$("#grid").setGridParam({ url:url,postData: postData ,page:1 }).trigger("reloadGrid");
|
||||
}
|
||||
|
||||
function dateFormater(cellvalue, options, rowObject){
|
||||
if (cellvalue==null|| cellvalue==undefined) return "";
|
||||
if (cellvalue.trim().length !=8) return "";
|
||||
var display = "";
|
||||
display=display+cellvalue.substr(0,4)+"-";
|
||||
display=display+cellvalue.substr(4,2)+"-";
|
||||
display=display+cellvalue.substr(6,2)+" ";
|
||||
|
||||
return display;
|
||||
}
|
||||
function init(callback){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_INIT_COMBO'},
|
||||
success:function(json){
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchTypeCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchEaiBzwkDstcd]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.bzwkDstcdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchAdptrInstiCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.adptrDescRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
setSearchable(selectName); // 콤보에 searchable 설정
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
|
||||
var now = new Date();
|
||||
var month =now.getMonth() + 1;
|
||||
|
||||
var beforeYear = now.getFullYear()-1;
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=selectStartYear]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=selectStartYear]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=selectEndYear]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=selectEndYear]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
var beforeMonth= now.getMonth();
|
||||
if(beforeMonth==0){
|
||||
beforeMonth=12;
|
||||
$("select[name=selectStartYear]").val(now.getFullYear()-1);
|
||||
}
|
||||
|
||||
$("select[name=searchStart],select[name=searchEnd]").each(function(){
|
||||
$("select[name=searchStart]").val(beforeMonth);
|
||||
$("select[name=searchEnd]").val(month);
|
||||
$("input[name=searchStartYYYYMM]").val(beforeYear+beforeMonth);
|
||||
$("input[name=searchEndYYYYMM]").val(now.getFullYear()+month);
|
||||
});
|
||||
|
||||
|
||||
|
||||
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
gridPostData['dateMode']='M';
|
||||
$('#grid').jqGrid({
|
||||
datatype:"json",
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData : gridPostData,
|
||||
colNames:[
|
||||
'<%= localeMessage.getString("statisticsByCompany.monthly")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.bzwkName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.sendRecvType")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errTelmLen")%>'
|
||||
],
|
||||
colModel:[
|
||||
{ name : 'MONTHLY' , align:'center' },
|
||||
{ name : 'EAIBZWKDSTCD' , align:'center' ,width:'85px' },
|
||||
{ name : 'BZWKDSTICNAME' , align:'left' },
|
||||
{ name : 'APPDSTCD' , align:'center' ,width:'95px' },
|
||||
{ name : 'APPNAME' , align:'left' },
|
||||
{ name : 'COMPANYCODE' , align:'left' ,width:'80px' },
|
||||
{ name : 'COMPANYNAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTINAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTICODE' , align:'left' ,hidden:true },
|
||||
{ name : 'TYPECODE' , align:'center' ,width:'80px' },
|
||||
{ name : 'TOTALCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'TOTALLEN' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} }
|
||||
],
|
||||
|
||||
jsonReader: {
|
||||
repeatitems:false
|
||||
},
|
||||
pager : $('#pager'),
|
||||
page : '${param.page}',
|
||||
rowNum : '${rmsDefaultRowNum}',
|
||||
height: '500',
|
||||
autowidth: true,
|
||||
viewrecords: true,
|
||||
rowList : eval('[${rmsDefaultRowList}]'),
|
||||
gridComplete:function (d){
|
||||
var colModel = $(this).getGridParam("colModel");
|
||||
for(var i = 0 ; i< colModel.length; i++){
|
||||
$(this).setColProp(colModel[i].name, {sortable : false}); //그리드 헤더 화살표 삭제(정렬X)
|
||||
}
|
||||
},
|
||||
loadComplete:function (d){
|
||||
$("#grid").tuiTableRowSpan("0");
|
||||
},
|
||||
loadError: function (jqXHR, textStatus, errorThrown) {
|
||||
|
||||
var location ='<%=request.getContextPath()%>/';
|
||||
comloadError(jqXHR, textStatus, errorThrown ,location);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$("#btn_popup").click(function(){
|
||||
var key = "";
|
||||
var args = new Object();
|
||||
args['companyName'] = $('input[name=companyName1]').val();
|
||||
var url='<c:url value="/onl/admin/service/companyMan.view" />';
|
||||
url = url + "?cmd=POPUP";
|
||||
var ret = showModal(url,args,1020,630, function(arg){
|
||||
var args = null;
|
||||
if(arg == null || arg == undefined ) {//chrome
|
||||
args = this.dialogArguments;
|
||||
args.returnValue = this.returnValue;
|
||||
} else {//ie
|
||||
args = arg;
|
||||
}
|
||||
|
||||
if( !args || !args.returnValue ) return;
|
||||
|
||||
var ret = args.returnValue;
|
||||
console.log("ret",ret);
|
||||
key = ret['key'];
|
||||
$("input[name=companyName1]").val(key);
|
||||
$("input[name=searchCompanyName]").val(key);
|
||||
|
||||
});
|
||||
});
|
||||
$("#btn_init").click(function(){
|
||||
$("input[name=companyName1]").val("");
|
||||
$("input[name=searchCompanyName]").val("");
|
||||
});
|
||||
|
||||
$("#btn_search").click(function(){
|
||||
detail();
|
||||
});
|
||||
|
||||
$("input[name^=search]").keydown(function(key){
|
||||
if (key.keyCode == 13){
|
||||
$("#btn_search").click();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#btn_excel").click(function(event) {
|
||||
event.stopPropagation(); // Do not propagate the event.
|
||||
// Create an object that will manage to download the file.
|
||||
var target = "excelDown" ; // iframe의 name
|
||||
//(url,cmd,gridObj,formObject,fileName,merge)
|
||||
gridToExcelSubmit2(url_excel,"LIST_GRID_TO_EXCEL",$("#grid"),$("#ajaxForm"),'<%= localeMessage.getString("statisticsByCompany.titleMonthly")%>');
|
||||
return false;
|
||||
});
|
||||
$("#startDatepicker").datepicker();
|
||||
$("#endDatepicker").datepicker();
|
||||
|
||||
init(detail);
|
||||
buttonControl();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<button type="button" class="cssbtn" id="btn_excel" level="W" ><i class="material-icons">table_view</i> <%= localeMessage.getString("button.excel") %></button>
|
||||
<button type="button" class="cssbtn" id="btn_search" level="R" ><i class="material-icons">search</i> <%= localeMessage.getString("button.search") %></button>
|
||||
<%-- <img src="<c:url value="/img/btn_excel.png"/>" id="btn_excel" level="W"/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_search.png"/>" alt="" id="btn_search" level="R" /> --%>
|
||||
</div>
|
||||
<div class="title"><%= localeMessage.getString("statisticsByCompany.titleMonthly")%></div>
|
||||
<form id="ajaxForm" onsubmit="return false;">
|
||||
<table class="search_condition" cellspacing=0;>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.searchDate")%></th>
|
||||
<td width="600px">
|
||||
<select name="selectStartYear" style="padding: 2px;">
|
||||
</select>
|
||||
-
|
||||
<select name="searchStart" style="padding: 2px;">
|
||||
<c:forEach var="month" begin="1" end="12">
|
||||
<option value="${month}">${month }<%= localeMessage.getString("statisticsByCompany.month")%></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
~
|
||||
<select name="selectEndYear" style="padding: 2px;">
|
||||
</select>
|
||||
-
|
||||
<select name="searchEnd" style="padding: 2px;">
|
||||
<c:forEach var="month" begin="1" end="12">
|
||||
<option value="${month}">${month }<%= localeMessage.getString("statisticsByCompany.month")%></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
<input type="hidden" name="searchStartYYYYMM" value="201902">
|
||||
<input type="hidden" name="searchEndYYYYMM" value="201902">
|
||||
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchEaiBzwkDstcd" value="${param.searchEaiBzwkDstcd}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppDstcd" value="${param.searchAppDstcd}">
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appName")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppName" value="${param.searchAppName}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.companyCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchCompanyCode" value="${param.searchCompanyCode}">
|
||||
</td>
|
||||
<th><%= localeMessage.getString("statisticsByCompany.companyName")%></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchCompanyName" value="" style="width:0px;">
|
||||
<input type="text" name="companyName1" value="${param.searchCompanyName}" style="width:85%;" readonly>
|
||||
<%-- <img src="<c:url value="/img/icon_search.png"/>" alt="" id="btn_popup" style="margin: 5px;cursor:hand "/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_pop_initialize.png"/>" alt="" id="btn_init" style="margin: 5px;cursor:hand "/> --%>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_popup" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">search</i><%= localeMessage.getString("button.search") %></button>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_init" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">restart_alt</i><%= localeMessage.getString("button.reset") %></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.sendRecvType")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchTypeCode" value="${param.searchTypeCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.instiName2")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchAdptrInstiCode" value="${param.searchAdptrInstiCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<table id="grid" ></table>
|
||||
<div id="pager"></div>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp" />
|
||||
<jsp:include page="/jsp/common/include/script.jsp" />
|
||||
|
||||
<script language="javascript">
|
||||
var url ='<c:url value="/onl/statistics/company/companyMonthlyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyMonthlyMan.view" />';
|
||||
var isDetail = false;
|
||||
function init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,month){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_DETAIL_COMBO'},
|
||||
success:function(json){
|
||||
var sndRecvCdRows = json.sndRecvCdRows;
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=typeCode]")).setData(sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
detail(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode, typeCode,month);
|
||||
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
function detail( appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,month) {
|
||||
if (!isDetail)
|
||||
return;
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
dataType : "json",
|
||||
data : {
|
||||
cmd : 'DETAIL',
|
||||
appDstcd : appDstcd,
|
||||
eaiBzwkDstcd : eaiBzwkDstcd,
|
||||
adptrInstiCode : adptrInstiCode,
|
||||
companyCode : companyCode,
|
||||
typeCode : typeCode,
|
||||
month : month
|
||||
},
|
||||
success : function(json) {
|
||||
var data = json;
|
||||
|
||||
$("#ajaxForm input[type!=radio],#ajaxForm select,#ajaxForm textarea").each(function(){
|
||||
var name = $(this).attr("name");
|
||||
var tag = $(this).prop("tagName").toLowerCase();
|
||||
$(tag+"[name="+name+"]").val(data[name.toUpperCase()]);
|
||||
});
|
||||
|
||||
},
|
||||
error : function(e) {
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var returnUrl = getReturnUrlForReturn();
|
||||
|
||||
var appDstcd = "${param.appDstcd}";
|
||||
var eaiBzwkDstcd = "${param.eaiBzwkDstcd}";
|
||||
var adptrInstiCode = "${param.adptrInstiCode}";
|
||||
var companyCode = "${param.companyCode}";
|
||||
var typeCode = "${param.typeCode}";
|
||||
var month= "${param.month}";
|
||||
if(appDstcd!=null && appDstcd!='' && eaiBzwkDstcd!=null && eaiBzwkDstcd!=''){
|
||||
isDetail=true;
|
||||
}
|
||||
init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,month);
|
||||
|
||||
|
||||
$("#btn_previous").click(function() {
|
||||
goNav(returnUrl);//LIST로 이동
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<img src="<c:url value="/img/btn_previous.png"/>" alt="" id="btn_previous" level="R" status="DETAIL,NEW"/>
|
||||
</div>
|
||||
<div class="title">업체별 월별 거래현황 상세</div>
|
||||
<form id="ajaxForm">
|
||||
<table class="table_row" cellspacing="0">
|
||||
<tr>
|
||||
<th width="30%" class="detail_title">해당 월</th>
|
||||
<td colspan="5"><input type="text" name="monthly" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션코드</th>
|
||||
<td colspan="5"><input type="text" name="appDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션명</th>
|
||||
<td colspan="5"><input type="text" name="appName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업무명</th>
|
||||
<td colspan="5"><input type="text" name="eaiBzwkDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체코드</th>
|
||||
<td colspan="5"><input type="text" name="companyCode" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체명</th>
|
||||
<td colspan="5"><input type="text" name="companyName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">접속기관명</th>
|
||||
<td colspan="5"><input type="text" name="codeName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title"><%=localeMessage.getString("batInterfaceMan.popSndRecvDiv")%></th>
|
||||
<td colspan="5">
|
||||
<div class="select-style">
|
||||
<select name="typeCode"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 건수</th>
|
||||
<td><input type="text" name="totalCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title"><%=localeMessage.getString("batMonitor.compCnt")%></th>
|
||||
<td><input type="text" name="successCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 건수</th>
|
||||
<td><input type="text" name="errorCnt" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 전문크기</th>
|
||||
<td><input type="text" name="totalLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">정상 전문크기</th>
|
||||
<td><input type="text" name="successLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 전문크기</th>
|
||||
<td><input type="text" name="errorLen" style="width: 100%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,367 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/script.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/jqplotScript.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/jqplotCss.jsp"/>
|
||||
|
||||
|
||||
<script language="javascript" >
|
||||
var url ='<c:url value="/onl/statistics/company/companyQuarterlyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyQuarterlyMan.view" />';
|
||||
var url_excel ='<c:url value="/onl/statistics/company/companyQuarterlyMan.excel" />';
|
||||
|
||||
var selectName = "searchTypeCode,searchEaiBzwkDstcd,searchAdptrInstiCode"; // selectBox Name
|
||||
|
||||
function detail(){
|
||||
|
||||
var startQuarter =parseInt($("select[name=searchStart]").val());
|
||||
var endQuarter = parseInt($("select[name=searchEnd]").val());
|
||||
|
||||
startQuarter = ((startQuarter-1)*3)+1;
|
||||
endQuarter = endQuarter*3
|
||||
if(startQuarter<10){
|
||||
startQuarter='0'+startQuarter
|
||||
}
|
||||
if(endQuarter<10){
|
||||
endQuarter='0'+endQuarter
|
||||
}
|
||||
var startDate = $("select[name=selectStartYear]").val()+startQuarter;
|
||||
var endDate = $("select[name=selectEndYear]").val()+endQuarter;
|
||||
|
||||
if(startDate > endDate){
|
||||
alert("<%= localeMessage.getString("statisticsByCompany.alert")%>");
|
||||
return;
|
||||
}
|
||||
|
||||
$("input[name=searchStartYYYYMM]").val(startDate);
|
||||
$("input[name=searchEndYYYYMM]").val(endDate);
|
||||
|
||||
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
postData['searchAppDstcd'] = postData['searchAppDstcd'].toUpperCase();
|
||||
postData['searchCompanyCode'] = postData['searchCompanyCode'].toUpperCase();
|
||||
postData['searchAppName'] = postData['searchAppName'].toUpperCase();
|
||||
$("#grid").setGridParam({ url:url,postData: postData ,page:1 }).trigger("reloadGrid");
|
||||
}
|
||||
|
||||
function dateFormater(cellvalue, options, rowObject){
|
||||
if (cellvalue==null|| cellvalue==undefined) return "";
|
||||
if (cellvalue.trim().length !=8) return "";
|
||||
var display = "";
|
||||
display=display+cellvalue.substr(0,4)+"-";
|
||||
display=display+cellvalue.substr(4,2)+"-";
|
||||
display=display+cellvalue.substr(6,2)+" ";
|
||||
|
||||
return display;
|
||||
}
|
||||
|
||||
function init(callback){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_INIT_COMBO'},
|
||||
success:function(json){
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchTypeCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchEaiBzwkDstcd]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.bzwkDstcdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchAdptrInstiCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.adptrDescRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
setSearchable(selectName); // 콤보에 searchable 설정
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
var now = new Date();
|
||||
var month =right("0" + (now.getMonth() + 1), 2);
|
||||
|
||||
var beforeMonth= now.getMonth();
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=selectStartYear]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=selectStartYear]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=selectEndYear]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=selectEndYear]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
$("select[name=searchStart],select[name=searchEnd]").each(function(){
|
||||
if(month>=1 && month<=3){
|
||||
$("select[name=searchEnd]").val('1');
|
||||
$("input[name=searchEndYYYYMM]").val(now.getFullYear()+'03');
|
||||
}else if(month>=4 && month<=6){
|
||||
$("select[name=searchEnd]").val('2');
|
||||
$("input[name=searchEndYYYYMM]").val(now.getFullYear()+'06');
|
||||
}else if(month>=7 && month<=9){
|
||||
$("select[name=searchEnd]").val('3');
|
||||
$("input[name=searchEndYYYYMM]").val(now.getFullYear()+'09');
|
||||
}else if(month>=10 && month<=12){
|
||||
$("select[name=searchEnd]").val('4');
|
||||
$("input[name=searchEndYYYYMM]").val(now.getFullYear()+'12');
|
||||
}
|
||||
if(beforeMonth>=0 && beforeMonth<=2){
|
||||
if(beforeMonth==0){
|
||||
$("select[name=searchStart]").val('4');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()-1+'10');
|
||||
$("select[name=selectStartYear]").val(now.getFullYear()-1);
|
||||
}else{
|
||||
$("select[name=searchStart]").val('1');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()+'01');
|
||||
}
|
||||
}else if(beforeMonth>=3 && beforeMonth<=5){
|
||||
$("select[name=searchStart]").val('2');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()+'04');
|
||||
}else if(beforeMonth>=6 && beforeMonth<=8){
|
||||
$("select[name=searchStart]").val('3');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()+'07');
|
||||
}else if(beforeMonth>=9 && beforeMonth<=11){
|
||||
$("select[name=searchStart]").val('4');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()+'10');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
|
||||
$('#grid').jqGrid({
|
||||
datatype:"json",
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData : gridPostData,
|
||||
colNames:[
|
||||
'<%= localeMessage.getString("statisticsByCompany.quarterly")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.bzwkName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.sendRecvType")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errTelmLen")%>'
|
||||
],
|
||||
colModel:[
|
||||
{ name : 'QUARTER' , align:'center' },
|
||||
{ name : 'EAIBZWKDSTCD' , align:'center' ,width:'85px' },
|
||||
{ name : 'BZWKDSTICNAME' , align:'left' },
|
||||
{ name : 'APPDSTCD' , align:'center' ,width:'95px' },
|
||||
{ name : 'APPNAME' , align:'left' },
|
||||
{ name : 'COMPANYCODE' , align:'left' ,width:'80px' },
|
||||
{ name : 'COMPANYNAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTINAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTICODE' , align:'left' ,hidden:true },
|
||||
{ name : 'TYPECODE' , align:'center' ,width:'80px' },
|
||||
{ name : 'TOTALCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'TOTALLEN' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} }
|
||||
],
|
||||
|
||||
jsonReader: {
|
||||
repeatitems:false
|
||||
},
|
||||
pager : $('#pager'),
|
||||
page : '${param.page}',
|
||||
rowNum : '${rmsDefaultRowNum}',
|
||||
height: '500',
|
||||
autowidth: true,
|
||||
viewrecords: true,
|
||||
rowList : eval('[${rmsDefaultRowList}]'),
|
||||
gridComplete:function (d){
|
||||
var colModel = $(this).getGridParam("colModel");
|
||||
for(var i = 0 ; i< colModel.length; i++){
|
||||
$(this).setColProp(colModel[i].name, {sortable : false}); //그리드 헤더 화살표 삭제(정렬X)
|
||||
}
|
||||
},
|
||||
loadComplete:function (d){
|
||||
$("#grid").tuiTableRowSpan("0");
|
||||
},
|
||||
loadError: function (jqXHR, textStatus, errorThrown) {
|
||||
var location ='<%=request.getContextPath()%>/';
|
||||
comloadError(jqXHR, textStatus, errorThrown ,location);
|
||||
}
|
||||
});
|
||||
|
||||
$("#btn_popup").click(function(){
|
||||
var key = "";
|
||||
var args = new Object();
|
||||
args['companyName'] = $('input[name=companyName1]').val();
|
||||
var url='<c:url value="/onl/admin/service/companyMan.view" />';
|
||||
url = url + "?cmd=POPUP";
|
||||
var ret = showModal(url,args,1020,630, function(arg){
|
||||
var args = null;
|
||||
if(arg == null || arg == undefined ) {//chrome
|
||||
args = this.dialogArguments;
|
||||
args.returnValue = this.returnValue;
|
||||
} else {//ie
|
||||
args = arg;
|
||||
}
|
||||
|
||||
if( !args || !args.returnValue ) return;
|
||||
|
||||
var ret = args.returnValue;
|
||||
console.log("ret",ret);
|
||||
key = ret['key'];
|
||||
$("input[name=companyName1]").val(key);
|
||||
$("input[name=searchCompanyName]").val(key);
|
||||
|
||||
});
|
||||
});
|
||||
$("#btn_init").click(function(){
|
||||
$("input[name=companyName1]").val("");
|
||||
$("input[name=searchCompanyName]").val("");
|
||||
});
|
||||
$("#btn_search").click(function(){
|
||||
detail();
|
||||
});
|
||||
|
||||
$("input[name^=search]").keydown(function(key){
|
||||
if (key.keyCode == 13){
|
||||
$("#btn_search").click();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#btn_excel").click(function(event) {
|
||||
event.stopPropagation(); // Do not propagate the event.
|
||||
// Create an object that will manage to download the file.
|
||||
var target = "excelDown" ; // iframe의 name
|
||||
//(url,cmd,gridObj,formObject,fileName,merge)
|
||||
gridToExcelSubmit2(url_excel,"LIST_GRID_TO_EXCEL",$("#grid"),$("#ajaxForm"),'<%= localeMessage.getString("statisticsByCompany.titleQuarterly")%>');
|
||||
return false;
|
||||
});
|
||||
$("#startDatepicker").datepicker();
|
||||
$("#endDatepicker").datepicker();
|
||||
|
||||
init(detail);
|
||||
buttonControl();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<button type="button" class="cssbtn" id="btn_excel" level="W" ><i class="material-icons">table_view</i> <%= localeMessage.getString("button.excel") %></button>
|
||||
<button type="button" class="cssbtn" id="btn_search" level="R" ><i class="material-icons">search</i> <%= localeMessage.getString("button.search") %></button>
|
||||
<%-- <img src="<c:url value="/img/btn_excel.png"/>" id="btn_excel" level="W"/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_search.png"/>" alt="" id="btn_search" level="R" /> --%>
|
||||
</div>
|
||||
<div class="title"><%= localeMessage.getString("statisticsByCompany.titleQuarterly")%> </div>
|
||||
<form id="ajaxForm" onsubmit="return false;">
|
||||
<table class="search_condition" cellspacing=0;>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.searchDate")%></th>
|
||||
<td width="600px">
|
||||
<select name="selectStartYear" style="padding: 2px;">
|
||||
</select>
|
||||
-
|
||||
<select name="searchStart" style="padding: 2px;">
|
||||
<c:forEach var="quarter" begin="1" end="4">
|
||||
<option value="${quarter}">${quarter }<%= localeMessage.getString("statisticsByCompany.quarter")%></option>
|
||||
</c:forEach>
|
||||
</select>~
|
||||
<select name="selectEndYear" style="padding: 2px;">
|
||||
</select>
|
||||
-
|
||||
<select name="searchEnd" style="padding: 2px;">
|
||||
<c:forEach var="quarter" begin="1" end="4">
|
||||
<option value="${quarter}">${quarter }<%= localeMessage.getString("statisticsByCompany.quarter")%></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<input type="hidden" name="searchStartYYYYMM" value="201902">
|
||||
<input type="hidden" name="searchEndYYYYMM" value="201902">
|
||||
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchEaiBzwkDstcd" value="${param.searchEaiBzwkDstcd}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppDstcd" value="${param.searchAppDstcd}">
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appName")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppName" value="${param.searchAppName}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.companyCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchCompanyCode" value="${param.searchCompanyCode}">
|
||||
</td>
|
||||
<th><%= localeMessage.getString("statisticsByCompany.companyName")%></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchCompanyName" value="" style="width:0px;">
|
||||
<input type="text" name="companyName1" value="${param.searchCompanyName}" style="width:85%;" readonly>
|
||||
<%-- <img src="<c:url value="/img/icon_search.png"/>" alt="" id="btn_popup" style="margin: 5px;cursor:hand "/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_pop_initialize.png"/>" alt="" id="btn_init" style="margin: 5px;cursor:hand "/> --%>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_popup" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">search</i><%= localeMessage.getString("button.search") %></button>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_init" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">restart_alt</i><%= localeMessage.getString("button.reset") %></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.sendRecvType")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchTypeCode" value="${param.searchTypeCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.instiName2")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchAdptrInstiCode" value="${param.searchAdptrInstiCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<table id="grid" ></table>
|
||||
<div id="pager"></div>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp" />
|
||||
<jsp:include page="/jsp/common/include/script.jsp" />
|
||||
|
||||
<script language="javascript">
|
||||
var url ='<c:url value="/onl/statistics/company/companyQuarterlyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companyQuarterlyMan.view" />';
|
||||
var isDetail = false;
|
||||
function init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,quarter){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_DETAIL_COMBO'},
|
||||
success:function(json){
|
||||
var sndRecvCdRows = json.sndRecvCdRows;
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=typeCode]")).setData(sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
detail(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode, typeCode,quarter);
|
||||
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
function detail( appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,quarter) {
|
||||
if (!isDetail)
|
||||
return;
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
dataType : "json",
|
||||
data : {
|
||||
cmd : 'DETAIL',
|
||||
appDstcd : appDstcd,
|
||||
eaiBzwkDstcd : eaiBzwkDstcd,
|
||||
adptrInstiCode : adptrInstiCode,
|
||||
companyCode : companyCode,
|
||||
typeCode : typeCode,
|
||||
quarter : quarter
|
||||
},
|
||||
success : function(json) {
|
||||
var data = json;
|
||||
|
||||
$("#ajaxForm input[type!=radio],#ajaxForm select,#ajaxForm textarea").each(function(){
|
||||
var name = $(this).attr("name");
|
||||
var tag = $(this).prop("tagName").toLowerCase();
|
||||
$(tag+"[name="+name+"]").val(data[name.toUpperCase()]);
|
||||
});
|
||||
|
||||
},
|
||||
error : function(e) {
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var returnUrl = getReturnUrlForReturn();
|
||||
|
||||
var appDstcd = "${param.appDstcd}";
|
||||
var eaiBzwkDstcd = "${param.eaiBzwkDstcd}";
|
||||
var adptrInstiCode = "${param.adptrInstiCode}";
|
||||
var companyCode = "${param.companyCode}";
|
||||
var typeCode = "${param.typeCode}";
|
||||
var quarter = "${param.quarter}";
|
||||
if(appDstcd!=null && appDstcd!='' && eaiBzwkDstcd!=null && eaiBzwkDstcd!=''){
|
||||
isDetail=true;
|
||||
}
|
||||
init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,quarter);
|
||||
|
||||
|
||||
$("#btn_previous").click(function() {
|
||||
goNav(returnUrl);//LIST로 이동
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<img src="<c:url value="/img/btn_previous.png"/>" alt="" id="btn_previous" level="R" status="DETAIL,NEW"/>
|
||||
</div>
|
||||
<div class="title">업체별 분기별 거래현황 상세</div>
|
||||
<form id="ajaxForm">
|
||||
<table class="table_row" cellspacing="0">
|
||||
<tr>
|
||||
<th width="30%" class="detail_title">일자</th>
|
||||
<td colspan="5"><input type="text" name="statcYMD" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션코드</th>
|
||||
<td colspan="5"><input type="text" name="appDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션명</th>
|
||||
<td colspan="5"><input type="text" name="appName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업무명</th>
|
||||
<td colspan="5"><input type="text" name="eaiBzwkDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체코드</th>
|
||||
<td colspan="5"><input type="text" name="companyCode" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체명</th>
|
||||
<td colspan="5"><input type="text" name="companyName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">접속기관명</th>
|
||||
<td colspan="5"><input type="text" name="codeName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title"><%=localeMessage.getString("batInterfaceMan.popSndRecvDiv")%></th>
|
||||
<td colspan="5">
|
||||
<div class="select-style">
|
||||
<select name="typeCode"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 건수</th>
|
||||
<td><input type="text" name="totalCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title"><%=localeMessage.getString("batMonitor.compCnt")%></th>
|
||||
<td><input type="text" name="successCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 건수</th>
|
||||
<td><input type="text" name="errorCnt" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 전문크기</th>
|
||||
<td><input type="text" name="totalLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">정상 전문크기</th>
|
||||
<td><input type="text" name="successLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 전문크기</th>
|
||||
<td><input type="text" name="errorLen" style="width: 100%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,342 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/script.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/jqplotScript.jsp"/>
|
||||
<jsp:include page="/jsp/common/include/jqplotCss.jsp"/>
|
||||
|
||||
|
||||
<script language="javascript" >
|
||||
var url ='<c:url value="/onl/statistics/company/companySemiannuallyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companySemiannuallyMan.view" />';
|
||||
var url_excel ='<c:url value="/onl/statistics/company/companySemiannuallyMan.excel" />';
|
||||
|
||||
var selectName = "searchTypeCode,searchEaiBzwkDstcd,searchAdptrInstiCode"; // selectBox Name
|
||||
|
||||
function detail(){
|
||||
var startDate = $("select[name=selectStartYear]").val()+$("select[name=searchStart]").val();
|
||||
var endDate = $("select[name=selectEndYear]").val()+$("select[name=searchEnd]").val();
|
||||
if(startDate>endDate){
|
||||
alert("<%= localeMessage.getString("statisticsByCompany.alert")%>");
|
||||
return;
|
||||
}
|
||||
$("input[name=searchStartYYYYMM]").val(startDate);
|
||||
$("input[name=searchEndYYYYMM]").val(endDate);
|
||||
|
||||
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
postData['searchAppDstcd'] = postData['searchAppDstcd'].toUpperCase();
|
||||
postData['searchCompanyCode'] = postData['searchCompanyCode'].toUpperCase();
|
||||
postData['searchAppName'] = postData['searchAppName'].toUpperCase();
|
||||
$("#grid").setGridParam({ url:url,postData: postData ,page:1 }).trigger("reloadGrid");
|
||||
}
|
||||
|
||||
function dateFormater(cellvalue, options, rowObject){
|
||||
if (cellvalue==null|| cellvalue==undefined) return "";
|
||||
if (cellvalue.trim().length !=8) return "";
|
||||
var display = "";
|
||||
display=display+cellvalue.substr(0,4)+"-";
|
||||
display=display+cellvalue.substr(4,2)+"-";
|
||||
display=display+cellvalue.substr(6,2)+" ";
|
||||
|
||||
return display;
|
||||
}
|
||||
|
||||
function init(callback){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_INIT_COMBO'},
|
||||
success:function(json){
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchTypeCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchEaiBzwkDstcd]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.bzwkDstcdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=searchAdptrInstiCode]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.adptrDescRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
setSearchable(selectName); // 콤보에 searchable 설정
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
var now = new Date();
|
||||
var month =right("0" + (now.getMonth() + 1), 2);
|
||||
|
||||
var beforeMonth= now.getMonth();
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=selectStartYear]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=selectStartYear]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
for(var y = now.getFullYear()-10; y<now.getFullYear(); y++){
|
||||
$("select[name=selectEndYear]").append("<option value='"+y+"'>"+y+"</option>");
|
||||
}
|
||||
$("select[name=selectEndYear]").append("<option value='"+now.getFullYear()+"' selected>"+now.getFullYear()+"</option>");
|
||||
|
||||
|
||||
$("select[name=searchStart],select[name=searchEnd]").each(function(){
|
||||
if(beforeMonth>=0 && beforeMonth<=5){
|
||||
if(beforeMonth==0){
|
||||
$("select[name=selectStartYear]").val(now.getFullYear()-1);
|
||||
$("select[name=searchStart]").val('07');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()-1+'07');
|
||||
}else{
|
||||
$("select[name=searchStart]").val('01');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()+'01');
|
||||
}
|
||||
}else {
|
||||
$("select[name=searchStart]").val('07');
|
||||
$("input[name=searchStartYYYYMM]").val(now.getFullYear()+'07');
|
||||
}
|
||||
if(month>=1 && month<=6){
|
||||
$("select[name=searchEnd]").val('06');
|
||||
$("input[name=searchEndYYYYMM]").val(now.getFullYear()+'06');
|
||||
}else {
|
||||
$("select[name=searchEnd]").val('12');
|
||||
$("input[name=searchEndYYYYMM]").val(now.getFullYear()+'12');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||
|
||||
$('#grid').jqGrid({
|
||||
datatype:"json",
|
||||
mtype: 'POST',
|
||||
url: url,
|
||||
postData : gridPostData,
|
||||
colNames:[
|
||||
'<%= localeMessage.getString("statisticsByCompany.semiAnnually")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.bzwkName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.appName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.companyName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiName")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.instiCode")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.sendRecvType")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errCnt")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.totTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.succTelgmLen")%>'
|
||||
,'<%= localeMessage.getString("statisticsByCompany.errTelmLen")%>'
|
||||
],
|
||||
colModel:[
|
||||
{ name : 'SEMIANNUALLY' , align:'center' },
|
||||
{ name : 'EAIBZWKDSTCD' , align:'center' ,width:'85px' },
|
||||
{ name : 'BZWKDSTICNAME' , align:'left' },
|
||||
{ name : 'APPDSTCD' , align:'center' ,width:'95px' },
|
||||
{ name : 'APPNAME' , align:'left' },
|
||||
{ name : 'COMPANYCODE' , align:'left' ,width:'80px' },
|
||||
{ name : 'COMPANYNAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTINAME' , align:'left' },
|
||||
{ name : 'ADPTRINSTICODE' , align:'left' ,hidden:true },
|
||||
{ name : 'TYPECODE' , align:'center' ,width:'80px' },
|
||||
{ name : 'TOTALCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORCNT' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'TOTALLEN' , align:'right' ,width:'80px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'SUCCESSLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} },
|
||||
{ name : 'ERRORLEN' , align:'right' ,width:'85px' , formatter: 'integer', formatoptions:{thousandsSeparator:","} }
|
||||
],
|
||||
|
||||
jsonReader: {
|
||||
repeatitems:false
|
||||
},
|
||||
pager : $('#pager'),
|
||||
page : '${param.page}',
|
||||
rowNum : '${rmsDefaultRowNum}',
|
||||
height: '500',
|
||||
autowidth: true,
|
||||
viewrecords: true,
|
||||
rowList : eval('[${rmsDefaultRowList}]'),
|
||||
gridComplete:function (d){
|
||||
var colModel = $(this).getGridParam("colModel");
|
||||
for(var i = 0 ; i< colModel.length; i++){
|
||||
$(this).setColProp(colModel[i].name, {sortable : false}); //그리드 헤더 화살표 삭제(정렬X)
|
||||
}
|
||||
},
|
||||
loadComplete:function (d){
|
||||
$("#grid").tuiTableRowSpan("0");
|
||||
},
|
||||
loadError: function (jqXHR, textStatus, errorThrown) {
|
||||
|
||||
var location ='<%=request.getContextPath()%>/';
|
||||
comloadError(jqXHR, textStatus, errorThrown ,location);
|
||||
|
||||
},
|
||||
ondblClickRow: function(rowId) {
|
||||
}
|
||||
});
|
||||
$("#btn_popup").click(function(){
|
||||
var key = "";
|
||||
var args = new Object();
|
||||
args['companyName'] = $('input[name=companyName1]').val();
|
||||
var url='<c:url value="/onl/admin/service/companyMan.view" />';
|
||||
url = url + "?cmd=POPUP";
|
||||
var ret = showModal(url,args,1020,630, function(arg){
|
||||
var args = null;
|
||||
if(arg == null || arg == undefined ) {//chrome
|
||||
args = this.dialogArguments;
|
||||
args.returnValue = this.returnValue;
|
||||
} else {//ie
|
||||
args = arg;
|
||||
}
|
||||
|
||||
if( !args || !args.returnValue ) return;
|
||||
|
||||
var ret = args.returnValue;
|
||||
key = ret['key'];
|
||||
$("input[name=companyName1]").val(key);
|
||||
$("input[name=searchCompanyName]").val(key);
|
||||
|
||||
});
|
||||
});
|
||||
$("#btn_init").click(function(){
|
||||
$("input[name=companyName1]").val("");
|
||||
$("input[name=searchCompanyName]").val("");
|
||||
});
|
||||
|
||||
$("#btn_search").click(function(){
|
||||
detail();
|
||||
});
|
||||
|
||||
$("input[name^=search]").keydown(function(key){
|
||||
if (key.keyCode == 13){
|
||||
$("#btn_search").click();
|
||||
}
|
||||
});
|
||||
$("#btn_excel").click(function(event) {
|
||||
event.stopPropagation(); // Do not propagate the event.
|
||||
// Create an object that will manage to download the file.
|
||||
var target = "excelDown" ; // iframe의 name
|
||||
//(url,cmd,gridObj,formObject,fileName,merge)
|
||||
gridToExcelSubmit2(url_excel,"LIST_GRID_TO_EXCEL",$("#grid"),$("#ajaxForm"),'<%= localeMessage.getString("statisticsByCompany.titleSemiAnnually")%>');
|
||||
return false;
|
||||
});
|
||||
$("#startDatepicker").datepicker();
|
||||
$("#endDatepicker").datepicker();
|
||||
|
||||
init(detail);
|
||||
buttonControl();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<button type="button" class="cssbtn" id="btn_excel" level="W" ><i class="material-icons">table_view</i> <%= localeMessage.getString("button.excel") %></button>
|
||||
<button type="button" class="cssbtn" id="btn_search" level="R" ><i class="material-icons">search</i> <%= localeMessage.getString("button.search") %></button>
|
||||
<%-- <img src="<c:url value="/img/btn_excel.png"/>" id="btn_excel" level="W"/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_search.png"/>" alt="" id="btn_search" level="R" /> --%>
|
||||
</div>
|
||||
<div class="title"><%= localeMessage.getString("statisticsByCompany.titleSemiAnnually")%> </div>
|
||||
<form id="ajaxForm" onsubmit="return false;">
|
||||
<table class="search_condition" cellspacing=0;>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.searchDate")%></th>
|
||||
<td width="600px">
|
||||
<select name="selectStartYear" style="padding: 2px;">
|
||||
</select>
|
||||
-
|
||||
<select name="searchStart" style="padding: 2px;">
|
||||
<option value="01"><%= localeMessage.getString("statisticsByCompany.firstHalf")%></option>
|
||||
<option value="07"><%= localeMessage.getString("statisticsByCompany.secondHalf")%></option>
|
||||
</select>
|
||||
~
|
||||
<select name="selectEndYear" style="padding: 2px;">
|
||||
</select>
|
||||
-
|
||||
<select name="searchEnd" style="padding: 2px;">
|
||||
<option value="06"><%= localeMessage.getString("statisticsByCompany.firstHalf")%></option>
|
||||
<option value="12"><%= localeMessage.getString("statisticsByCompany.secondHalf")%></option>
|
||||
</select>
|
||||
<input type="hidden" name="searchStartYYYYMM" value="201902">
|
||||
<input type="hidden" name="searchEndYYYYMM" value="201902">
|
||||
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.eaibzwkDstcd")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchEaiBzwkDstcd" value="${param.searchEaiBzwkDstcd}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppDstcd" value="${param.searchAppDstcd}">
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.appName")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchAppName" value="${param.searchAppName}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.companyCode")%></th>
|
||||
<td>
|
||||
<input type="text" name="searchCompanyCode" value="${param.searchCompanyCode}">
|
||||
</td>
|
||||
<th><%= localeMessage.getString("statisticsByCompany.companyName")%></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchCompanyName" value="" style="width:0px;">
|
||||
<input type="text" name="companyName1" value="${param.searchCompanyName}" style="width:85%;" readonly>
|
||||
<%-- <img src="<c:url value="/img/icon_search.png"/>" alt="" id="btn_popup" style="margin: 5px;cursor:hand "/> --%>
|
||||
<%-- <img src="<c:url value="/img/btn_pop_initialize.png"/>" alt="" id="btn_init" style="margin: 5px;cursor:hand "/> --%>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_popup" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">search</i><%= localeMessage.getString("button.search") %></button>
|
||||
<button type="button" class="cssbtn smallBtn2" id="btn_init" style="vertical-align:middle; font-weight:bold;"><i class="material-icons">restart_alt</i><%= localeMessage.getString("button.reset") %></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.sendRecvType")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchTypeCode" value="${param.searchTypeCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
<th style="width:120px;"><%= localeMessage.getString("statisticsByCompany.instiName2")%></th>
|
||||
<td>
|
||||
<div class="select-style">
|
||||
<select name="searchAdptrInstiCode" value="${param.searchAdptrInstiCode}"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<table id="grid" ></table>
|
||||
<div id="pager"></div>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,166 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="java.io.*"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
response.setHeader("Pragma", "No-cache");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<jsp:include page="/jsp/common/include/css.jsp" />
|
||||
<jsp:include page="/jsp/common/include/script.jsp" />
|
||||
|
||||
<script language="javascript">
|
||||
var url ='<c:url value="/onl/statistics/company/companySemiannuallyMan.json" />';
|
||||
var url_view ='<c:url value="/onl/statistics/company/companySemiannuallyMan.view" />';
|
||||
var isDetail = false;
|
||||
function init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,semiAnnually){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url:url,
|
||||
dataType:"json",
|
||||
data:{cmd: 'LIST_DETAIL_COMBO'},
|
||||
success:function(json){
|
||||
var sndRecvCdRows = json.sndRecvCdRows;
|
||||
new makeOptions("CODE","NAME").setObj($("select[name=typeCode]")).setData(sndRecvCdRows).setFormat(codeName3OptionFormat).rendering();
|
||||
|
||||
detail(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode, typeCode,semiAnnually);
|
||||
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
function detail( appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,semiAnnually) {
|
||||
if (!isDetail)
|
||||
return;
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
dataType : "json",
|
||||
data : {
|
||||
cmd : 'DETAIL',
|
||||
appDstcd : appDstcd,
|
||||
eaiBzwkDstcd : eaiBzwkDstcd,
|
||||
adptrInstiCode : adptrInstiCode,
|
||||
companyCode : companyCode,
|
||||
typeCode : typeCode,
|
||||
semiAnnually : semiAnnually
|
||||
},
|
||||
success : function(json) {
|
||||
var data = json;
|
||||
|
||||
$("#ajaxForm input[type!=radio],#ajaxForm select,#ajaxForm textarea").each(function(){
|
||||
var name = $(this).attr("name");
|
||||
var tag = $(this).prop("tagName").toLowerCase();
|
||||
$(tag+"[name="+name+"]").val(data[name.toUpperCase()]);
|
||||
});
|
||||
|
||||
},
|
||||
error : function(e) {
|
||||
alert(e.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var returnUrl = getReturnUrlForReturn();
|
||||
|
||||
var appDstcd = "${param.appDstcd}";
|
||||
var eaiBzwkDstcd = "${param.eaiBzwkDstcd}";
|
||||
var adptrInstiCode = "${param.adptrInstiCode}";
|
||||
var companyCode = "${param.companyCode}";
|
||||
var typeCode = "${param.typeCode}";
|
||||
var semiAnnually = "${param.semiAnnually}";
|
||||
|
||||
if(appDstcd!=null && appDstcd!='' && eaiBzwkDstcd!=null && eaiBzwkDstcd!=''){
|
||||
isDetail=true;
|
||||
}
|
||||
init(appDstcd, eaiBzwkDstcd, adptrInstiCode, companyCode,typeCode,semiAnnually);
|
||||
|
||||
|
||||
$("#btn_previous").click(function() {
|
||||
goNav(returnUrl);//LIST로 이동
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right_box">
|
||||
<div class="content_top">
|
||||
<ul class="path">
|
||||
<li><a href="#">${rmsMenuPath}</a></li>
|
||||
</ul>
|
||||
</div><!-- end content_top -->
|
||||
<div class="content_middle">
|
||||
<div class="search_wrap">
|
||||
<img src="<c:url value="/img/btn_previous.png"/>" alt="" id="btn_previous" level="R" status="DETAIL,NEW"/>
|
||||
</div>
|
||||
<div class="title">업체별 반기별 거래현황 상세</div>
|
||||
<form id="ajaxForm">
|
||||
<table class="table_row" cellspacing="0">
|
||||
<tr>
|
||||
<th width="30%" class="detail_title">일자</th>
|
||||
<td colspan="5"><input type="text" name="statcYMD" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션코드</th>
|
||||
<td colspan="5"><input type="text" name="appDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">어플리케이션명</th>
|
||||
<td colspan="5"><input type="text" name="appName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업무명</th>
|
||||
<td colspan="5"><input type="text" name="eaiBzwkDstcd" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체코드</th>
|
||||
<td colspan="5"><input type="text" name="companyCode" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">업체명</th>
|
||||
<td colspan="5"><input type="text" name="companyName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">접속기관명</th>
|
||||
<td colspan="5"><input type="text" name="codeName" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title"><%=localeMessage.getString("batInterfaceMan.popSndRecvDiv")%></th>
|
||||
<td colspan="5">
|
||||
<div class="select-style">
|
||||
<select name="typeCode"></select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 건수</th>
|
||||
<td><input type="text" name="totalCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title"><%=localeMessage.getString("batMonitor.compCnt")%></th>
|
||||
<td><input type="text" name="successCnt" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 건수</th>
|
||||
<td><input type="text" name="errorCnt" style="width: 100%" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="detail_title">총 전문크기</th>
|
||||
<td><input type="text" name="totalLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">정상 전문크기</th>
|
||||
<td><input type="text" name="successLen" style="width: 100%" /></td>
|
||||
<th class="detail_title">오류 전문크기</th>
|
||||
<td><input type="text" name="errorLen" style="width: 100%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div><!-- end content_middle -->
|
||||
</div><!-- end right_box -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user