123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- <?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>
- <list>
- <chngapplist/>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <frdutymd/>
- <todutymd/>
- <dutunitcd/>
- <dutunitnm/>
- <emplno/>
- <emplnm/>
- <cnfmyn>N</cnfmyn>
- </retrparams>
- </send>
- <init/>
- <temp/>
- <tempday>
- <dutinfo/>
- </tempday>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var ALL_CHECKED = false;
-
- function fInit()
- {
- model.removenode("/root/main/list/chngapplist");
-
- misfMsterDetailSet(grd_chngapplist, null, "TRRPD10101", "Y");
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_frdutymd.value,"","N");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- rpdfSetControlAuth();
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
-
- fSetDate();
-
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/dutunitcd", DUT_UNIT_CD);
- model.setValue("/root/send/retrparams/dutunitnm", DUT_UNIT_NM);
- // model.setValue("/root/send/retrparams/emplno", getUserInfo("userid"));
- // model.setValue("/root/send/retrparams/emplnm", getUserInfo("usernm"));
-
- //화면 권한 설정
- btn_search.disabled = !(checkAuth("R"));
- btn_save.disabled = !(checkAuth("X"));
- model.refresh();
-
- if (cmb_dutplce.value == "")
- {
- cmb_dutplce.select(0);
- }
- }
-
- function fSetDate()
- {
- var dt = new Date();
- var lastdt = new Date(dt.getYear(), dt.getMonth()+1, 0);
-
- //ipt_frdutymd.value = getCurrentDate().substr(0, 6) + "01";
- //ipt_todutymd.value = getCurrentDate().substr(0, 6) + lastdt.getDate();
- submit("TRRPD10102", false);
- ipt_frdutymd.value = model.getValue("/root/tempday/dutinfo/dutlist/fromymd");
- ipt_todutymd.value = model.getValue("/root/tempday/dutinfo/dutlist/toymd");
- model.refresh();
- }
-
- function fSave()
- {
- if (misfSave("TXRPD10001")){
- btn_search.dispatch("DOMActivate");
- }
- }
-
- function fAddRow()
- {
- misfGridIUD(grd_chngapplist, "A");
- grd_chngapplist.valueMatrix(grd_chngapplist.row, grd_chngapplist.colRef("emplno")) = ipt_emplno.value;
- grd_chngapplist.valueMatrix(grd_chngapplist.row, grd_chngapplist.colRef("emplnm")) = ipt_emplnm.value;
- grd_chngapplist.valueMatrix(grd_chngapplist.row, grd_chngapplist.colRef("appymd")) = getCurrentDate();
- }
- ]]>
- </script>
- <submission id="TXRPD10001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/chngapplist" resultref="/root/temp"/>
- <submission id="TRRPD10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TRRPD10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/tempday/dutinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">개인근무변경신청승인</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <datagrid id="grd_chngapplist" nodeset="/root/main/list/chngapplist" caption="승인^승인 temp^근무무서^기관코드^사원번호^성명^근무일자^변경전 근무코드^변경후 근무코드^신청일^신청사유^caption1^caption2^밤근무월제한일수" colsep="^" colwidth="42, 0, 0, 0, 98, 100, 140, 105, 105, 140, 420, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:94px; width:1195px; height:640px; ">
- <col checkvalue="Y,N" ref="cnfm" type="checkbox"/>
- <col ref="cnfmtemp" visibility="hidden"/>
- <col ref="dutunitcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm"/>
- <col ref="dutdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="beforedutcd" style="text-align:center; "/>
- <col ref="afterdutcd" style="text-align:center; "/>
- <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="appresn"/>
- <col ref="dutym" visibility="hidden"/>
- <col ref="daycnt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_chngapplist.col == grd_chngapplist.colRef("dutdd"))
- {
- model.setValue("/root/send/retrparams2/dutymd", grd_chngapplist.valueMatrix(grd_chngapplist.row, grd_chngapplist.colRef("dutdd")));
- model.setValue("/root/send/retrparams2/emplno", grd_chngapplist.valueMatrix(grd_chngapplist.row, grd_chngapplist.colRef("emplno")));
- submit("TRRPD10002");
-
- grd_chngapplist.valueMatrix(grd_chngapplist.row, grd_chngapplist.colRef("beforedutcd")) = model.getValue("/root/temp/pridutcd/dutcd");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_chngapplist.col == grd_chngapplist.colRef("cnfm") && grd_chngapplist.row < grd_chngapplist.fixedRows)
- {
- if(ALL_CHECKED)
- {
- ALL_CHECKED = false;
-
- for(var i=1; i<grd_chngapplist.rows; i++)
- {
- grd_chngapplist.valueMatrix(i, grd_chngapplist.colRef("cnfm")) = "N";
- grd_chngapplist.addStatus(i, "update");
- }
- }
- else
- {
- ALL_CHECKED = true;
- for(var i=1; i<grd_chngapplist.rows; i++)
- {
- grd_chngapplist.valueMatrix(i, grd_chngapplist.colRef("cnfm")) = "Y";
- grd_chngapplist.addStatus(i, "update");
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:89px; x2:1195px; y2:89px; "/>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:55px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:350px; top:7px; width:86px; height:17px; ">근무일자 :</caption>
- <line id="line3" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:350px; top:31px; width:86px; height:17px; ">사원번호 :</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:31px; width:92px; height:17px; ">관리부서 :</caption>
- <caption id="caption3" style="left:531px; top:5px; width:20px; height:20px; text-align:center; vertical-align:bottom; ">~</caption>
- <input id="ipt_frdutymd" ref="/root/send/retrparams/frdutymd" class="input_s_essential" inputtype="date" style="left:437px; top:6px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_frdutymd.value) == "8" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/retrparams/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_frdutymd.value,"","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_todutymd" ref="/root/send/retrparams/todutymd" class="input_s_essential" inputtype="date" style="left:550px; top:6px; width:95px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/retrparams/emplno" class="input_search" navindex="2" style="left:438px; top:30px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,unitcd,unitnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,unitcd,unitnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_emplhelp" class="icon_search" style="left:512px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,unitcd,unitnm", "", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/retrparams/emplnm" class="input_search" navindex="3" style="left:532px; top:30px; width:113px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,unitcd,unitnm");
- model.refresh();
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,unitcd,unitnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- // misfSetReadOnlyCol(grd_chngapplist, "emplno,emplnm,dutdd,appdd,appresn", true);
- ALL_CHECKED = false;
- ]]>
- </script>
- </button>
- <select1 id="rdo_cnfmyn" ref="/root/send/retrparams/cnfmyn" appearance="full" cols="3" overflow="visible" style="left:762px; top:7px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>승인</label>
- <value>Y</value>
- </item>
- <item>
- <label>미승인</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:675px; top:7px; width:86px; height:17px; ">승인여부 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:6px; width:218px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
- <button id="btn_dutdept" class="icon_search" style="left:187px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="3" style="left:205px; top:30px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- 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.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="2" maxlength="10" style="left:102px; top:30px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- ]]>
- </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.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_dutplce" ref="/root/send/retrparams/dutunitcd" class="combo_search" visibility="visible" appearance="minimal" style="left:102px; top:30px; width:218px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption8" class="tit_2" style="left:5px; top:74px; width:165px; height:13px; ">변경신청내역</caption>
- <button id="btn_addrow" class="btn2_letter3" visibility="hidden" style="left:1021px; top:68px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" visibility="hidden" style="left:1076px; top:68px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_chngapplist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_excelsave" class="btn2_letter4" style="left:1131px; top:69px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_chngapplist.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|