123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- <?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>
- <payspectret>
- <payspectretlist1/>
- <payspectretlist2/>
- <dutsumlist>
- <tranalwntm/>
- <earlyattdnctm150/>
- <ovtmworkextnbiztm150/>
- <nigtlabrtm/>
- <adminngdtdayno/>
- <opnofhospmemotm150/>
- <overweektm/>
- <holiduttm/>
- <adminngdtnigtno/>
- </dutsumlist>
- </payspectret>
- <payspecmastdata>
- <paymastlist/>
- </payspecmastdata>
- </main>
- <send>
- <payspectret>
- <emplno/>
- <emplnm/>
- <saldfrayflag/>
- <payym/>
- <payclsprfshipflag/>
- <amt1/>
- <amt2/>
- <avramt/>
- <timeamt/>
- <unitcd/>
- <emplno1/>
- <unitnm/>
- <bigo/>
- </payspectret>
- <save>
- <payspectretlist1/>
- <payspectretlist2/>
- </save>
- </send>
- </root>
- </instance>
- <submission id="TRRWP20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspectret" resultref="/root/main/payspectret"/>
- <submission id="TXRWP20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspectret" resultref="/root/main/payspectret"/>
- <submission id="TXRWP20102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRWP00911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspectret" resultref="/root/main/payspecmastdata"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_payspectretlist1);
- misfGridInit(grd_payspectretlist2);
- misfGridInit(grd_empllist);
-
- misfMsterDetailSet(grd_payspectretlist1, null, "TRRWP20101" ,"Y");
- misfMsterDetailSet(grd_payspectretlist2, null, "TRRWP20101" ,"Y");
-
- var curdate = getCurrentDate();
-
- model.setValue(ipt_payym.attribute("ref") , curdate.substr(0,6));
- model.setValue(cmb_SalDfrayFlag.attribute("ref") , "1");
-
- misfComboComCdListMulti("R0112","cmb_SalDfrayFlag");
-
- model.setFocus("ipt_emplnos");
-
- grd_empllist.frozencols = 2;
- ]]>
- </script>
- </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/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/paybnusmngtweb/js/RWP001.js"/>
- <script type="javascript">
- <![CDATA[
- function Sumpayitem1()
- {
- var amt = 0;
-
- for (var i = 1; i < grd_payspectretlist1.rows; i++){
- amt = parseFloat(amt) + parseFloat(model.getValue("/root/main/payspectret/payspectretlist1[" + i + "]/payitemamt"));
- //alert(parseFloat(model.getValue("/root/main/payspectret/payspectretlist1[" + i + "]/payitemamt")) + "==" + amt);
- }
- model.setValue("/root/send/payspectret/amt1", amt);
- model.setValue("/root/send/payspectret/avramt", model.getValue("/root/main/payspectret/payspectretlist1[" + 1 + "]/avramt"));
- model.setValue("/root/send/payspectret/timeamt", model.getValue("/root/main/payspectret/payspectretlist1[" + 1 + "]/timeamt"));
- model.refresh();
- }
- function Sumpayitem2()
- {
- var amt = 0;
-
- for (var i = 1; i < grd_payspectretlist2.rows; i++){
- amt = parseFloat(amt) + parseFloat(model.getValue("/root/main/payspectret/payspectretlist2[" + i + "]/payitemamt"));
- }
- model.setValue("/root/send/payspectret/amt2", amt);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:38; width:1195px; height:744px; ">
- <line id="line1" class="line_3" style="x1:0px; y1:740px; x2:590px; y2:740px; "/>
- <line id="line9" class="line_1" style="x1:320px; y1:72px; x2:840px; y2:72px; "/>
- <caption id="caption34" class="tit_2" style="left:320px; top:58px; width:79px; height:13px; ">지급항목</caption>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/payspectret/payspectretlist1");
- model.removeNodeset("/root/main/payspectret/payspectretlist2");
- model.removeNodeset("/root/main/payspectret/dutsumlist");
- model.resetInstanceNode("/root/main/payspecdata");
- submit("TRRWP00911");
- /*
- misfMsterDetailRetrieve();
- for (var i = 1; i < grd_payspectretlist1.rows; i ++){
- grd_payspectretlist1.rowstatus(i) = 1;
- }
- Sumpayitem1();
- Sumpayitem2();
- */
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_payym" ref="/root/send/payspectret/payym" class="input_default" inputtype="date" format="yyyy-mm" style="left:619px; top:6px; width:94px; height:19px; text-align:center; vertical-align:middle; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:5px; top:6px; width:63px; height:17px; ">사번 :</caption>
- <caption id="caption10" class="search_name" style="left:330px; top:6px; width:86px; height:17px; ">급여종류:</caption>
- <caption id="caption30" class="search_name" style="left:550px; top:6px; width:70px; height:17px; ">지급월:</caption>
- <button id="btn_emplno" class="icon_search" style="left:158px; top:6px; 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");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos" ref="/root/send/payspectret/emplno" class="input_default" style="left:66px; top:6px; width:87px; 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");
- model.setValue("/root/send/payspectret/payclsprfshipflag", model.getValue("root/init/validation/empllist/payclsprfshipflag"));
- model.refresh();
- }
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_SalDfrayFlag" ref="/root/send/payspectret/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:411px; top:6px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_emplnms" ref="/root/send/payspectret/emplnm" class="input_default" style="left:177px; top:6px; width:141px; 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>
- <caption id="caption20" class="search_name" style="left:735px; top:6px; width:63px; height:17px; ">부서 :</caption>
- <input id="ipt_unitnm" ref="/root/send/payspectret/unitnm" class="input_default" style="left:910px; top:6px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutdeptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_unitcd" class="icon_search" style="left:889px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "unitcd,unitnm";
- rpbfOpenDeptCdHelp(ipt_unitcd,recv_list);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_unitcd" ref="/root/send/payspectret/unitcd" class="input_default" style="left:800px; top:6px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "unitcd,unitnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_payspectretlist1" nodeset="/root/main/payspectret/payspectretlist1" caption="급여항목^급여항목명^금액^비고^사원번호^지급공제구분^급여종류^지급년월^구분" colsep="^" colwidth="62, 142, 104, 155, 35, 42, 35, 27, 33, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:320px; top:77px; width:520px; height:660px; ">
- <col ref="payitemcd"/>
- <col ref="payitemnm"/>
- <col ref="payitemamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="cmt" type="input"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="paydeduflag" visibility="hidden"/>
- <col ref="saldfrayflag" visibility="hidden"/>
- <col ref="payym" visibility="hidden"/>
- <col ref="spcltretflag" visibility="hidden"/>
- <col ref="oldpayym" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- Sumpayitem1();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_payspectretlist1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:845px; y1:72px; x2:1192px; y2:72px; "/>
- <datagrid id="grd_payspectretlist2" nodeset="/root/main/payspectret/payspectretlist2" caption="급여항목^급여항목명^금액^사원번호^지급공제구분^급여종류^지급년월^구분" colsep="^" colwidth="82, 113, 108, 35, 42, 35, 27, 33, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:845px; top:77px; width:347px; height:563px; ">
- <col ref="payitemcd"/>
- <col ref="payitemnm"/>
- <col ref="payitemamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="paydeduflag" visibility="hidden"/>
- <col ref="saldfrayflag" visibility="hidden"/>
- <col ref="payym" visibility="hidden"/>
- <col ref="spcltretflag" visibility="hidden"/>
- <col ref="oldpayym" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_payspectretlist2.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:845px; top:58px; width:144px; height:13px; ">공제항목</caption>
- <line id="line3" class="line_3" style="x1:600px; y1:740px; x2:1190px; y2:740px; "/>
- <caption id="caption3" style="left:672px; top:50px; width:55px; height:20px; ">지급총액</caption>
- <input id="input1" ref="/root/send/payspectret/amt1" disabled="true" format="(-)#,###" style="left:725px; top:50px; width:115px; height:19px; text-align:right; "/>
- <caption id="caption4" style="left:970px; top:50px; width:65px; height:20px; ">공제총액</caption>
- <input id="input2" ref="/root/send/payspectret/amt2" disabled="true" format="(-)#,###" style="left:1040px; top:50px; width:115px; height:19px; text-align:right; "/>
- <caption id="caption5" style="left:391px; top:50px; width:60px; height:20px; ">통상임금</caption>
- <caption id="caption7" style="left:549px; top:50px; width:40px; height:20px; ">시급</caption>
- <output id="output1" ref="/root/send/payspectret/avramt" format="#,###" style="left:445px; top:50px; width:100px; height:19px; font-weight:bold; text-align:left; "/>
- <output id="output2" ref="/root/send/payspectret/timeamt" format="#,###" style="left:579px; top:50px; width:90px; height:19px; font-weight:bold; text-align:left; "/>
- <caption id="caption8" class="tit_2" style="left:845px; top:645px; width:144px; height:13px; ">근태내역</caption>
- <line id="line6" class="line_1" style="x1:845px; y1:659px; x2:1192px; y2:659px; "/>
- <caption id="caption9" style="left:865px; top:670px; width:55px; height:20px; font-weight:bold; ">응급</caption>
- <caption id="caption11" style="left:1030px; top:715px; width:55px; height:20px; font-weight:bold; ">생휴</caption>
- <caption id="caption12" style="left:865px; top:693px; width:61px; height:20px; font-weight:bold; ">시간외</caption>
- <caption id="caption13" style="left:1030px; top:693px; width:55px; height:20px; font-weight:bold; ">야간</caption>
- <caption id="caption17" style="left:1030px; top:670px; width:55px; height:20px; font-weight:bold; ">휴일</caption>
- <output id="output3" ref="/root/main/payspectret/dutsumlist/tranalwntm" format="(-)#,###.0" style="left:940px; top:670px; width:60px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="output4" ref="/root/main/payspectret/dutsumlist/earlyattdnctm150" format="(-)#,###.0" style="left:1105px; top:715px; width:60px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="output5" ref="/root/main/payspectret/dutsumlist/ovtmworkextnbiztm150" format="(-)#,###.0" style="left:940px; top:693px; width:60px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="output6" ref="/root/main/payspectret/dutsumlist/nigtlabrtm" format="(-)#,###.0" style="left:1105px; top:693px; width:60px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="output10" ref="/root/main/payspectret/dutsumlist/holiduttm" format="(-)#,###.0" style="left:1105px; top:670px; width:60px; height:19px; font-weight:bold; text-align:right; "/>
- <datagrid id="grd_empllist" nodeset="/root/main/payspecmastdata/paymastlist" visibility="visible" caption="사번^성명^출력순서^수정여부^소속기관^부서코드^부서명^직종^직종명^직급^직급명^근무기관^근무부서코드^근무부서명^급여종류^지급월^caption1^비고" colsep="^" colwidth="44, 56, 29, 65, 152, 30, 109, 35, 81, 30, 88, 40, 47, 148, 37, 30, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:1px; top:77px; width:314px; height:660px; ">
- <col ref="emplno"/>
- <col ref="name"/>
- <col ref="prntbasecd" visibility="hidden"/>
- <col ref="paycount"/>
- <col disabled="true" ref="instcd" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="unitcd" visibility="hidden"/>
- <col ref="unitnm"/>
- <col ref="jobkindcd" visibility="hidden"/>
- <col ref="jobkindnm"/>
- <col ref="ojobgradcd" visibility="hidden"/>
- <col ref="ojobgradnm"/>
- <col disabled="true" ref="dutplceinst" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="dutunitcd" visibility="hidden"/>
- <col ref="dutunitnm"/>
- <col ref="saldfrayflag" visibility="hidden"/>
- <col ref="payym" visibility="hidden"/>
- <col ref="payclsprfshipflag" visibility="hidden"/>
- <col ref="rmrk"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell()) {
- model.setValue("/root/send/payspectret/emplno1", model.getValue("/root/main/payspecmastdata/paymastlist[" + grd_empllist.row + "]/emplno"));
- model.setValue("/root/send/payspectret/payclsprfshipflag", model.getValue("/root/main/payspecmastdata/paymastlist[" + grd_empllist.row + "]/payclsprfshipflag"));
- model.removeNodeset("/root/main/payspectret/payspectretlist1");
- model.removeNodeset("/root/main/payspectret/payspectretlist2");
- misfMsterDetailRetrieve();
- for (var i = 1; i < grd_payspectretlist1.rows; i ++){
- grd_payspectretlist1.rowstatus(i) = 1;
- }
- for (var i = 1; i < grd_payspectretlist2.rows; i ++){
- grd_payspectretlist2.rowstatus(i) = 1;
- }
- model.setValue("/root/send/payspectret/bigo", model.getValue("/root/main/payspectret/payspectretlist1[" + 1 + "]/bigo"));
- Sumpayitem1();
- Sumpayitem2();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_empllist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_1" style="x1:1px; y1:72px; x2:314px; y2:72px; "/>
- <caption id="caption19" class="tit_2" style="left:1px; top:58px; width:79px; height:14px; ">인사정보</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (misfSave("TXRWP20102")){
- //btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/payspectret/payspectretlist1");
- model.removeNodeset("/root/main/payspectret/payspectretlist2");
- misfMsterDetailRetrieve();
- for (var i = 1; i < grd_payspectretlist1.rows; i ++){
- grd_payspectretlist1.rowstatus(i) = 1;
- }
- Sumpayitem1();
- Sumpayitem2();
- }
- ]]>
- </script>
- </button>
- <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button1" class="btn4_letter2" style="left:1064px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("월별 지급 내역을 " , "Q001" ) == 6 ){
- if (submit("TXRWP20101")){
- //btn_search.dispatch("DOMActivate");
- model.removeNodeset("/root/main/payspectret/payspectretlist1");
- model.removeNodeset("/root/main/payspectret/payspectretlist2");
- misfMsterDetailRetrieve();
- for (var i = 1; i < grd_payspectretlist1.rows; i ++){
- grd_payspectretlist1.rowstatus(i) = 1;
- }
- Sumpayitem1();
- Sumpayitem2();
- }
- }
- ]]>
- </script>
- </button>
- <output id="output12" ref="/root/send/payspectret/bigo" style="left:555px; top:5px; width:160px; height:19px; font-weight:bold; color:#ff0000; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|