123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <?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>
- <payamtlist/>
- </main>
- <init/>
- <send>
- <payym/>
- <instcd/>
- <instcdnm/>
- <deptcd/>
- <deptnm/>
- <emplno/>
- <emplnm/>
- <prfshipflag/>
- <saldfrayflag/>
- <paytoym/>
- <holyordflag/>
- <jobkindcd/>
- </send>
- <send1>
- <payamtlist/>
- </send1>
- <send2>
- <payamtlist/>
- </send2>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- misfComboInstCdListMulti("cmb_payinst",getCurrentDate(),"","N");
- misfComboComCdListMulti("R0061,R0066,R0112", "cmb_jobkindcd,cmb_holyordflag,cmb_SalDfrayFlag");
- addComboItem("cmb_jobkindcd","--전체--","","above");
- addComboItem("cmb_holyordflag","--전체--","","above");
- makeReportPreview(0,110,1195,650);
- //rszfComboAppendBlankChild("cmb_holyordflag");
- model.setValue(cmb_holyordflag.attribute("ref") , "1");
-
- var today = getCurrentDate();
- var cur_yymm = parseInt(today.substring(0, 6));
-
- model.setValue("/root/send/payym", cur_yymm);
- model.setValue("/root/send/paytoym", cur_yymm);
- model.setValue("/root/send/saldfrayflag", "1");
- ipt_payym.refresh();
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
-
- misfGetUserAuth();
-
- if (DUTY_PAY_YN == "Y" ) {
- cmb_payinst.disabled = false;
- }
- else {
- cmb_payinst.disabled = true;
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRWP07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/payamtlist"/>
- <submission id="TXRWP07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2/payamtlist"/>
- </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/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
- </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:40px; width:1195px; height:740px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:60; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:28; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRWP07001");
- ipt_payinstnm.value = cmb_payinst.label;
- if (model.getValue("/root/send/saldfrayflag") == "1" || model.getValue("/root/send/saldfrayflag") == "8" || model.getValue("/root/send/saldfrayflag") == "E" || model.getValue("/root/send/saldfrayflag") == "A"){
- //if (model.getValue("/root/send/holyordflag") == "1"){
- exeReportPreview("RPRWP07000", "XMLSTR");//, "/root/main/payamt");
- //}else{
- //exeReportPreview("RPRWP07002", "XMLSTR");//, "/root/main/payamt");
- //}
- }else{
- exeReportPreview("RPRWP07003", "XMLSTR");//, "/root/main/payamt");
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1120px; y1:14; x2:1120px; y2:64; "/>
- <caption id="cap_payinst" class="search_name" style="left:310px; top:19px; width:86px; height:17px; ">급여기관:</caption>
- <select1 id="cmb_payinst" ref="/root/send/instcd" class="combo_s_essential" navindex="3" appearance="minimal" style="left:391px; top:18px; width:179px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption22" class="search_name" style="left:10px; top:19px; width:85px; height:17px; ">지급월:</caption>
- <input id="ipt_payym" ref="/root/send/payym" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:79px; top:18px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption28" class="tit_2" style="left:5px; top:75; width:144px; height:14px; ">급여 지급대장</caption>
- <line id="line193" class="line_1" style="x1:2px; y1:90; x2:1192px; y2:90; "/>
- <input id="ipt_payinstnm" ref="/root/send/instcdnm" visibility="hidden" style="left:105px; top:70px; width:100px; height:19px; "/>
- <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_default" style="left:185px; top:44px; width:94px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deptcd" class="icon_search" navindex="6" style="left:167px; top:45px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- rpbfOpenDeptCdHelp(ipt_deptcd,recv_list);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_default" style="left:80px; top:44px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_default" style="left:470px; top:44px; width:99px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnm.currentText != null && ipt_emplnm.currentText != "" ) {
- inputEnterKey("ipt_emplnm", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" navindex="7" style="left:451px; top:45px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
-
- model.refresh();
-
- if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_default" style="left:391px; top:44px; width:55px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
- inputEnterKey("ipt_emplno", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:610px; top:46px; width:86px; height:17px; ">직 종:</caption>
- <caption id="caption2" class="search_name" style="left:10; top:45; width:86px; height:17px; ">부 서:</caption>
- <caption id="caption3" class="search_name" style="left:310px; top:45px; width:86px; height:17px; ">사 번:</caption>
- <select1 id="cmb_jobkindcd" ref="/root/send/jobkindcd" class="combo_s_essential" navindex="8" appearance="minimal" style="left:691px; top:44px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="search_name" style="left:610px; top:19px; width:86px; height:17px; ">급여종류:</caption>
- <select1 id="cmb_SalDfrayFlag" ref="/root/send/saldfrayflag" class="combo_s_essential" navindex="4" appearance="minimal" style="left:691px; top:18px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- if (DUTY_PAY_YN == "Y" || cmb_SalDfrayFlag.value == "2") {
- cmb_payinst.disabled = false;
- }
- else {
- cmb_payinst.disabled = true;
- model.setValue(cmb_payinst.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- }
-
- if (cmb_SalDfrayFlag.value == "2") {
- misfComboComCdListMulti("Z0007,R0058,R0066,R0112", "cmb_payinst,cmb_prfshipflag,cmb_holyordflag,cmb_SalDfrayFlag");
- }
- else {
- misfComboInstCdListMulti("cmb_payinst",getCurrentDate(),"","N");
- misfComboComCdListMulti("R0058,R0066,R0112", "cmb_prfshipflag,cmb_holyordflag,cmb_SalDfrayFlag");
- //rszfComboAppendBlankChild("cmb_holyordflag");
- model.setValue(cmb_holyordflag.attribute("ref") , "1");
- }
- model.refresh();
- */
- ]]>
- </script>
- </select1>
- <input id="ipt_paytoym" ref="/root/send/paytoym" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:185px; top:18px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption4" style="left:175px; top:18px; width:10px; height:20px; ">-</caption>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:858px; top:19px; width:87px; height:17px; ">직원구분 :</caption>
- <select1 id="cmb_holyordflag" ref="/root/send/holyordflag" class="combo_s_essential" navindex="5" visibility="hidden" appearance="minimal" style="left:945px; top:18px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
- <button id="button51" class="btn2_letter4" visibility="hidden" style="left:860px; top:85px; width:64px; height:19px; ">
- <caption>메일전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var cnt = model.instances(0).selectNodes("/root/main/payamtlist").length;
- for (var i = cnt; i > 2; i--)
- {
- model.removenode("/root/main/payamtlist[" + i + "]");
- }
- model.refresh();
- cnt = model.instances(0).selectNodes("/root/main/payamtlist").length;
- cnt = cnt + 1;
- */
- /*
- for (var i = 1; i < cnt; i++)
- {
- //model.setValue("/root/main/payamtlist[" + i + "]/email", "hicuky@gmail.com");
- model.setValue("/root/main/payamtlist[" + i + "]/email", "rjj6703@korea.com");
- //model.setValue("/root/main/payamtlist[" + i + "]/email", "koodoh@korea.com");
- //model.setValue("/root/main/payamtlist[" + i + "]/email", "nayj76@sejongh.co.kr");
- }
- model.refresh();
- */
- //model.setValue("/root/main/payamtlist/email", "rjj6703@korea.com");
- //alert(getNodesetCount("/root/main/payamtlist"));
- if( getNodesetCount("/root/main/payamtlist") > 0 ){
- var irow = parseInt(getNodesetCount("/root/main/payamtlist")) + 1;
- //alert(irow);
- for (var i = 1; i < irow; i++){
- //model.copyNode("/root/send2/payamtlist", "/root/main/payamtlist[" + i +"]");
- copyNodesetType("/root/send2/payamtlist", "/root/main/payamtlist[" + i +"]", "replace", model, model);
- //alert(irow + "==" + i);
- //model.refresh();
- submit("TXRWP07001");
- }
- }
- messageBox("정상적으로 전송되었습니다.", "E999", "");
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|