123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>직원식통계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <data>
- <appdd/>
- <psnno1/>
- <psnno2/>
- <psnno3/>
- <insum/>
- <psnno4/>
- <psnno5/>
- <psnno6/>
- <psnno7/>
- <psnno8/>
- <outsum/>
- <totalsum/>
- </data>
- </main>
- <send>
- <data>
- <yyyymm/>
- </data>
- </send>
- <init/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- ipt_yyyymm.value = getCurrentDate().substr(0, 6);
- makeReportPreview(5,55,1000,700);
- ]]>
- </script>
- <submission id="TRANS00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //계,소계,총계 구하기
- function fSum() {
-
- model.setValue("/root/main/data["+(grd_data.rows-3)+"]/appdd", "계");
- model.setValue("/root/main/data["+(grd_data.rows-2)+"]/appdd", "전월");
- //월계 구하기
- var val = 0;
- var temp = 0;
- for (var k = 1; k <= 8; k++) {
- for ( i=1; i<grd_data.rows-3; i++) {
- val = model.getValue("/root/main/data["+ i +"]/psnno" + k);
- if (val > 0) {
- temp = parseInt(temp) + parseInt(val);
- }
- }
- model.setValue("/root/main/data["+(grd_data.rows-3)+"]/psnno" + k, temp); //당월 계
- temp = 0;
- }
-
- //일별 소계,총계 구하기
- var val = 0;
- var temp = 0;
- var sum = 0;
- for ( i=1; i<grd_data.rows-1; i++) {
- for (var k = 1; k <= 8; k++) {
- val = model.getValue("/root/main/data["+ i +"]/psnno" + k);
- if (val != "") {
- temp = parseInt(temp) + parseInt(val);
- }
- if (k == 3) {
- model.setValue("/root/main/data["+ i +"]/insum", temp);
- sum = sum + temp;
- temp = 0;
- } else if (k == 8) {
- model.setValue("/root/main/data["+ i +"]/outsum", temp);
- model.setValue("/root/main/data["+ i +"]/totalsum", sum + temp);
- temp = 0;
- sum = 0;
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">직원식통계</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:770px; ">
- <group id="group1" style="left:5px; top:10px; width:1180px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:35px; background-color:#fffbf2; "/>
- <caption id="caption3" class="search_name" style="left:25px; top:9px; width:90px; height:17px; ">조회년월 :</caption>
- <line id="line14" class="line_4" style="x1:1095px; y1:7px; x2:1095px; y2:29px; "/>
- <input id="ipt_yyyymm" ref="/root/send/data/yyyymm" format="yyyy-mm" style="left:115px; top:9px; width:75px; height:19px; text-align:center; "/>
- <button id="btn_before" class="icon_pre" style="left:193px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/data/yyyymm") + "01";
- dd = dd.toDate().getAddDate(-1, "M");
- dd = dd.getDateFormat("YYYYMM");
- model.setValue("/root/send/data/yyyymm", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_next" class="icon_next" style="left:208px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/data/yyyymm") + "01";
- dd = dd.toDate().getAddDate(1, "M");
- dd = dd.getDateFormat("YYYYMM");
- model.setValue("/root/send/data/yyyymm", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1110px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/data/yyyymm") == ""){
- messageBox("조회년월은", "I003");
- model.setFocus("ipt_yyyymm");
- return;
- }
- if (isValidDateTime(model.getValue("/root/send/data/yyyymm"), "YYYYMM") == false){
- messageBox("조회년월의 형식이", "E016");
- model.setFocus("ipt_yyyymm");
- return;
- }
-
- submit("TRANS00301");
- fSum(); //계,소계,총계 구하기
-
- exeReportPreview("RPANS00301", "XMLSTR", "", "", "false","","","","","false", "", "");
- ]]>
- </script>
- </button>
- </group>
- <line id="line2" class="line_1" style="x1:5px; y1:50px; x2:1185px; y2:50px; "/>
- <datagrid id="grd_data" nodeset="/root/main/data" visibility="hidden" caption="일자^본원^본원^본원^본원^외부^외부^외부^외부^외부^외부^총계|일자^ID카드^현금^공용^소계^성의^성모^의정부^부천^기타^소계^총계" colsep="^" colwidth="70, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 70" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:55px; width:800px; height:675px; ">
- <col ref="appdd" style="text-align:center; "/>
- <col ref="psnno1"/>
- <col ref="psnno2"/>
- <col ref="psnno3"/>
- <col ref="insum"/>
- <col ref="psnno4"/>
- <col ref="psnno5"/>
- <col ref="psnno6"/>
- <col ref="psnno7"/>
- <col ref="psnno8"/>
- <col ref="outsum"/>
- <col ref="totalsum"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|