123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>계정별 불출 현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <headdata>
- <instcd/>
- <instnm/>
- <prtname/>
- </headdata>
- <printdatalist>
- <windeptcd/>
- <deptnm>
- </deptnm>
- <ym/>
- <purcacntcd/>
- <purcacntnm>
- </purcacntnm>
- <outamt/>
- </printdatalist>
- <ViewLists>
- <ViewList>
- <purcacntnm/>
- <purcacntcd/>
- </ViewList>
- </ViewLists>
- </main>
- <init>
- <ViewList>
- <purcacntnm/>
- <purcacntcd/>
- </ViewList>
- </init>
- <send>
- <frmonth/>
- <tomonth/>
- <payinstcd/>
- <deptcd/>
- <deptnm/>
- <frstocdeptcd/>
- <frstocdeptcdnm/>
- <tostocdeptcd/>
- <tostocdeptcdnm/>
- </send>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit() ; // 화면 Control을 초기화한다
- ]]>
- </script>
- <submission id="TRRSG04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/printdatalist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/stocsumweb/js/SMRSG04201.js"/>
- <script type="javascript">
- <![CDATA[
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">계정별 부서별 불출 현황</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:20px; width:1195px; height:760px; ">
- <caption id="caption1" style="left:480px; top:16px; width:15px; height:20px; ">~</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/headdata/instcd", cmb_instcd.value);
- model.setValue("/root/main/headdata/instnm", cmb_instcd.label);
- if (model.getValue(ipt_frstocdeptcd.attribute("ref") ) == "") {
- model.setValue(ipt_tostocdeptcd.attribute("ref"), "");
- }
-
- if ((model.getValue(ipt_frstocdeptcd.attribute("ref") ) != "") &&
- (model.getValue(ipt_tostocdeptcd.attribute("ref")) == "") ) {
- model.setValue(ipt_tostocdeptcd.attribute("ref"), model.getValue(ipt_frstocdeptcd.attribute("ref") ));
- }
-
- if (model.getValue(ipt_frstocdeptcd.attribute("ref")) >
- model.getValue(ipt_tostocdeptcd.attribute("ref")) ) {
- alert("시작부서가 끝부서보다 큽니다 확인 하십시요!!");
- return;
- }
-
- submit("TRRSG04201");
-
- fViewDataTitle();
-
- // fViewData();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1120px; y1:20px; x2:1120px; y2:54px; "/>
- <input id="ipt_topayym" ref="/root/send/tomonth" class="input_default" inputtype="date" format="yyyy-mm" style="left:480px; top:16px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
- <input id="ipt_frpayym" ref="/root/send/frmonth" class="input_default" inputtype="date" format="yyyy-mm" style="left:480px; top:16px; width:94px; height:19px; text-align:center; vertical-align:middle; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue(ipt_topayym.attribute("ref"), model.getValue(ipt_frpayym.attribute("ref")));
- ]]>
- </script>
- </input>
- <caption id="caption28" class="tit_2" style="left:5px; top:73px; width:162px; height:13px; ">계정별 불출 현황</caption>
- <line id="line193" class="line_1" style="x1:0px; y1:91px; x2:1192px; y2:91px; "/>
- <caption id="cap_payym" class="search_name" style="left:390px; top:17px; width:90px; height:17px; ">작업년월 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/payinstcd" appearance="minimal" style="left:80px; top:16px; width:238px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:17px; width:70px; height:17px; ">기 관 :</caption>
- <output id="opt_deptnm" ref="/root/send/deptnm" class="output_fix" style="left:183px; top:40px; width:135px; height:19px; text-align:center; "/>
- <output id="opt_deptcd" ref="/root/send/deptcd" class="output_fix" style="left:80px; top:40px; width:100px; height:19px; text-align:center; "/>
- <caption id="cap_deptcd" class="search_name" style="left:10px; top:41px; width:70px; height:17px; ">부 서 :</caption>
- <button id="button1" class="icon_search" style="left:839px; top:16px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "frstocdeptcd,frstocdeptcdnm";
- misfOpenPopUpList("02", ipt_frstocdeptcd,"", recv_list) ;
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:668px; top:17px; width:86px; height:17px; ">출고부서 :</caption>
- <input id="ipt_frstocdeptcdnm" ref="/root/send/frstocdeptcdnm" class="input_search" style="left:860px; top:16px; width:197px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "frstocdeptcd,frstocdeptcdnm" );
- model.refresh();
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_frstocdeptcd" ref="/root/send/frstocdeptcd" class="input_default" maxlength="10" appearance="input" style="left:755px; top:16px; width:81px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_frstocdeptcd.attribute("ref") ) == "") {
- model.setValue(ipt_tostocdeptcd.attribute("ref"), "");
- return;
- }
-
- misfValidationCheck("02", "", "frstocdeptcd,frstocdeptcdnm" );
-
- if (model.getValue(ipt_frstocdeptcdnm.attribute("ref") ) != "") {
- if (model.getValue(ipt_tostocdeptcdnm.attribute("ref") ) == "") {
- model.setValue(ipt_tostocdeptcd.attribute("ref") , model.getValue(ipt_frstocdeptcd.attribute("ref")) );
- model.setValue(ipt_tostocdeptcdnm.attribute("ref"), model.getValue(ipt_tostocdeptcdnm.attribute("ref")));
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <button id="button2" class="icon_search" style="left:841px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "tostocdeptcd,tostocdeptcdnm";
- misfOpenPopUpList("02", ipt_tostocdeptcd,"", recv_list) ;
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_tostocdeptcdnm" ref="/root/send/tostocdeptcdnm" class="input_search" style="left:860px; top:40px; width:197px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "tostocdeptcd,tostocdeptcdnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_tostocdeptcd" ref="/root/send/tostocdeptcd" class="input_default" maxlength="10" appearance="input" style="left:755px; top:40px; width:81px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "tostocdeptcd,tostocdeptcdnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:1065px; top:16px; width:26px; height:20px; ">에서</caption>
- <caption id="caption3" style="left:1065px; top:40px; width:26px; height:20px; ">까지</caption>
- <caption id="caption4" style="left:739px; top:40px; width:15px; height:20px; ">~</caption>
- <datagrid id="grd_viewlist" nodeset="/root/main/ViewLists/ViewList" caption="계정/부서^계정코드|계정/부서^계정코드" colsep="^" colwidth="161, 100" explorerbar="sortshow" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:96px; width:1192px; height:660px; ">
- <col ref="purcacntnm"/>
- <col ref="purcacntcd" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_source" nodeset="/root/main/printdatalist" visibility="hidden" caption="부서코드^부서명^작업년월^계정코드^계정명^출고수량^전월^증감율^부서위치^계정위치" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:105px; top:430px; width:975px; height:110px; ">
- <col ref="windeptcd"/>
- <col ref="deptnm"/>
- <col ref="ym"/>
- <col ref="purcacntcd"/>
- <col ref="purcacntnm"/>
- <col ref="outamt"/>
- <col ref="befoutamt"/>
- <col ref="percent"/>
- <col ref="colpos"/>
- <col ref="rowpos"/>
- </datagrid>
- <button id="btn_excel" class="btn5_letter3" style="left:1125px; top:69px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_viewlist);
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="visible" style="left:1060px; top:68px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRSG04201", "XMLSTR");//, "/root/main/payamt");
- ]]>
- </script>
- </button>
- <button id="button3" visibility="hidden" style="left:285px; top:70px; width:63px; height:20px; ">
- <caption>addCol</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grd_viewlist.col = 2;
- // var vColWidth = "154, 100" ;
- var sViewCaption10 = "계정/부서^계정코드";
- var sViewCaption20 = "계정/부서^계정코드";
- var sViewNm = "";
- var sViewNm2 = "^전월^금월^증감율";
- // 계정/부서^계정코드|계정/부서^계정코드
- var vDept = "";
- for (var i = 1; i < 5 ; i++ ) {
- sViewNm = "^d"+ lpad(i , 3, "0");
-
- // vColWidth += "100, 100, 60" ;
- sViewCaption20 += sViewNm2;
- sViewCaption10 += sViewNm+sViewNm + sViewNm;
- grd_viewlist.insertColumn(2+i, "ref:b" + lpad(i , 3, "0")+";format=(-)#,### style=text-align:right;", "after", false);
- grd_viewlist.insertColumn(3+i, "ref:d" + lpad(i , 3, "0")+";format=(-)#,### style=text-align:right;", "after", false);
- grd_viewlist.insertColumn(4+i, "ref:p" + lpad(i , 3, "0")+";format=(-)#,### style=text-align:right;", "after", false);
-
- //grd_viewlist.colWidth( 4+i) ='60';
- }
-
- // grd_viewlist.colwidth = vColWidth;
- grd_viewlist.caption = sViewCaption10+"|"+ sViewCaption20;
-
- grd_viewlist.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button4" visibility="hidden" style="left:430px; top:70px; width:55px; height:20px; ">
- <caption>delCol</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_viewlist.cols < 3) return;
-
- alert("cols==>>"+grd_viewlist.cols );
-
- for (var i = grd_viewlist.cols-1; i > 2 ; i-- ) {
- grd_viewlist.deleteColumn(i);
- }
-
- grd_viewlist.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button5" visibility="hidden" style="left:350px; top:70px; width:55px; height:20px; ">
- <caption>InsCol</caption>
- </button>
- <button id="button6" visibility="hidden" style="left:485px; top:70px; width:55px; height:20px; ">
- <caption>remCol</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_viewlist.col= 3;
- grd_viewlist.removeColumn(true);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|