123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- <?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>
- <dutsumlist/>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <frdutym/>
- <todutym/>
- <dutunitcd/>
- <dutunitnm/>
- <retrflag>T</retrflag>
- <emplno/>
- <emplnm/>
- <deptgb/>
- </retrparams>
- <save>
- <dutsumlist/>
- </save>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRRPD06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TXRPD06101" 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/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/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // var DUT_UNIT_CD = "";
- // var DUT_UNIT_NM = "";
- // var DUTY_RESP_YN = ""; // 복무 책임자
- // var DUTY_PART_YN = ""; // 인사 복무 담당자
- function fInitialize()
- {
- model.removenode("/root/main/list/dutsumlist");
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- model.setValue("/root/send/retrparams/frdutym", getCurrentDate().substr(0, 6));
- //model.setValue("/root/send/retrparams/todutym", getCurrentDate().substr(0, 6));
- misfComboInstCdListMulti("cmb_instcd", ipt_dutym.value+getCurrentDate().substr(6, 2),"","N");
-
- misfGetAndSetUserInfo();
-
- 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);
-
- cmb_instcd.disabled = true;
-
- model.setValue("/root/send/retrparams/deptgb", "1");
-
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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:38px; 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; "/>
- <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:54px; width:162px; height:14px; ">근태집계목록</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
- <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="부서^직위^사원번호^성명^주민번호^파업일수^비고^caption3^caption2" colsep="^" colwidth="209, 140, 101, 99, 108, 84, 411, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:670px; border-right-color:#3366ff; ">
- <col ref="dutplcedeptnm"/>
- <col ref="jobposnm"/>
- <col disabled="true" ref="emplno" type="inputbutton" style="text-align:center; "/>
- <col ref="emplnm"/>
- <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
- <col ref="ilsu" type="input" format="###" style="text-align:right; padding-right:5; "/>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="dutym" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dutsumlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
- <caption id="caption1" class="search_name" style="left:250px; top:19px; width:86px; height:17px; ">파업년월 :</caption>
- <input id="ipt_dutym" ref="/root/send/retrparams/frdutym" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:340px; top:18px; width:85px; 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/retrparams/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:18px; width:140px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="btn_dutdept" class="icon_search" navindex="5" style="left:693px; top:20px; 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>
- <caption id="caption2" class="search_name" style="left:437px; top:19px; width:88px; height:17px; ">근무부서 :</caption>
- <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="6" style="left:711px; top:18px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_dutdeptnm.value == ipt_dutdeptnm.currentText) return;
-
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- 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="4" maxlength="10" style="left:620px; top:18px; width:70px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_dutdeptcd.value == ipt_dutdeptcd.currentText) return;
-
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRPD06101");
- ]]>
- </script>
- </button>
- <select1 id="rdo_retrflag" ref="/root/send/retrparams/retrflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="20" cols="2" style="left:995px; top:20px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>시간</label>
- <value>T</value>
- </item>
- <item>
- <label>횟수</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <button id="btn_excsave" class="btn2_letter4" style="left:1127px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_dutsumlist);
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:840px; top:19px; width:63px; height:17px; ">사번 :</caption>
- <button id="btn_emplno" class="icon_search" navindex="8" style="left:983px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- //btn_search.dispatch("DOMActivate");
- ipt_emplnos.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos" ref="/root/send/retrparams/emplno" class="input_default" navindex="7" style="left:901px; top:18px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
- inputEnterKey("ipt_emplnos", "xforms-value-changed");
- }
- ]]>
- </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/retrparams/emplnm" class="input_default" navindex="9" style="left:1002px; top:18px; width:96px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
- inputEnterKey("ipt_emplnms", "xforms-value-changed");
- }
- ]]>
- </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>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1071px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_dutsumlist.deleteRow(grd_dutsumlist.row);
- deleteSelectedRows(grd_dutsumlist, true);
- ]]>
- </script>
- </button>
- <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1015px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_dutsumlist.addRow();
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/dutym", model.getValue("/root/send/retrparams/frdutym"));
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/retrparams/deptgb" navindex="3" appearance="minimal" style="left:525px; top:18px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>근무지</label>
- <value>1</value>
- </item>
- <item>
- <label>근무부서</label>
- <value>2</value>
- </item>
- <item>
- <label>근무과(팀)</label>
- <value>3</value>
- </item>
- <item>
- <label>근무부(실)</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" 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="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_dutsumlist.rows; i ++){
- if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == ""){
- messageBox(i + "번째의 사원번호는 필수 입력항목입니다.", "E999", "");
- return;
- }
- }
- var update = getGridUpdateData(grd_dutsumlist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "E999", "");
- return 0;
- } else {
- model.setValue("/root/send/save/dutsumlist", update);
- if (submit("TXRPD06101")){
- messageBox("정상적으로 처리되었습니다.", "E999", "");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|