123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <deduitem>
- <deduitemlist/>
- <instpaydedulist/>
- <appinstpaydedulist/>
- </deduitem>
- <deduitemamt>
- <deduitemamtlist/>
- </deduitemamt>
- <fixdeduitemamt>
- <fixdeduitemamtlist/>
- </fixdeduitemamt>
- <titlelist>
- <deduitemnm/>
- <dedumm/>
- </titlelist>
- </main>
- <send>
- <deduitem>
- <instcd/>
- <emplno/>
- <emplnm/>
- <dutym/>
- <duttoym/>
- <dutunitcd/>
- <dutunitnm/>
- </deduitem>
- <deduitemamt>
- <instcd/>
- <emplno/>
- <dutym/>
- <duttoym/>
- </deduitemamt>
- <save>
- <deduitemamtlist/>
- <deduitemlist/>
- </save>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_deduitemlist);
- misfGridInit(grd_deduitemamtlist);
-
- misfMsterDetailSet(grd_deduitemlist,null, "TRRPD12701" ,"Y");
- misfMsterDetailSet(grd_deduitemamtlist,grd_deduitemlist, "TRRPD12702" ,"Y");
-
- var curdate = getCurrentDate();
- model.setValue("/root/send/deduitem/dutym", curdate.substr(0, 6));
- model.setValue("/root/send/deduitem/duttoym", curdate.substr(0, 6));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- misfGetAndSetUserInfo();
- misfGetUserAuth();
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
- model.setValue("/root/send/deduitem/dutunitcd", DUT_UNIT_CD);
- model.setValue("/root/send/deduitem/dutunitnm", DUT_UNIT_NM);
- //model.setValue("/root/send/deduitem/emplno", getUserId());
- //model.setValue("/root/send/deduitem/emplnm", getUserName());
- //misfComboComCdList("Z0007", cmb_instcd);
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //개인별 공제 금액 출력물 기본 Data 설정.
- function fPrintDataSet()
- {
- //공제항목 title set
- model.setValue("/root/main/titlelist/deduitemnm", grd_deduitemlist.valueMatrix(grd_deduitemlist.row, grd_deduitemlist.colRef("deduitemnm")));
-
- //공제월 set
- model.setValue("/root/main/titlelist/dedumm", ipt_dedumm.value);
-
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRRPD12701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitem" resultref="/root/main/deduitem"/>
- <submission id="TRRPD12702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitemamt" resultref="/root/main/deduitemamt"/>
- </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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1196;">
- <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:38; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:55px; width:157px; height:14px; ">사원목록</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:70px; x2:960px; y2:70px; "/>
- <line id="line1" class="line_1" style="x1:965px; y1:70px; x2:1195px; y2:70px; "/>
- <datagrid id="grd_deduitemlist" nodeset="/root/main/deduitem/deduitemlist" caption="사원번호^성명^휴일갯수^잔여휴일수^부서^입사일^퇴사일^caption1^caption2^caption3^caption4" colsep="^" colwidth="89, 93, 73, 78, 399, 91, 89, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:960px; height:665px; ">
- <col disabled="true" ref="emplno"/>
- <col ref="emplnm" style="text-align:left; "/>
- <col ref="holicnt" format="99" style="text-align:center; "/>
- <col ref="jancnt" format="99" style="text-align:center; "/>
- <col ref="dutplcedeptnm"/>
- <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="retiredd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dutym" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="oldholicnt" visibility="hidden"/>
- <col ref="duttoym" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/send/deduitemamt/emplno", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno"));
- model.setValue("/root/send/deduitemamt/instcd", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/instcd"));
- //model.setValue("/root/send/deduitemamt/dutym", model.getValue("/root/send/deduitem/dutym"));
- //model.setValue("/root/send/deduitemamt/duttoym", model.getValue("/root/send/deduitem/duttoym"));
- misfMsterDetailRetrieve();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deduitemlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_deduitemamtlist" nodeset="/root/main/deduitemamt/deduitemamtlist" caption="OFF일^요일^caption1^caption3^caption2" colsep="^" colwidth="129, 62, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:965px; top:75px; width:230px; height:665px; ">
- <col disabled="true" ref="dutdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="yoil" format="(-)#,###" style="text-align:left; "/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="dutym" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deduitemamtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:895px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_deduitemlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:815px; top:17px; width:63px; height:17px; ">사번 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/deduitem/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:74px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:18px; width:61px; height:17px; ">기관:</caption>
- <input id="ipt_dutym" ref="/root/send/deduitem/dutym" class="input_search" inputtype="date" format="yyyy-mm" style="left:295px; top:17px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_dutym.value) == "6" ) {
- // model.removeNodeset(cmb_instcd.attribute("ref"));
- // model.makeNode("/root/send/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- fDutYMValueChanged();
- */
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:208px; top:18px; width:91px; height:17px; ">근무년월 :</caption>
- <input id="input1" ref="/root/send/deduitem/duttoym" class="input_search" inputtype="date" format="yyyy-mm" style="left:410px; top:17px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_dutym.value) == "6" ) {
- // model.removeNodeset(cmb_instcd.attribute("ref"));
- // model.makeNode("/root/send/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- fDutYMValueChanged();
- */
- ]]>
- </script>
- </input>
- <caption id="caption1" style="left:392px; top:17px; width:15px; height:20px; text-align:center; ">~</caption>
- <button id="btn_emplno" class="icon_search" style="left:970px; top:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos" ref="/root/send/deduitem/emplno" class="input_essential" style="left:881px; top:17px; width:87px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
- inputEnterKey("ipt_emplnos", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnms" ref="/root/send/deduitem/emplnm" class="input_default" style="left:987px; top:17px; width:106px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
- inputEnterKey("ipt_emplnms", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:525px; top:18px; width:86px; height:17px; ">관리부서 :</caption>
- <button id="btn_dutdept" class="icon_search" visibility="visible" style="left:703px; top:19px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_dutym.value+"31", "instcd,basedd");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptnm" ref="/root/send/deduitem/dutunitnm" class="input_search" navindex="3" visibility="visible" style="left:721px; top:17px; width:89px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.setValue("/root/send/deduitem/dutunitcd", cmb_dutplce.value);
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.setValue("/root/send/deduitem/dutunitcd", cmb_dutplce.value);
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/deduitem/dutunitcd" class="input_s_essential" navindex="2" visibility="visible" maxlength="10" style="left:612px; top:17px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.setValue("/root/send/deduitem/dutunitcd", cmb_dutplce.value);
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_dutplce" ref="/root/send/deduitem/dutunitcd" class="combo_search" visibility="visible" appearance="minimal" style="left:612px; top:17px; width:198px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- <button id="button1" class="btn6_letter2" style="left:1137px; top:14px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_deduitemlist);
- if (updtdata == "") {
- exeReportPreview("RPRPD12701", "XMLSTR");
- } else {
- messageBox("변경 된 데이타가 있습니다.", "E999", "");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|