You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
345 lines
16 KiB
XML
345 lines
16 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:ev="http://www.w3.org/2001/xml-events"
|
|
xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms">
|
|
<head>
|
|
<w2:type>DEFAULT</w2:type>
|
|
<w2:buildDate/>
|
|
<xf:model>
|
|
<xf:instance>
|
|
<data xmlns="" />
|
|
</xf:instance>
|
|
<w2:dataCollection baseNode="map">
|
|
<w2:dataMap baseNode="map" id="statMap" style="">
|
|
<w2:keyInfo>
|
|
<w2:key id="kbn" name="구분" dataType="text"></w2:key>
|
|
<w2:key dataType="text" id="inStDate" name="통행일자(FROM)"></w2:key>
|
|
<w2:key dataType="text" id="inEdDate" name="통행일자(TO)"></w2:key>
|
|
</w2:keyInfo>
|
|
</w2:dataMap>
|
|
<w2:dataList baseNode="list" repeatNode="map" id="statList" saveRemovedData="true">
|
|
<w2:columnInfo>
|
|
<w2:column id="inDate" name="통행일자" dataType="date"></w2:column>
|
|
|
|
<w2:column id="inDateName" name="통행일자명" dataType="text"></w2:column>
|
|
<w2:column id="fareOfficeTotal" name="소계" dataType="number"></w2:column>
|
|
<w2:column id="fareOffice1" name="1호 요금소" dataType="number"></w2:column>
|
|
<w2:column id="fareOffice3" name="3호 요금소" dataType="number"></w2:column>
|
|
</w2:columnInfo>
|
|
</w2:dataList>
|
|
</w2:dataCollection>
|
|
<w2:workflowCollection></w2:workflowCollection>
|
|
<xf:submission id="sbm_statList" ref='data:json,{"id":"statMap","key":"param"}' target="data:json,statList" action="/cfs/income/findIncomeFareOfficeStatList.do" method="post"
|
|
mediatype="application/json" encoding="UTF-8" instance="" replace="" errorHandler="" customHandler="" mode="asynchronous"
|
|
processMsg="조회중입니다." ev:submit="" ev:submitdone="scwin.sbm_statList_submitdone" ev:submiterror="" abortTrigger="">
|
|
</xf:submission>
|
|
</xf:model>
|
|
<script type="text/javascript" lazy="false"><![CDATA[
|
|
|
|
scwin.onpageload = function() {
|
|
//그래프 숨김
|
|
btn_showGrid.setStyle( 'display' , 'none' );
|
|
cht_statList.setStyle( 'display' , 'none' );
|
|
|
|
//요금소(cfs01)
|
|
/*var sbxOptions = [{ code : "cfs01", compID : "sbx_fareOfficeId", option : sbx_fareOfficeId.getText() }];
|
|
com.setCfsCommonCode( sbxOptions );*/
|
|
|
|
//통행일자
|
|
var ymd = com.getToday();
|
|
ica_inStDate.setValue( ymd );
|
|
ica_inEdDate.setValue( ymd );
|
|
|
|
scwin.rad_kbn_onchange();
|
|
};
|
|
|
|
scwin.onpageunload = function() {
|
|
|
|
};
|
|
|
|
scwin.rad_kbn_onchange = function() {
|
|
var kbn = rad_kbn.getValue();
|
|
|
|
if (kbn == '1') {
|
|
//일별
|
|
ica_inStDate.setCalendarValueType( "yearMonthDate" );
|
|
ica_inEdDate.setCalendarValueType( "yearMonthDate" );
|
|
|
|
ica_inStDate.setValue( com.getToday( "yyyyMMdd" ) );
|
|
ica_inEdDate.setValue( com.getToday( "yyyyMMdd" ) );
|
|
} else if (kbn == '2') {
|
|
//월별
|
|
ica_inStDate.setCalendarValueType( "yearMonth" );
|
|
ica_inEdDate.setCalendarValueType( "yearMonth" );
|
|
|
|
ica_inStDate.setValue( com.getToday( "yyyyMM" ) );
|
|
ica_inEdDate.setValue( com.getToday( "yyyyMM" ) );
|
|
} else if (kbn == '3') {
|
|
//년별
|
|
ica_inStDate.setCalendarValueType( "year" );
|
|
ica_inEdDate.setCalendarValueType( "year" );
|
|
|
|
ica_inStDate.setValue( com.getToday( "yyyy" ) );
|
|
ica_inEdDate.setValue( com.getToday( "yyyy" ) );
|
|
}
|
|
};
|
|
|
|
scwin.btn_showChart_onclick = function(e) {
|
|
//그리드 OFF / 그래프 ON
|
|
btn_showGrid.setStyle( 'display' , '' );
|
|
btn_showChart.setStyle( 'display' , 'none' );
|
|
cht_statList.setStyle( 'display' , '' );
|
|
grd_statList.setStyle( 'display' , 'none' );
|
|
//엑셀저장버튼 OFF
|
|
cht_statList.draw();
|
|
};
|
|
|
|
scwin.btn_showGrid_onclick = function(e) {
|
|
//그리드 ON / 그래프 OFF
|
|
btn_showGrid.setStyle( 'display' , 'none' );
|
|
btn_showChart.setStyle( 'display' , '' );
|
|
cht_statList.setStyle( 'display' , 'none' );
|
|
grd_statList.setStyle( 'display' , '' );
|
|
//엑셀저장버튼 ON
|
|
};
|
|
|
|
scwin.btn_search_onclick = function(e) {
|
|
//alert("조회");
|
|
if(rad_kbn.getValue() == "1"){
|
|
if(ica_inEdDate.getValue() - ica_inStDate.getValue() > 300){
|
|
com.alert("일별 조회는 대용량 데이터로 인해 3개월 이상 데이터를 조회할 수 없습니다.");
|
|
return;
|
|
}
|
|
}
|
|
if (com.validateGroup(grp_search) === false) {
|
|
return false;
|
|
|
|
}else{
|
|
if(ica_inEdDate.getValue() < ica_inStDate.getValue()){
|
|
com.alert("시작 일자가 종료 일자보다 큽니다. 날짜 형식을 확인해 주세요.");
|
|
return;
|
|
}
|
|
com.executeSubmission(sbm_statList);
|
|
}
|
|
};
|
|
|
|
scwin.btn_excel_down_onclick = function(e) {
|
|
if (statList.getRowCount() == 0) {
|
|
com.alert("엑셀다운로드할 정보가 없습니다.");
|
|
return;
|
|
}
|
|
//alert("엑셀다운로드");
|
|
|
|
var info = {};
|
|
var options = {};
|
|
options.fileName = "요금소별 수입금 현황_"+com.getCurDtime()+".xlsx";
|
|
options.sheetName = "요금소별 수입금 현황";
|
|
options.showProcess = "true"; //다운로드 시 프로세스 창을 보여줄지 여부 (true:보임)
|
|
options.showConfirm = "true"; //다운로드 확인창을 띄울지 여부 (false:미확인)
|
|
options.useFooter = "true"; //다운로드시 Footer를 출력 할지 여부 (true:포함)
|
|
options.useSubTotal = "true"; //다운로드시 SubTotal을 출력 할지 여부 (false:미포함)
|
|
options.useStyle = "true";
|
|
options.type = "1";
|
|
options.printSet = {
|
|
fitToPage : "true" //엑셀 프린터 출력시 쪽맞춤 사용 유무 (false:미사용)
|
|
, landScape : "true" //엑셀 프린터 출력시 가로 방향 출력 유무 (false:세로)
|
|
, pageSize : "A4" //엑셀 프린터 출력시 인쇄용지 설정 (A4:A4용지)
|
|
};
|
|
options.autoSizeColumn = "false"; //너비자동맞춤 설정 유무 (false:미적용)
|
|
grd_statList.advancedExcelDownload( options , info );
|
|
//com.fncMakeExcelProvider("incomeService", "findIncomeFareOfficeStatList", "cfs.income.vo.IncomeParamsVO", statMap, grd_statList, options, info);
|
|
};
|
|
|
|
scwin.sbm_statList_submitdone = function(e) {
|
|
for (var i=0; i<statList.getRowCount(); i++) {
|
|
statList.setCellData( i , "inDateName" , com.fmtDateDtimeKor( statList.getCellData( i , "inDate" ) ) );
|
|
}
|
|
|
|
var kbn = rad_kbn.getValue();
|
|
var cap = "";
|
|
if (kbn == '1') {
|
|
cap = " (일)";
|
|
} else if (kbn == '2') {
|
|
cap = " (월)";
|
|
} else if (kbn == '3') {
|
|
cap = " (년)";
|
|
}
|
|
|
|
var options = {
|
|
"caption": "요금소별 수입금 현황" + cap
|
|
, "xAxisName": "통행일자"
|
|
, "yAxisName": "금액"
|
|
};
|
|
|
|
cht_statList.setChartAttribute( options );
|
|
cht_statList.draw();
|
|
};
|
|
|
|
scwin.btn_print_onclick = function(e) {
|
|
if (statList.getRowCount() == 0) {
|
|
com.alert("인쇄할 정보가 없습니다.");
|
|
return;
|
|
}
|
|
var form_tag = document.getElementById("IC005M01");
|
|
|
|
form_tag.fareOfficeId.value = statMap.get("fareOfficeId");
|
|
form_tag.kbn.value = statMap.get("kbn");
|
|
form_tag.inStDate.value = statMap.get("inStDate");
|
|
form_tag.inEdDate.value = statMap.get("inEdDate");
|
|
var kbn = statMap.get("kbn");
|
|
//form_tag.crfName.value = "IC005M01";
|
|
|
|
|
|
if(kbn == "1")
|
|
{
|
|
form_tag.crfName.value = "IC005M01_1";
|
|
} else if (kbn == "2") {
|
|
form_tag.crfName.value = "IC005M01_2";
|
|
} else if (kbn == "3") {
|
|
form_tag.crfName.value = "IC005M01_3";
|
|
}
|
|
|
|
var url = "/ClipReport4/reportView.jsp";
|
|
|
|
form_tag.action=url;
|
|
form_tag.method ="post";
|
|
form_tag.target="clipform";
|
|
form_tag.submit();
|
|
};
|
|
]]></script>
|
|
</head>
|
|
<body ev:onpageload="scwin.onpageload" ev:onpageunload="scwin.onpageunload">
|
|
<xf:group class="contentWrap" id="" style="">
|
|
<form id="IC005M01" method="post" action ="/ClipReport4/reportView.jsp">
|
|
<input type ="hidden" name="crfName"></input>
|
|
<input type ="hidden" name="fareOfficeId"></input>
|
|
<input type ="hidden" name="kbn"></input>
|
|
<input type ="hidden" name="inStDate"></input>
|
|
<input type ="hidden" name="inEdDate"></input>
|
|
</form>
|
|
<w2:wframe id="" initScript="scwin.wfTitleFavInit();" src="/cm/common/wf_titleFav.xml" style=""></w2:wframe>
|
|
<xf:group class="tbl_search" id="grp_search" style="">
|
|
<xf:group adaptive="layout" adaptiveThreshold="700" class="w2tb tbl_sc" id="" style="" tagname="table">
|
|
<w2:attributes>
|
|
<w2:summary></w2:summary>
|
|
</w2:attributes>
|
|
<xf:group tagname="colgroup">
|
|
<xf:group style="width:180px;" tagname="col"></xf:group>
|
|
<xf:group style="width:70.00px;" tagname="col"></xf:group>
|
|
<xf:group style="width:360px;" tagname="col"></xf:group>
|
|
<xf:group style="width:*;" tagname="col"></xf:group>
|
|
</xf:group>
|
|
<xf:group adaptive="" adaptiveThreshold="" style="" tagname="tr">
|
|
<xf:group class="w2tb_td" style="" tagname="td"><xf:select1 id="rad_kbn" selectedIndex="0" appearance="full" style="" cols="" rows="1" ref="data:statMap.kbn" ev:onchange="scwin.rad_kbn_onchange" renderType="table">
|
|
<xf:choices>
|
|
<xf:item>
|
|
<xf:label><![CDATA[일별]]></xf:label>
|
|
<xf:value><![CDATA[1]]></xf:value>
|
|
</xf:item>
|
|
<xf:item>
|
|
<xf:label><![CDATA[월별]]></xf:label>
|
|
<xf:value><![CDATA[2]]></xf:value>
|
|
</xf:item>
|
|
<xf:item>
|
|
<xf:label><![CDATA[년별]]></xf:label>
|
|
<xf:value><![CDATA[3]]></xf:value>
|
|
</xf:item>
|
|
</xf:choices>
|
|
</xf:select1></xf:group>
|
|
<xf:group class="w2tb_th" style="" tagname="th">통행일자</xf:group>
|
|
<xf:group class="w2tb_td" style="" tagname="td"><w2:inputCalendar calendarValueType="yearMonthDate" class="" dateValidCheck="" focusOnDateSelect="false"
|
|
footerDiv="false" id="ica_inStDate" ref="data:statMap.inStDate" renderDiv="true" renderType="component" style=""
|
|
weekStartsOn="0" validCheck="true" mandatory="true">
|
|
</w2:inputCalendar><w2:span id="spa_inDate" label="~" style=""></w2:span><w2:inputCalendar calendarValueType="yearMonthDate" class="" dateValidCheck="" focusOnDateSelect="false"
|
|
footerDiv="false" id="ica_inEdDate" ref="data:statMap.inEdDate" renderDiv="true" renderType="component" style=""
|
|
weekStartsOn="0" validCheck="true" mandatory="true">
|
|
</w2:inputCalendar><xf:trigger class="btn_act" ev:onclick="scwin.btn_showChart_onclick" id="btn_showChart" style=""
|
|
type="button">
|
|
<xf:label><![CDATA[그래프]]></xf:label>
|
|
</xf:trigger><xf:trigger class="btn_act" ev:onclick="scwin.btn_showGrid_onclick" id="btn_showGrid" style="" type="button">
|
|
<xf:label><![CDATA[화면]]></xf:label>
|
|
</xf:trigger></xf:group>
|
|
<xf:group class="w2tb_td" style="" tagname="td">
|
|
<xf:group class="fr" id="">
|
|
<xf:trigger class="btn_sh" ev:onclick="scwin.btn_search_onclick" id="btn_search" style="" type="button">
|
|
<xf:label><![CDATA[조회]]></xf:label>
|
|
</xf:trigger>
|
|
</xf:group>
|
|
</xf:group>
|
|
</xf:group>
|
|
</xf:group>
|
|
</xf:group>
|
|
<xf:group class="defaultbox" id="" style="">
|
|
<w2:textbox class="df_tt" id="" label="요금소별 수입금 현황" style="" tagname="h2"></w2:textbox>
|
|
<xf:group class="fr" id="" style="">
|
|
|
|
<xf:trigger class="btn_act print" ev:onclick="scwin.btn_print_onclick" id="btn_print" style="" type="button">
|
|
<xf:label><![CDATA[인쇄]]></xf:label>
|
|
</xf:trigger><xf:trigger class="btn_act exceldown" id="btn_excel" style="" type="button" ev:onclick="scwin.btn_excel_down_onclick">
|
|
<xf:label><![CDATA[엑셀다운로드]]></xf:label>
|
|
</xf:trigger></xf:group>
|
|
|
|
</xf:group>
|
|
<w2:gridView autoFit="allColumn" autoFitMinWidth="600" class="cm_grid" dataList="data:statList" fixedColumnWithHidden="true"
|
|
focusMode="row" id="grd_statList" ignoreCellClick="false" ignoreToggleOnDisabled="false" scrollByColumn="false"
|
|
scrollByColumnAdaptive="false" style="height: 54px;" summaryAuto="false" useShiftKey="true" visibleRowNum="all" readOnly="true">
|
|
<w2:caption style="" id="caption2" value="this is a grid caption."></w2:caption>
|
|
<w2:header style="" id="header2">
|
|
<w2:row style="" id="row3">
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="column18" value="통행일자" blockSelect="false"
|
|
displayMode="label">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="column15" value="소계" blockSelect="false"
|
|
displayMode="label">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="column12" value="1호 요금소" blockSelect="false"
|
|
displayMode="label">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="column9" value="3호 요금소" blockSelect="false"
|
|
displayMode="label">
|
|
</w2:column>
|
|
</w2:row>
|
|
</w2:header>
|
|
<w2:gBody style="" id="gBody2">
|
|
<w2:row style="" id="row4">
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="inDate" blockSelect="false"
|
|
displayMode="label" dataType="date" displayFormatter="com.fmtDateDtime">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="expression" id="fareOfficeTotal" blockSelect="false"
|
|
displayMode="label" dataType="number" displayFormat="#,###" textAlign="right" expression="SUM('fareOffice1','fareOffice3')"
|
|
excelExpression="">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="fareOffice1" blockSelect="false"
|
|
displayMode="label" dataType="number" displayFormat="#,###" textAlign="right">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="fareOffice3" blockSelect="false"
|
|
displayMode="label" dataType="number" displayFormat="#,###" textAlign="right">
|
|
</w2:column>
|
|
</w2:row>
|
|
</w2:gBody>
|
|
<w2:footer style="" id="footer1">
|
|
<w2:row style="" id="row5">
|
|
<w2:column removeBorderStyle="false" width="70" inputType="text" id="column20" value="합계" blockSelect="false"
|
|
displayMode="label">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="expression" id="column17" blockSelect="false"
|
|
displayMode="label" expression="SUM('fareOfficeTotal')" dataType="number" displayFormat="#,##0" textAlign="right"
|
|
excelExpression="">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="expression" id="column14" blockSelect="false"
|
|
displayMode="label" expression="SUM('fareOffice1')" dataType="number" displayFormat="#,##0" textAlign="right" excelExpression="">
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="70" inputType="expression" id="column11" blockSelect="false"
|
|
displayMode="label" expression="SUM('fareOffice3')" dataType="number" displayFormat="#,##0" textAlign="right">
|
|
</w2:column>
|
|
</w2:row>
|
|
</w2:footer>
|
|
</w2:gridView>
|
|
<w2:fusionchart chartType="MSColumn3D" drawType="javascript" id="cht_statList" labelNode="inDateName"
|
|
ref="data:statList" style="height: 500px;"
|
|
valueNode="" seriesColumns="[['fareOffice1','fareOffice3']]" accessibility="">
|
|
</w2:fusionchart>
|
|
</xf:group>
|
|
</body>
|
|
</html>
|