123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592 |
- <?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>
- <emplno/>
- <emplnm/>
- <dutplcedeptnm/>
- <payclscd/>
- <payclsprfshipflag/>
- <jobposnm/>
- <njobgradcd/>
- <holyordflag/>
- <entcodd/>
- <grade/>
- <baseamt/>
- <payitemamt/>
- <payym/>
- <saldfrayflag/>
- <jobposcd/>
- <bnemplno/>
- </dutsumlist>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <frdutym/>
- <todutym/>
- <dutunitcd/>
- <dutunitnm/>
- <retrflag>T</retrflag>
- <emplno/>
- <emplnm/>
- <deptgb/>
- <gb1/>
- <gb2/>
- <gb3/>
- <gb4/>
- <amtper/>
- <amtper2/>
- <amtper3/>
- <amtper4/>
- <amtper5/>
- <saldfrayflag/>
- <yymm/>
- <nonper/>
- </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="TRRWD10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TXRWD10101" 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/yymm", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMM"));
- //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/amtper", 0);
- model.setValue("/root/send/retrparams/amtper2", 0);
- model.setValue("/root/send/retrparams/amtper3", 0);
- model.setValue("/root/send/retrparams/amtper4", 0);
- model.setValue("/root/send/retrparams/amtper5", 0);
- //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");
- model.setValue("/root/send/retrparams/gb1", "Y");
- model.setValue("/root/send/retrparams/saldfrayflag", "3");
-
- //grd_dutsumlist.rowHeight(0) = 22;
- //grd_dutsumlist.rowHeight(1) = 22;
- //grd_dutsumlist.rowHeight(2) = 22;
-
- 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:60px; 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:79px; width:122px; height:13px; ">근태집계목록</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
- <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="사원번호^성명^부서^호봉^호봉구분^직위^직급^직원구분^입사일^등급^본봉(기본급)^성과급^caption1^caption4^caption2^caption3" colsep="^" colwidth="101, 96, 146, 80, 88, 100, 100, 85, 88, 63, 105, 103, 100, 100, 100, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:99px; width:1195px; height:645px; border-right-color:#3366ff; ">
- <col disabled="true" ref="emplno" type="inputbutton" style="text-align:center; "/>
- <col ref="emplnm"/>
- <col ref="dutplcedeptnm"/>
- <col ref="payclscd" format="999999-9999999" style="text-align:center; "/>
- <col ref="payclsprfshipflag"/>
- <col ref="jobposnm"/>
- <col ref="njobgradcd"/>
- <col ref="holyordflag"/>
- <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="grade" type="combo">
- <choices>
- <item>
- <label>A등급</label>
- <value>A</value>
- </item>
- <item>
- <label>B등급</label>
- <value>B</value>
- </item>
- <item>
- <label>C등급</label>
- <value>C</value>
- </item>
- <item>
- <label>D등급</label>
- <value>D</value>
- </item>
- <item>
- <label>E등급</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="baseamt" format="#,###" style="text-align:right; "/>
- <col ref="payitemamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="payym" visibility="hidden"/>
- <col ref="saldfrayflag" visibility="hidden"/>
- <col ref="jobposcd" visibility="hidden"/>
- <col ref="bnemplno" 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[
- if (submit("TRRWD10101")){
- for (var i = 1; i < grd_dutsumlist.rows; i++){
- var emplno = model.getValue("/root/main/list/dutsumlist[" + i + "]/bnemplno");
- if (emplno == ""){
- grd_dutsumlist.rowStatus(i) = 1;
- }
- }
- model.refresh();
- }
- ]]>
- </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:74px; 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:74px; 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:74px; 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.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/appscheexecflag", "3");
- 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/>
- </item>
- <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>
- <bool id="bool1" navindex="18" checkvalue="Y,N" ref="/root/send/retrparams/gb1" style="left:585px; top:73px; width:25px; height:20px; "/>
- <caption id="caption4" style="left:610px; top:74px; width:76px; height:20px; ">시간제 제외</caption>
- <bool id="bool2" navindex="19" checkvalue="Y,N" ref="/root/send/retrparams/gb2" style="left:685px; top:73px; width:25px; height:20px; "/>
- <caption id="caption7" style="left:710px; top:74px; width:76px; height:20px; ">계약직 제외</caption>
- <bool id="bool3" navindex="17" checkvalue="Y,N" ref="/root/send/retrparams/gb3" style="left:475px; top:73px; width:25px; height:20px; "/>
- <caption id="caption8" style="left:500px; top:74px; width:76px; height:20px; ">입사 1일 기준</caption>
- <caption id="caption9" style="left:115px; top:49px; width:55px; height:20px; ">A지급율 :</caption>
- <input id="input1" ref="/root/send/retrparams/amtper" navindex="11" format="#,###" style="left:170px; top:48px; width:80px; height:19px; text-align:right; "/>
- <button id="button1" class="btn2_letter3" navindex="21" style="left:885px; top:74px; width:53px; height:19px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/retrparams/amtper") == "" || model.getValue("/root/send/retrparams/amtper") == 0){
- messageBox("지급율을 입력한 후 적용하시기 바랍니다.", "E999", "");
- return;
- }
- var gb1 = model.getValue("/root/send/retrparams/gb1");
- var gb2 = model.getValue("/root/send/retrparams/gb2");
- var gb3 = model.getValue("/root/send/retrparams/gb3");
- var gb4 = model.getValue("/root/send/retrparams/gb4");
- var nonper = model.getValue("/root/send/retrparams/nonper");
- var amtper1 = model.getValue("/root/send/retrparams/amtper");
- var amtper2 = model.getValue("/root/send/retrparams/amtper2");
- var amtper3 = model.getValue("/root/send/retrparams/amtper3");
- var amtper4 = model.getValue("/root/send/retrparams/amtper4");
- var amtper5 = model.getValue("/root/send/retrparams/amtper5");
- if (amtper1 == null || amtper1 == ""){
- amtper1 = 0;
- }
- if (amtper2 == null || amtper2 == ""){
- amtper2 = 0;
- }
- if (amtper3 == null || amtper3 == ""){
- amtper3 = 0;
- }
- if (amtper4 == null || amtper4 == ""){
- amtper4 = 0;
- }
- if (amtper5 == null || amtper5 == ""){
- amtper5 = 0;
- }
- var amtper = 0;
- var baseamt = 0;
- var entcddd = "";
- var jobposcd = "";
- var yymm = model.getValue("/root/send/retrparams/frdutym").substr(0, 4);
- var paycnt = parseInt(model.getValue("/root/send/retrparams/yymm").substr(4, 2));
- var paycnt1 = 0;
- var entyy = "";
- var entmm = "";
- var grade = "";
- for (var i = 1; i < grd_dutsumlist.rows; i++){
- baseamt = parseFloat(model.getValue("/root/main/list/dutsumlist[" + i + "]/baseamt"));
- entcodd = parseFloat(model.getValue("/root/main/list/dutsumlist[" + i + "]/entcodd"));
- jobposcd = parseFloat(model.getValue("/root/main/list/dutsumlist[" + i + "]/jobposcd"));
- entyy = model.getValue("/root/main/list/dutsumlist[" + i + "]/entcodd").substr(0, 4);
- entmm = model.getValue("/root/main/list/dutsumlist[" + i + "]/entcodd").substr(4, 2);
- grade = model.getValue("/root/main/list/dutsumlist[" + i + "]/grade");
- paycnt1 = paycnt;
- if (gb3 == "Y"){
- if (entyy == yymm){
- if (entcodd.substr(6, 2) == "01"){
- paycnt1 = paycnt - parseInt(entmm) + 1;
- }else{
- paycnt1 = paycnt - parseInt(entmm);
- }
- }else{
- paycnt1 = paycnt;
- }
- }else{
- if (entyy == yymm){
- paycnt1 = paycnt - parseInt(entmm) + 1;
- }else{
- paycnt1 = paycnt;
- }
- }
- /*
- if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == "20100119"){
- alert(paycnt + "==" + paycnt1 + "==" + baseamt);
- }
- */
- if (gb4 == "Y"){
- paycnt1 = paycnt;
- }
- if (grade == "A"){
- amtper = amtper1;
- }else if (grade == "B"){
- amtper = amtper2;
- }else if (grade == "C"){
- amtper = amtper3;
- }else if (grade == "D"){
- amtper = amtper4;
- }else if (grade == "E"){
- amtper = amtper5;
- }else{
- amtper = 0;
- }
- if (nonper == "Y"){
- amtper = amtper1;
- }
- payitemamt = parseFloat(baseamt) * parseInt(paycnt1) / parseInt(paycnt) * (parseInt(amtper) / 100);
- payitemamt = Math.round(parseFloat(payitemamt) / 10);
- payitemamt = parseFloat(payitemamt) * 10;
- model.setValue("/root/main/list/dutsumlist[" + i + "]/payitemamt", payitemamt);
- if (gb1 == "Y" && jobposcd == "1776"){
- model.setValue("/root/main/list/dutsumlist[" + i + "]/payitemamt", "0");
- }
- if (gb2 == "Y" && jobposcd == "1665"){
- model.setValue("/root/main/list/dutsumlist[" + i + "]/payitemamt", "0");
- }
- }
- for (var i = 1; i < grd_dutsumlist.rows; i++){
- var emplno = model.getValue("/root/main/list/dutsumlist[" + i + "]/bnemplno");
- if (emplno == ""){
- grd_dutsumlist.rowStatus(i) = 1;
- }else{
- grd_dutsumlist.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" style="left:290px; top:74px; width:58px; height:20px; ">기준년월 :</caption>
- <input id="input2" ref="/root/send/retrparams/yymm" class="input_search" navindex="16" inputtype="date" format="yyyy-mm" style="left:350px; top:73px; 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>
- <bool id="bool4" navindex="20" checkvalue="Y,N" ref="/root/send/retrparams/gb4" style="left:775px; top:73px; width:25px; height:20px; "/>
- <caption id="caption11" style="left:805px; top:74px; width:76px; height:20px; ">입사일무시</caption>
- <input id="input3" ref="/root/send/retrparams/amtper2" navindex="12" format="#,###" style="left:315px; top:48px; width:80px; height:19px; text-align:right; "/>
- <caption id="caption12" style="left:260px; top:49px; width:55px; height:20px; ">B지급율 :</caption>
- <caption id="caption13" style="left:405px; top:49px; width:55px; height:20px; ">C지급율 :</caption>
- <input id="input4" ref="/root/send/retrparams/amtper3" navindex="13" format="#,###" style="left:460px; top:48px; width:80px; height:19px; text-align:right; "/>
- <caption id="caption14" style="left:555px; top:49px; width:55px; height:20px; ">D지급율 :</caption>
- <input id="input5" ref="/root/send/retrparams/amtper4" navindex="14" format="#,###" style="left:610px; top:48px; width:80px; height:19px; text-align:right; "/>
- <caption id="caption15" style="left:705px; top:49px; width:55px; height:20px; ">E지급율 :</caption>
- <input id="input6" ref="/root/send/retrparams/amtper5" navindex="15" format="#,###" style="left:760px; top:48px; width:80px; height:19px; text-align:right; "/>
- <caption id="caption16" style="left:900px; top:49px; width:76px; height:20px; ">등급미적용</caption>
- <bool id="bool5" navindex="20" checkvalue="Y,N" ref="/root/send/retrparams/nonper" style="left:870px; top:48px; width:25px; height:20px; "/>
- <caption id="caption17" style="left:975px; top:47px; width:190px; height:20px; color:#ff0000; ">등급미적용시는 A등급 반영</caption>
- </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("TXRWD10101")){
- messageBox("정상적으로 처리되었습니다.", "E999", "");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|