123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <?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>
- <dutschepsnworkcnfm>
- <dutschepsnworkcnfmlist/>
- </dutschepsnworkcnfm>
- </main>
- <send>
- <dutschepsnworkcnfm>
- <instcd/>
- <srvarmapfromdd/>
- <srvarmaptodd/>
- <dutunitcd/>
- <dutunitnm/>
- <emplno/>
- <emplnm/>
- <deprtmangraprvyn>N</deprtmangraprvyn>
- <nursall/>
- </dutschepsnworkcnfm>
- <save>
- <dutschepsnworkcnfmlist/>
- </save>
- </send>
- <tempday>
- <dutinfo/>
- </tempday>
- <hidden>
- <check/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_dutschepsnworkcnfmlist);
- misfMsterDetailSet(grd_dutschepsnworkcnfmlist, null, "TRRPD04701" ,"Y");
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- var dtLast = new Date(getCurrentDate().substr(0, 4), getCurrentDate().substr(4, 2), 0);
- var iLastDay = dtLast.getDate();
-
- submit("TRRPD10102", false);
- ipt_srvarmapfromdd.value = model.getValue("/root/tempday/dutinfo/dutlist/fromymd");
- ipt_srvarmaptodd.value = model.getValue("/root/tempday/dutinfo/dutlist/toymd");
- cmb_instcd.value = getUserInfo("dutplceinstcd");
-
- // if(getUserInfo("dutplceinstcd") != "001")
- // {
- // cmb_instcd.disabled = true;
- // }
- btn_search.disabled = !(checkAuth("R"));
- btn_save.disabled = !(checkAuth("X"));
-
- misfGetAndSetUserInfo();
- // 간호부일때는 간호부전체 체크박스를 풀수없도록 한다
- /*
- if ( DUT_DEPT_CD == "3040200000" ) {
- chk_nursall.value = 'Y'
- chk_nursall.disabled = true;
-
- btn_save.disabled = true;
- btn_grdadddutschepsnworkcnfmlist.disabled = true;
- btn_grddeldutschepsnworkcnfmlist.disabled = true;
- }
- */
- ]]>
- </script>
- <submission id="TXRPD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hiddeen/temp"/>
- <submission id="TRRPD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutschepsnworkcnfm" resultref="/root/main/dutschepsnworkcnfm"/>
- <submission id="TRRPD10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/tempday/dutinfo"/>
- </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/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"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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; ">
- <group id="group4" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line3" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:388px; top:35px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplno" ref="/root/send/dutschepsnworkcnfm/emplno" class="input_search" navindex="2" style="left:473px; top:34px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" style="left:572px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/dutschepsnworkcnfm/emplnm" class="input_search" navindex="3" style="left:590px; top:34px; width:182px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_emplnm.value = ipt_emplnm.currentText;
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:388px; top:10px; width:103px; height:17px; ">적용년월 :</caption>
- <input id="ipt_srvarmapfromdd" ref="/root/send/dutschepsnworkcnfm/srvarmapfromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:473px; top:8px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_srvarmapfromdd.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/dutschepsnworkcnfm/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_srvarmapfromdd.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_srvarmaptodd" ref="/root/send/dutschepsnworkcnfm/srvarmaptodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:615px; top:8px; width:120px; height:19px; text-align:center; "/>
- <select1 id="cmb_instcd" ref="/root/send/dutschepsnworkcnfm/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:258px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:15; top:10px; width:85px; height:17px; ">기 관 :</caption>
- <caption id="caption7" class="search_name" style="left:15; top:35px; width:86px; height:17px; ">근무부서 :</caption>
- <input id="ipt_dutdeptnm" ref="/root/send/dutschepsnworkcnfm/dutunitnm" class="input_search" navindex="3" style="left:208px; top:34px; width:150px; 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_dutplcedeptnm.value = ipt_dutplcedeptnm.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_dutdeptcd" class="icon_search" style="left:188px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptcd" ref="/root/send/dutschepsnworkcnfm/dutunitcd" class="input_search" navindex="2" maxlength="10" style="left:100px; top:34px; width:85px; height:19px; text-align:center; ">
- <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_dutplcedeptcd.value = ipt_dutplcedeptcd.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- }
-
- ]]>
- </script>
- </input>
- <select1 id="rdo_deprtmangraprvyn" ref="/root/send/dutschepsnworkcnfm/deprtmangraprvyn" appearance="full" cols="3" overflow="visible" style="left:881px; top:10px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>확인</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확인</label>
- <value>N</value>
- </item>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" style="left:598px; top:11px; width:14px; height:14px; font-weight:bold; ">~</caption>
- <caption id="caption9" class="search_name" style="left:796px; top:10px; width:86px; height:17px; ">확인여부 :</caption>
- <select id="chk_nursall" ref="/root/send/dutschepsnworkcnfm/nursall" visibility="hidden" overflow="visible" appearance="full" style="left:795px; top:34px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>간호부전체</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <button id="btn_grdadddutschepsnworkcnfmlist" class="btn2_letter3" visibility="hidden" style="left:1019px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_dutschepsnworkcnfmlist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_grddeldutschepsnworkcnfmlist" class="btn2_letter3" visibility="hidden" style="left:1073px; top:74px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_dutschepsnworkcnfmlist, "D");
- ]]>
- </script>
- </button>
- <datagrid id="grd_dutschepsnworkcnfmlist" nodeset="/root/main/dutschepsnworkcnfm/dutschepsnworkcnfmlist" class="datagrid2" caption="기관^부서명^사원번호^성명^근무코드^기간^기간^부서장승인^ 인사팀^신청사유^caption1^caption2^caption3^caption4^밤근무월제한일수" colsep="^" colwidth="100, 100, 73, 80, 85, 122, 121, 70, 79, 374, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:99px; width:1195px; height:635px; ">
- <col ref="instcd" visibility="visible"/>
- <col ref="dutplcedeptnm"/>
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col disabled="true" ref="dutcd" type="combo">
- <choices>
- <item>
- <label>시간외</label>
- <value>01</value>
- </item>
- <item>
- <label>야간</label>
- <value>02</value>
- </item>
- <item>
- <label>휴일</label>
- <value>03</value>
- </item>
- <item>
- <label>CALL</label>
- <value>04</value>
- </item>
- <item>
- <label>심야야간</label>
- <value>05</value>
- </item>
- </choices>
- </col>
- <col ref="appfrom" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
- <col ref="appto" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="deprtmangraprvyn" type="checkbox" visibility="hidden"/>
- <col checkvalue="Y,N" ref="psnworkapryn" type="checkbox"/>
- <col ref="appresn" type="output"/>
- <col ref="oldappfrom" visibility="hidden"/>
- <col ref="olddutcd" visibility="hidden"/>
- <col ref="appdd" visibility="hidden"/>
- <col ref="dutymd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_dutschepsnworkcnfmlist.row >= grd_dutschepsnworkcnfmlist.fixedRows)
- {
- //model.setValue("/root/send/dutschepsnworkcnfm/emplno", grd_dutschepsnworkcnfmlist.valueMatrix(grd_dutschepsnworkcnfmlist.row, grd_dutschepsnworkcnfmlist.colRef("emplno")));
- //model.setValue("/root/send/dutschepsnworkcnfm/emplnm", grd_dutschepsnworkcnfmlist.valueMatrix(grd_dutschepsnworkcnfmlist.row, grd_dutschepsnworkcnfmlist.colRef("emplnm")));
-
- model.refresh();
- }
- if(grd_dutschepsnworkcnfmlist.isCell(event.focus) > 0)
- {
- if(grd_dutschepsnworkcnfmlist.row <= grd_dutschepsnworkcnfmlist.fixedRows && grd_dutschepsnworkcnfmlist.mouseCol == grd_dutschepsnworkcnfmlist.colRef("psnworkapryn"))
- {
- for(var i = 2; i < grd_dutschepsnworkcnfmlist.rows; i++)
- {
- grd_dutschepsnworkcnfmlist.addStatus(i, "update");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dutschepsnworkcnfmlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:79px; width:100px; height:13px; ">개인신청현황</caption>
- <bool id="bool1" ref="/root/hidden/check" style="left:709px; top:106px; width:15px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/check") == "true")
- {
- for(var i=grd_dutschepsnworkcnfmlist.fixedRows; i<grd_dutschepsnworkcnfmlist.rows; i++)
- {
- if(grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) == "N")
- {
- grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) = "Y";
- grd_dutschepsnworkcnfmlist.addStatus(i, "update");
- }
- }
- }
- else
- {
- for(var i=grd_dutschepsnworkcnfmlist.fixedRows; i<grd_dutschepsnworkcnfmlist.rows; i++)
- {
- if(grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) == "Y")
- {
- grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) = "N";
- grd_dutschepsnworkcnfmlist.addStatus(i, "update");
- }
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </bool>
- <button id="btn_excel" class="btn2_letter4" style="left:1129px; top:74px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_dutschepsnworkcnfmlist);
- ]]>
- </script>
- </button>
- <datagrid id="grd_excelsave" nodeset="/root/main/dutschepsnworkcnfm/dutschepsnworkcnfmlist" visibility="hidden" caption="부서명^사원번호^성명^근무코드^신청일^신청기간^신청기간^신청일수^부서장승인^승인^신청사유^밤근무월제한일수|부서명^사원번호^성명^근무코드^신청일^From^To^신청일수^부서장승인^승인^신청사유^밤근무월제한일수" colsep="^" colwidth="100, 84, 80, 65, 100, 100, 100, 58, 45, 45, 270" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:20px; top:200px; width:1075px; height:301px; ">
- <col ref="dutplcedeptnm"/>
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="dutcd"/>
- <col disabled="true" ref="srvarmappdd" type="inputdate"/>
- <col disabled="true" ref="srvarmfromdd" type="inputdate"/>
- <col disabled="true" ref="srvarmtodd" type="inputdate"/>
- <col ref="srvarmdayno"/>
- <col checkvalue="Y,N" disabled="true" ref="deprtmangraprvyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="psnworkapryn" type="checkbox"/>
- <col type="output"/>
- </datagrid>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <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[
- if (misfSave("TXRPD04701")){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|