123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853 |
- <?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>
- <cutlawdutovttmadjt/>
- <userschemngtdeptlist>
- <emplno/>
- <emplnm/>
- <dutplcedeptcd/>
- <dutplcedeptn/>
- </userschemngtdeptlist>
- <doucheckcnt>
- <emplno/>
- <dutym/>
- </doucheckcnt>
- </main>
- <send>
- <search>
- <instcd/>
- <dutym_ss/>
- <dutym_ee/>
- <dutdeptcd_s/>
- <dutdeptnm_s/>
- <emplno/>
- <emplnm/>
- <retrkind>psn</retrkind>
- </search>
- <empllist>
- <emplno/>
- </empllist>
- <savelist>
- <cutlawdutovttmadjt/>
- <workgbn/>
- </savelist>
- <popworkgbn/>
- </send>
- <init/>
- <temp>
- </temp>
- </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/pubwelfmngtweb/js/RPS001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.refresh();
- ]]>
- </script>
- <submission id="TRRPD01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/cutlawdutovttmadjt"/>
- <submission id="TXRPD01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp/doucheckcnt"/>
- <submission id="TRRPD01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/main/doucheckcnt"/>
- <submission id="TRRPD01305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/empllist" resultref="/root/main/userschemngtdeptlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- misfGridInit(grd_cutlawdutovttmadjt);
- misfGridInit(grd_userschemngtdeptlist);
- misfGridInit(grd_doucheckcnt);
-
- model.removeNodeset("/root/main/cutlawdutovttmadjt");
- model.removeNodeset("/root/main/userschemngtdeptlist");
- model.resetInstanceNode("/root/send");
-
- misfMsterDetailSet(grd_cutlawdutovttmadjt,null,"TRRPD01301","Y");
-
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- ipt_appfromdd.value = getCurrentDate().substr(0, 6);
- ipt_apptodd.value = getCurrentDate().substr(0, 6);
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_appfromdd.value+getCurrentDate().substr(6, 2),"","Y");
-
- // rpdfSetControlAuth();
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
- cmb_instcd.value = getUserInfo("dutplceinstcd");
- // ipt_appfromdd.value = fcalcDate();
- // ipt_apptodd.value = fcalcDate();
- ipt_popworkgbn.value = "SMRPD01300";
- btn_creatdone.disabled = true;
- btn_donecancel.disabled = true;
- btn_save.disabled = true;
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
- function faddDay(yyyy, mm, dd, pDay) // 년, 월, 일, 계산할 일자 (년도는 반드시 4자리로 입력)
- {
- var oDate; // 리턴할 날짜 객체 선언
- dd = dd*1;// pDay*1; // 날짜 계산
- mm--; // 월은 0~11 이므로 하나 빼준다
- oDate = new Date(yyyy, mm, dd) // 계산된 날짜 객체 생성 (객체에서 자동 계산)
- return oDate;
- }
- function fcalcDate()
- {
- var cDate;
- var y,m,d;
- var now = new Date();
- var y = now.getYear();
- var m = now.getMonth() + 1;
- var d= now.getDate();
-
- cDate = faddDay(y, m, d, 1)
- yr = cDate.getFullYear();
- mName = cDate.getMonth() + 1;
- dName = cDate.getDate();
- if (yr < 100)
- year=("19" + yr).toString();
- else
- year=yr.toString();
-
- if (mName <10)
- month = ("0" + mName).toString();
- else
- month = mName.toString();
-
- if (dName <10)
- day = ("0" + dName).toString();
- else
- day = dName.toString();
- return year + month + day;
- }
- function fgrdButtonControl()
- {
- var cur_row=grd_cutlawdutovttmadjt.rows-2;
- if(cur_row >0)
- {
- null_check1 = model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset")+"[" + 1 + "]/paydeducretendyn");
- null_check2 = model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset")+"[" + 1 + "]/payappyn");
- if(null_check2 =='Y')
- {
- btn_donecancel.disabled = true;
- btn_creatdone.disabled = true;
- btn_save.disabled = true;
- }
- else if(null_check1 =='Y')
- {
- btn_donecancel.disabled = false;
- btn_creatdone.disabled = true;
- btn_save.disabled = true;
- }
- else
- {
- btn_donecancel.disabled = true;
- btn_creatdone.disabled = false;
- btn_save.disabled = false;
- }
- }
- else
- {
- btn_donecancel.disabled = true;
- btn_creatdone.disabled = true;
- btn_save.disabled = false;
- }
- }
- function fsaveCheckNull()
- {
- for(i=2; i< grd_cutlawdutovttmadjt.rows; i++)
- {
- var check_emplno=model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset") + "[" + (i - 1) + "]/emplno");
- var check_ovt150=model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset") + "[" + (i - 1) + "]/ovtmworkextnbiztm150_v");
- var check_ovt100=model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset") + "[" + (i - 1) + "]/ovtmworkextnbiztm100_v");
- var check_ovt50=model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset") + "[" + (i - 1) + "]/ovtmworkextnbiztm50_v");
-
- if(check_emplno =="")
- {
- messageBox("사원번호는","I003");
- return false;
- }
-
- /*if(check_ovt150 =="" && check_ovt100 =="" && check_ovt50=="" ){
- messageBox("연장근로시간","I003");
- return false;
- }*/
- }
- return true;
- }
-
- function fsaveCheckValue()
- {
- for(i=2; i< grd_cutlawdutovttmadjt.rows; i++)
- {
- var check_emplno = model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset") + "[" + (i - 1) + "]/emplno");
- var paydeducretendyn = model.getValue(grd_cutlawdutovttmadjt.attribute("nodeset") +" [" + (i - 1) + "]/paydeducretendyn");
- var status = grd_cutlawdutovttmadjt.rowStatus(i);
-
- if(status=="2"||status=="4")
- {
- if(paydeducretendyn =='Y')
- {
- messageBox("급여생성이 완료된 건은 수정","E001");
- return false;
- }
- }
- }
- return true;
- }
- ]]>
- </script>
- </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:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">법정근로시간외수정</caption>
- </group>
- <group id="listGroup" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1195px; height:55px; vertical-align:top; ">
- <select1 id="cmb_dutplce" ref="/root/send/search/dutunitcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:100px; top:30px; width:79px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:55px; "/>
- <caption id="caption2" class="search_name" style="left:370px; top:7px; width:86px; height:17px; ">정산년월 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1129px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_appfromdd.value=="")
- {
- messageBox("정산년월은","I003");
- return;
- }
-
- model.setValue("/root/send/search/retrkind", "psn");
-
- submit("TRRPD01301");
-
- fgrdButtonControl();
- grd_cutlawdutovttmadjt.colDisabled (1) = true;
- grd_cutlawdutovttmadjt.colDisabled (3) = true;
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="top:7; x1:1115px; y1:7px; x2:1115px; y2:49px; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:14px; top:32px; width:106px; height:17px; ">부 서 :</caption>
- <button id="btn_dutdept" class="icon_search" style="left:181px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd,"","dutdeptcd_s,dutdeptnm_s", cmb_instcd.value + "," + ipt_appfromdd.value+"31", "instcd,basedd");
- //misfOpenPopUpList("02", ipt_dutdeptcd,"","dutdeptcd_s,dutdeptnm_s", cmb_instcd.value , "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptnm" ref="/root/send/search/dutdeptnm_s" class="input_search" navindex="3" style="left:201px; top:30px; width:124px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutdeptcd_s,dutdeptnm_s", 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", "", "dutdeptcd_s,dutdeptnm_s", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/search/dutdeptcd_s" class="input_search" navindex="2" maxlength="10" style="left:102px; top:30px; width:76px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutdeptcd_s,dutdeptnm_s", 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", "", "dutdeptcd_s,dutdeptnm_s", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_appfromdd" ref="/root/send/search/dutym_ss" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:460px; top:6px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_appfromdd.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/search/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_appfromdd.value+"31","","Y");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="button3" class="icon_search" style="left:535px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("22", ipt_emplno, "", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_search" disabled="true" navindex="3" style="left:556px; top:30px; width:120px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:370px; top:31px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_search" navindex="2" maxlength="8" style="left:460px; top:30px; width:70px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_emplno.value!=""){
- misfValidationCheck("01-1", "", "emplno,emplnm" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_emplno_s" ref="/root/send/empllist/emplno" class="input_search" navindex="2" visibility="hidden" style="left:1050px; top:30px; width:20px; height:19px; "/>
- <input id="ipt_workgbn" ref="/root/send/savelist/workgbn" class="input_search" navindex="2" visibility="hidden" style="left:1070px; top:30px; width:20px; height:19px; "/>
- <input id="ipt_popworkgbn" ref="/root/send/popworkgbn" class="input_search" navindex="2" visibility="hidden" style="left:1090px; top:30px; width:20px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:6px; width:223px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:14px; top:7px; width:86px; height:17px; ">소속기관 :</caption>
- <input id="ipt_apptodd" ref="/root/send/search/dutym_ee" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:576px; top:6px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="cation1" style="left:563px; top:9px; width:15px; height:17px; ">~</caption>
- </group>
- <line id="line7" class="line_1" style="left:0; x1:0px; y1:90px; x2:1195px; y2:90px; "/>
- <caption id="caption25" class="tit_2" style="left:5px; top:75px; width:151px; height:13px; ">시간외 근로시간</caption>
- <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_cutlawdutovttmadjt.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_cutlawdutovttmadjt" nodeset="/root/main/cutlawdutovttmadjt" caption="사원번호^성 명^근무지부서^수술실당직일수^수술실당직일수^수술실당직일수^수술실당직일수^수술실당직일수^특근연장근로시간^특근연장근로시간^특근연장근로시간^연장(전월착오분)^연장(전월착오분)^연장(전월착오분)^명절 근무^개원기념^연장
근무시간^야간
근무^인계
150^조출
150^간호부당직^행정당직일수^행정당직일수^시간제근무^시간제근무^급여
생성
여부^급여
반영
여부^비고|사원번호^성 명^근무지부서^근무^심야^연장^당직횟수^대기^150^100^50+^150^100^50+^ 50+^100^연장
근무시간^야간
근무^인계
150^조출
150^간호부당직^주간^야간^시간^분^급여
생성
여부^급여
반영
여부^비고" colsep="^" colwidth="96, 68, 100, 0, 60, 60, 60, 0, 60, 0, 60, 60, 0, 60, 60, 60, 60, 50, 50, 50, 47, 50, 49, 47, 32, 40, 40, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="100" rowsep="|" tooltip="true" style="left:0px; top:95px; width:1195px; height:649px; text-align:center; ">
- <col ref="emplno" type="inputbutton" style="text-align:center; "/>
- <col ref="emplnm"/>
- <col ref="dutplcedeptnm" type="inputbutton"/>
- <col ref="oproomngdttm_v" type="input" format="(-)99:99" maxlength="1" style="text-align:right; padding-right:2; "/>
- <col ref="oproomfringdttm_v" style="text-align:right; padding-right:2; "/>
- <col ref="oproomsatngdttm_v" style="text-align:right; padding-right:2; "/>
- <col ref="oproomholingdttm_v" format="#,###" style="text-align:right; padding-right:2; "/>
- <col ref="oproomwaitngdttm_v" type="input" visibility="hidden" format="#,###" maxlength="1" style="text-align:center; "/>
- <col ref="ovtmworkextnbiztm150_v" format="(-)#,###.#" style="text-align:right; padding-right:2; "/>
- <col ref="ovtmworkextnbiztm100_v" type="input" format="(-)99:99" style="text-align:center; "/>
- <col ref="ovtmworkextnbiztm50_v" format="(-)#,###.#" style="text-align:right; padding-right:2; "/>
- <col ref="extnnigtbfmmstktm150" type="input" style="text-align:right; padding-right:2; "/>
- <col ref="extnnigtbfmmstktm100_v" type="input" format="(-)99:99" style="text-align:center; "/>
- <col ref="extnnigtbfmmstktm50" type="input" style="text-align:right; padding-right:2; "/>
- <col ref="opnofhospmemotm150_v" format="#,###" style="text-align:right; padding-right:2; "/>
- <col ref="opnofhospmemotm100_v" format="#,###" style="text-align:right; padding-right:2; "/>
- <col ref="holiduttm_v" style="text-align:right; padding-right:2; "/>
- <col ref="nigtlabrtm_v" style="text-align:right; padding-right:2; "/>
- <col ref="tranalwntm_v" style="text-align:right; padding-right:2; "/>
- <col ref="earlyattdnctm150_v" style="text-align:right; padding-right:2; "/>
- <col ref="adminngdtdayno" style="text-align:right; padding-right:2; "/>
- <col ref="overweektm_v" format="#,###" style="text-align:center; "/>
- <col ref="adminngdtnigtno" format="#,###" style="text-align:center; "/>
- <col ref="tmbizcondworktm" format="#,###" style="text-align:center; "/>
- <col ref="tmbizcondworkmnt" format="#,###" style="text-align:center; "/>
- <col ref="paydeducretendyn" style="text-align:center; "/>
- <col ref="payappyn" style="text-align:center; "/>
- <col ref="cmt"/>
- <col ref="dutplceinstcd" visibility="hidden"/>
- <col ref="oproomngdttm" visibility="hidden"/>
- <col ref="oproomfringdttm" visibility="hidden"/>
- <col ref="oproomsatngdttm" visibility="hidden"/>
- <col ref="oproomholingdttm" visibility="hidden"/>
- <col ref="oproomwaitngdttm" visibility="hidden"/>
- <col ref="overweektm" visibility="hidden"/>
- <col ref="overweekmnt" visibility="hidden"/>
- <col ref="ovtmworkextnbiztm150" visibility="hidden"/>
- <col ref="ovtmworkextnbizmnt150" visibility="hidden"/>
- <col ref="ovtmworkextnbiztm100" visibility="hidden"/>
- <col ref="ovtmworkextnbizmnt100" visibility="hidden"/>
- <col ref="ovtmworkextnbiztm50" visibility="hidden"/>
- <col ref="ovtmworkextnbizmnt50" visibility="hidden"/>
- <col ref="extnnigtbfmmstktm150_v" visibility="hidden"/>
- <col ref="extnnigtbfmmstkmnt150" visibility="hidden"/>
- <col ref="extnnigtbfmmstktm100" visibility="hidden"/>
- <col ref="extnnigtbfmmstkmnt100" visibility="hidden"/>
- <col ref="extnnigtbfmmstktm50_v" visibility="hidden"/>
- <col ref="extnnigtbfmmstkmnt50" visibility="hidden"/>
- <col ref="opnofhospmemotm150" visibility="hidden"/>
- <col ref="opnofhospmemomnt150" visibility="hidden"/>
- <col ref="opnofhospmemotm100" visibility="hidden"/>
- <col ref="opnofhospmemomnt100" visibility="hidden"/>
- <col ref="holiduttm" visibility="hidden"/>
- <col ref="holidutmnt" visibility="hidden"/>
- <col ref="tranalwntm" visibility="hidden"/>
- <col ref="tranalwnmnt" visibility="hidden"/>
- <col ref="earlyattdnctm150" visibility="hidden"/>
- <col ref="earlyattdncmnt150" visibility="hidden"/>
- <col ref="nigtlabrtm" visibility="hidden"/>
- <col ref="nigtlabrmnt" visibility="hidden"/>
- <col ref="dutym" visibility="hidden"/>
- <col ref="instnm" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="dutplceinstnm" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptnm" visibility="hidden"/>
- <col ref="dutdeptcd" visibility="hidden"/>
- <col ref="dutdeptnm" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var cur_row=grd_cutlawdutovttmadjt.row;
- if (grd_cutlawdutovttmadjt.col == 1) {//사원번호 버튼을 눌렀을 때
- var recv_list = "emplno,emplnm,instnm,instcd,dutplceinstnm,dutplceinstcd,deptcd,deptnm,dutdeptcd,dutdeptnm,";
- recv_list =recv_list +"dutplcedeptnm,dutplcedeptcd";
- misfOpenPopUpList("21", grd_cutlawdutovttmadjt,"",recv_list);
- }
- if (grd_cutlawdutovttmadjt.col == 3) {
- ipt_emplno_s.value=grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,1);
- if(ipt_emplno_s.value==""){
- messageBox("해당 사원을","C001");
- }else{
- submit("TRRPD01305");
-
- var cur_rows=grd_userschemngtdeptlist.rows-1;
- if(cur_rows == 0){
- return;
- }else if(cur_rows == 1){
- var dutplcedeptcd= model.getValue(grd_userschemngtdeptlist.attribute("nodeset")+"["+1+"]/dutplcedeptcd");
- var dutplcedeptnm= model.getValue(grd_userschemngtdeptlist.attribute("nodeset")+"["+1+"]/dutplcedeptnm");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("dutplcedeptcd"))=dutplcedeptcd;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("dutplcedeptnm"))=dutplcedeptnm;
-
- }else{
- misfOpenPopUpList("20",grd_cutlawdutovttmadjt,"","emplno,emplnm,dutplcedeptcd,dutplcedeptnm");
- }
- misfGridInit(grd_userschemngtdeptlist);
- }
-
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row = grd_cutlawdutovttmadjt.row;
- if(grd_cutlawdutovttmadjt.col == 4){
- var check_dd= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,4);
- var dd=parseFloat(check_dd*8);
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("oproomngdttm")) =dd;
- }
- if(grd_cutlawdutovttmadjt.col == 5){
- var check_dd= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,5);
- var dd=parseFloat(check_dd*8);
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("oproomfringdttm")) =dd;
- }
- if(grd_cutlawdutovttmadjt.col == 6){
- var check_dd= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,6);
- var dd=parseFloat(check_dd*8);
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("oproomsatngdttm")) =dd;
- }
- if(grd_cutlawdutovttmadjt.col == 7){
- var check_dd= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,7);
- var dd=parseFloat(check_dd*8);
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("oproomholingdttm")) =dd;
- }
- if(grd_cutlawdutovttmadjt.col == 8){
- var check_dd= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,8);
- var dd=parseFloat(check_dd*8);
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("oproomwaitngdttm")) =dd;
- }
- //신청일자 및 시간 유효성 체크
- // if(grd_cutlawdutovttmadjt.col == 9)
- // {
- // var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,9);
- // check_hh=check_h.substring(0,2);
- // check_mm=check_h.substring(2,4);
- // if(parseInt(check_mm) >59 || check_h.length!=4 )
- // {
- // messageBox("주초과 시간 입력형식이 ","E004");
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("overweektm_v")) ="";
- // }
- // else
- // {
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("overweektm")) =check_hh;
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("overweekmnt")) =check_mm;
- // }
- // }
- if(grd_cutlawdutovttmadjt.col == 9)
- {
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,9);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
-
- if(parseInt(check_mm) >59 || check_h.length!=4 )
- {
- messageBox("연장근로시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbiztm150_v")) ="";
- }
- else
- {
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbiztm150")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbizmnt150")) =check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 10)
- {
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,10);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4 )
- {
- messageBox("연장근로시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbiztm100_v")) ="";
- }
- else
- {
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbiztm100")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbizmnt100")) =check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 11)
- {
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,11);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4)
- {
- messageBox("연장근로시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbiztm50_v")) ="";
- }
- else
- {
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbiztm50")) = check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("ovtmworkextnbizmnt50")) = check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 12)
- {
- // var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,13);
- //
- // check_hh = check_h.substr(0, check_h.length - 2);
- // check_mm = check_h.substr(check_h.length - 2, 2);
- //
- // if(parseInt(check_mm) > 59)
- // {
- // messageBox("연장(전월착오분)시간 입력형식이 ","E004");
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstktm150_v")) ="";
- // }
- // else
- // {
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstktm150")) = check_hh;
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstkmnt150")) = check_mm;
- // }
- }
- if(grd_cutlawdutovttmadjt.col == 13)
- {
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,13);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4)
- {
- messageBox("연장(전월착오분)시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstktm100_v")) ="";
- }
- else
- {
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstktm100")) = check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstkmnt100")) = check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 14)
- {
- // var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,15);
- //
- // check_hh = check_h.substr(0, check_h.length - 2);
- // check_mm = check_h.substr(check_h.length - 2, 2);
- //
- // if(parseInt(check_mm) > 59)
- // {
- // messageBox("연장(전월착오분)시간 입력형식이 ","E004");
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstktm50_v")) = "";
- // }
- // else
- // {
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstktm50")) = check_hh;
- // grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("extnnigtbfmmstkmnt50")) = check_mm;
- // }
- }
- if(grd_cutlawdutovttmadjt.col == 15){
-
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,15);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4 ){
- messageBox("개원기념근로시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("opnofhospmemotm150_v")) ="";
- }else{
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("opnofhospmemotm150")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("opnofhospmemomnt150")) =check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 16){
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,16);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4 ){
- messageBox("개원기념근로시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("opnofhospmemotm100_v")) ="";
- }else{
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("opnofhospmemotm100")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("opnofhospmemomnt100")) =check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 17){
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,17);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4 ){
- messageBox("휴일근무시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("holiduttm_v")) ="";
- }else{
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("holiduttm")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("holidutmnt")) =check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 18){
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,18);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4 ){
- messageBox("야간근무시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("nigtlabrtm_v")) ="";
- }else{
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("nigtlabrtm")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("nigtlabrmnt")) =check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 19){
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,19);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4 ){
- messageBox("인계근무시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("tranalwntm_v")) ="";
- }else{
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("tranalwntm")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("tranalwnmnt")) =check_mm;
- }
- }
- if(grd_cutlawdutovttmadjt.col == 20){
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,20);
- check_hh=check_h.substring(0,2);
- check_mm=check_h.substring(2,4);
- if(parseInt(check_mm) >59 || check_h.length!=4 ){
- messageBox("조출근무시간 입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("earlyattdnctm150_v")) ="";
- }else{
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("earlyattdnctm150")) =check_hh;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("earlyattdncmnt150")) =check_mm;
- }
- }
-
- if(grd_cutlawdutovttmadjt.col ==24){
- var check_h= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,24);
- if(check_h.length >3){
- messageBox("시간제근무시간입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("tmbizcondworktm")) ="";
- }
- }
- if(grd_cutlawdutovttmadjt.col ==25){
- var check_mm= grd_cutlawdutovttmadjt.valueMatrix(grd_cutlawdutovttmadjt.row,25);
- if(parseInt(check_mm) >59 || check_mm.length !=2){
- messageBox("시간제근무시간입력형식이 ","E004");
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("tmbizcondworktm")) ="";
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_userschemngtdeptlist" nodeset="/root/main/userschemngtdeptlist" visibility="hidden" caption="사번^성명^근무부서^근무부서명" colsep="^" colwidth="100, 100, 100, 106" mergecellsfixedrows="bycolrec" rowsep="|" style="left:525px; top:555px; width:335px; height:100px; ">
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="dutplcedeptcd"/>
- <col ref="dutplcedeptn"/>
- </datagrid>
- <datagrid id="grd_doucheckcnt" nodeset="/root/main/doucheckcnt" visibility="hidden" caption="사번^근무월" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:925px; top:555px; width:225px; height:85px; ">
- <col ref="emplno"/>
- <col ref="dutym"/>
- </datagrid>
- <button id="btn_grddel" class="btn2_letter3" style="left:1076px; top:69px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_cutlawdutovttmadjt,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1022px; top:69px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dutym=ipt_appfromdd.value.substring(0,6);
- if(dutym==""){
- messageBox("정산년월은","I003");
- return;
- }
- misfGridIUD(grd_cutlawdutovttmadjt, "A");
- var cur_row=grd_cutlawdutovttmadjt.row;
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("paydeducretendyn")) ="N";
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("payappyn")) ="N";
- grd_cutlawdutovttmadjt.valueMatrix(cur_row, grd_cutlawdutovttmadjt.colRef("dutym")) =dutym;
- grd_cutlawdutovttmadjt.colDisabled (1) = false;
- grd_cutlawdutovttmadjt.colDisabled (3) = false;
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27; ">
- <button id="button38" class="btn4_letter3" style="left:854px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_cutlawdutovttmadjt);
-
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_creatdone" class="btn4_letter6" style="left:925px; top:3px; width:104px; height:22px; ">
- <caption>급여생성완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_workgbn.value="C";
- if(ipt_workgbn.value =="C"){
- for(i=2;i < grd_cutlawdutovttmadjt.rows;i++){
- grd_cutlawdutovttmadjt.addStatus(i,"update");
- }
- misfSave("TXRPD01301");
- }
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_donecancel" class="btn4_letter6" style="left:1032px; top:3px; width:104px; height:22px; ">
- <caption>급여생성취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_workgbn.value="F";
- if(ipt_workgbn.value =="F"){
- for(i=2;i < grd_cutlawdutovttmadjt.rows;i++){
- grd_cutlawdutovttmadjt.addStatus(i,"update");
- }
- misfSave("TXRPD01301");
- }
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <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[
- var updtdata = getGridUpdateData(grd_cutlawdutovttmadjt);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- if(!fsaveCheckValue())return;
- if(!fsaveCheckNull())return;
- misGetDouList("TRRPD01303");
- if(grd_doucheckcnt.rows >1 ){
- messageBox("자료가 ","E006");
- misfGridInit(grd_doucheckcnt);
- return;
- }
- ipt_workgbn.value="A";
- if(ipt_workgbn.value =="A"){
- misfSave("TXRPD01301");
- }
-
- grd_cutlawdutovttmadjt.colDisabled (1) = true;
- grd_cutlawdutovttmadjt.colDisabled (3) = true;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|