123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479 |
- <?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/>
- <dutunitcd/>
- <dutunitnm/>
- </deduitem>
- <deduitemamt>
- <instcd/>
- <emplno/>
- <dutym/>
- </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, "TRRPD12401" ,"Y");
- misfMsterDetailSet(grd_deduitemamtlist,grd_deduitemlist, "TRRPD12402" ,"Y");
-
- var curdate = getCurrentDate();
- model.setValue("/root/send/deduitem/dutym", curdate.substr(0, 6));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- misfGetUserAuth();
-
- rpdfSetControlAuth();
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
- model.setValue("/root/send/deduitem/dutunitcd", DUT_UNIT_CD);
- model.setValue("/root/send/deduitem/dutunitnm", DUT_UNIT_NM);
- //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="TRRPD12401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitem" resultref="/root/main/deduitem"/>
- <submission id="TRRPD12402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitemamt" resultref="/root/main/deduitemamt"/>
- <submission id="TXRPD12401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- </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[
- if (DUTY_PART_YN != "Y"){
- if (model.getValue("/root/send/deduitem/dutunitcd") == ""){
- messageBox("관리부서를 선택한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- }
- misfMsterDetailRetrieve();
- if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/deprtmangrdutcnfmyn") == "Y"){
- grd_deduitemamtlist.disabled = true;
- }else{
- grd_deduitemamtlist.disabled = false;
- }
- 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; "/>
- <button id="btn_grdadddeduitemamtlist" class="btn2_letter3" style="left:1081px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno") == ""){
- messageBox("사원번호를 선택한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- misfGridIUD(grd_deduitemamtlist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_grddeldeduitemamtlist" class="btn2_letter3" style="left:1137px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_deduitemamtlist.valueMatrix(grd_deduitemamtlist.row, grd_deduitemamtlist.colRef("endyn")) == "Y") {
- messageBox("마감이 되어서 삭제 ", "E001");
- return;
- }
-
- // grd_deduitemamtlist.subtotal("clear", 0, 0);
- // grd_deduitemamtlist.refresh();
-
- misfGridIUD(grd_deduitemamtlist, "D");
- ]]>
- </script>
- </button>
- <datagrid id="grd_deduitemlist" nodeset="/root/main/deduitem/deduitemlist" caption="사원번호^성명^휴일수^잔여수^부서^입사일^퇴사일^확정여부^caption1^caption2^caption3^비고" colsep="^" colwidth="90, 70, 65, 65, 200, 90, 90, 60, 9, 8, 7, 190, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:960px; height:665px; ">
- <col disabled="true" ref="emplno" type="inputbutton"/>
- <col ref="emplnm" style="text-align:left; "/>
- <col ref="holicnt" type="input" format="99" style="text-align:center; "/>
- <col ref="jancnt" type="input" 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 checkvalue="Y,N" disabled="true" ref="deprtmangrdutcnfmyn" type="checkbox"/>
- <col ref="dutym" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="oldholicnt" visibility="hidden"/>
- <col ref="cmt" type="input"/>
- <col/>
- <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"));
- misfMsterDetailRetrieve();
- if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/deprtmangrdutcnfmyn") == "Y"){
- grd_deduitemamtlist.disabled = true;
- }else{
- grd_deduitemamtlist.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_deduitemlist.colAttribute(grd_deduitemlist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_deduitemlist, recv_list,"","N");
- if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno") != ""){
- misfGridInit(grd_deduitemamtlist);
- btn_grdadddeduitemamtlist.dispatch("DOMActivate");
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_deduitemlist.colAttribute(grd_deduitemlist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
- misfValidationCheck("01-1", "", recv_list);
- if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno") != ""){
- misfGridInit(grd_deduitemamtlist);
- btn_grdadddeduitemamtlist.dispatch("DOMActivate");
- }
- model.refresh();
- }
- if (grd_deduitemlist.colAttribute(grd_deduitemlist.col,"ref") == "holicnt" ) { //계산기준코드
- if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/deprtmangrdutcnfmyn") == "Y"){
- messageBox("확정된 자료는 수정할 수 없습니다.", "E999", "");
- model.setValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/holicnt", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/oldholicnt"));
- grd_deduitemlist.rowStatus(grd_deduitemlist.row) = 0;
- return;
- }
- model.refresh();
- }
- ]]>
- </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" type="inputdate" 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_grddeldeduitemlist" class="btn2_letter3" style="left:839px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfGridIUD(grd_deduitemlist, "D");
- grd_deduitemlist.rowStatus(grd_deduitemlist.row) = 4;
- for (var i = 1; i < grd_deduitemamtlist.rows; i++){
- grd_deduitemamtlist.rowStatus(i) = 4;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadddeduitemlist" class="btn2_letter3" style="left:783px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_deduitemlist, "A");
- ]]>
- </script>
- </button>
- <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>
- <button id="btn_emplno" class="icon_search" style="left:965px; 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>
- <caption id="caption7" class="search_name" style="left:815px; top:17px; width:63px; height:17px; ">사번 :</caption>
- <input id="ipt_emplnos" ref="/root/send/deduitem/emplno" class="input_essential" style="left:876px; 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:982px; 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>
- <select1 id="cmb_instcd" ref="/root/send/deduitem/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:94px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:35px; 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:330px; top:17px; width:110px; 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:243px; top:18px; width:91px; height:17px; ">근무년월 :</caption>
- <button id="btn_dutdept" class="icon_search" visibility="visible" style="left:643px; 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:661px; top:17px; width:134px; 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:552px; 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>
- <caption id="caption5" class="search_name" style="left:465px; top:18px; width:86px; height:17px; ">관리부서 :</caption>
- <select1 id="cmb_dutplce" ref="/root/send/deduitem/dutunitcd" class="combo_search" visibility="visible" appearance="minimal" style="left:552px; top:17px; width:243px; 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; ">
- <button id="btn_save" class="btn4_letter2" style="left:1134px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_deduitemamtlist.rows; i++){
- if (model.getValue("/root/main/deduitemamt/deduitemamtlist[" + i + "]/emplno") == ""){
- messageBox(1 + "번째 사원번호는 필수 선택 항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/deduitemamt/deduitemamtlist[" + i + "]/dutdd") == ""){
- messageBox(1 + "번째 OFF일은 필수 입력 항목입니다.", "E999", "");
- return;
- }
- }
- if (misfSave("TXRPD12401")){
- var icnt = grd_deduitemlist.row;
- btn_search.dispatch("DOMActivate");
- grd_deduitemlist.row = icnt;
- grd_deduitemlist.dispatch("onrowchanged");
- }
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button1" class="btn6_letter2" style="left:0px; top:2px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_deduitemlist);
- if (updtdata == "") {
- exeReportPreview("RPRPD02401", "XMLSTR");
- } else {
- messageBox("변경 된 데이타가 있습니다.", "E999", "");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|