123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580 |
- <?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>
- <payitem>
- <payitemlist/>
- </payitem>
- <paydedu>
- <paydedulist/>
- </paydedu>
- <paydeducopy>
- <paydeducopylist/>
- </paydeducopy>
- <excel>
- <excellist/>
- </excel>
- </main>
- <send>
- <payitem>
- <appdd/>
- <instcd/>
- <paydeduflag/>
- <saldfrayflag/>
- <calcmthd/>
- <payitemcd/>
- </payitem>
- <paydedu>
- <paydedudd/>
- <instcd/>
- <paydeduflag/>
- <payitemcd/>
- <saldfrayflag/>
- </paydedu>
- <save>
- <paydedulist/>
- </save>
- <attach>
- <file/>
- <paydedudd/>
- <saldfrayflag/>
- <paydeduflag/>
- <payitemcd/>
- </attach>
- <vindedu>
- <instcd/>
- <payym/>
- <saldfrayflag/>
- </vindedu>
- </send>
- <init>
- <searchtext/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_payitemtitle);
- misfGridInit(grd_paydedulist);
- misfMsterDetailSet(grd_payitemtitle,null, "TRRWD00202" ,"N");
- misfMsterDetailSet(grd_paydedulist,grd_payitemtitle, "TRRWD00201" ,"Y");
-
- var curdate = getCurrentDate();
-
- model.setValue(ipt_paydeduym.attribute("ref") , curdate.substr(0,6));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(cmb_SalDfrayFlag.attribute("ref") , "1");
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfComboComCdListMulti("R0099,R0112,R0130","cmb_paydeduflag,cmb_SalDfrayFlag,grd_paydedulist.timsamtflag");
-
- ]]>
- </script>
- <submission id="TRRWD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/paydedu"/>
- <submission id="TRRWD00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payitem" resultref="/root/main/payitem"/>
- <submission id="TXRWD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRWD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/paydeducopy"/>
- <submission id="TRRWD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payitem" resultref="/root/hidden/temp"/>
- <submission id="TRRWD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/hidden/temp"/>
- <submission id="TXRWD00202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
- <submission id="TXRWD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/vindedu" 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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fseqnoset()
- {
- for (var i = grd_paydedulist.fixedRows; i < grd_paydedulist.rows; i++ ) {
- grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("seqno")) = i - grd_paydedulist.fixedRows + 1;
- }
- }
-
- var fso=new ActiveXObject("Scripting.FileSystemObject");
- function fExcelUpload() {
-
- var maxsize = upload1.attribute("filesize");
- var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var filelist = filename.split("|");
- model.removeNodeset("/root/main/list/filelist");
- model.removeNodeset("/root/send/attach");
- //타이틀을 획득한다.
- var s = new String(filelist[filelist.length-1]);
- var ss = s.split("\\");
- if(filename !=""){
- //작업 전 row를 추가 >파일명 유/무에 따른 분기>
- for(var i = 0 ; i < filelist.length ; i++ ){
- grd_attach.addRow(false);
-
- if(filelist[i] == ""){
- //alert(grd_attach.rows - 1);
- grd_attach.removeRow(false);
- grd_attach.refresh();
- }else{
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- //파일크기('tfHelper.checkFileSize' 참조)
- var fileCnt = upload1.getFileCount();
- var lastIndex = fileCnt - 1;
- var fileSize = upload1.getFileSize(lastIndex);
- grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
-
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
- }
- model.makeValue("/root/send/attach/paydedudd",ipt_paydeduym.value);
- model.makeValue("/root/send/attach/saldfrayflag",cmb_SalDfrayFlag.value);
- model.makeValue("/root/send/attach/paydeduflag",cmb_paydeduflag.value);
- model.makeValue("/root/send/attach/payitemcd",grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd")) );
-
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRWD00202");
- closeLoadingBar();
- //btn_search.dispatch("DOMActivate");
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/payitem/calcmthd","012");
- misfMsterDetailRetrieve();
-
- var saldfrayflag = cmb_SalDfrayFlag.value;
- var paydeduflag = cmb_paydeduflag.value;
-
- if (saldfrayflag == "2" && paydeduflag == "1") {
- btn_upload.visible = true;
- }
- else {
- btn_upload.visible = false;
- }
- ]]>
- </script>
- </button>
- <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:55px; width:157px; height:13px; ">지급/공제코드</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:70px; x2:355px; y2:70px; "/>
- <line id="line1" class="line_1" style="x1:360px; y1:70px; x2:1190px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:360px; top:55px; width:198px; height:13px; ">개인별 지급/공제사항등록</caption>
- <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:888px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_paydedulist.subtotal("clear", 0, 0);
- grd_paydedulist.refresh();
-
- misfGridIUD(grd_paydedulist, "A");
- // grd_paydedulist.addRow(false);
- //
- // model.setFocus("grd_paydedulist");
- // grd_paydedulist.row = grd_paydedulist.rows - 1;
- // grd_paydedulist.col = grd_paydedulist.colRef("emplno");
- // //grd_paydedulist.select(grd_paydedulist.rows - 1, grd_paydedulist.colRef("emplno"), grd_paydedulist.rows - 1, grd_paydedulist.colRef("emplno")) = true;
- // var a = (grd_paydedulist.rows - 28.5) * 23;
- // grd_paydedulist.vscroll.attribute("pos") = a.toString();
- //
- // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("paydedudd")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydedudd"));
- // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("instcd")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("instcd"));
- // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("paydeduflag")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydeduflag"));
- // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("payitemcd")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd"));
- // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("saldfrayflag")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("saldfrayflag"));
- ]]>
- </script>
- </button>
- <button id="btn_inputexcel" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_paydedulist.subtotal("clear", 0, 0);
- grd_paydedulist.refresh();
-
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_paydedulist.loadExcel(fileName, 1, true);
- //grd_paydedulist.deleteRow(grd_paydedulist.fixedRows);
- grd_paydedulist.refresh();
-
- var paydedudd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydedudd"));
- var instcd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("instcd"));
- var paydeduflag = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydeduflag"));
- var payitemcd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd"));
- var saldfrayflag = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("saldfrayflag"));
-
- for (var i = grd_paydedulist.fixedRows; i < grd_paydedulist.rows; i++) {
- grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("paydedudd")) = paydedudd;
- grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("instcd")) = instcd;
- grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("paydeduflag")) = paydeduflag;
- grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("payitemcd")) = payitemcd;
- grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("saldfrayflag")) = saldfrayflag;
- grd_paydedulist.rowStatus(i) = 1;
-
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1009px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // grd_paydedulist.subtotal("clear", 0, 0);
- // grd_paydedulist.refresh();
-
- // grd_paydedulist.row= grd_paydedulist.row - 1;
- misfGridIUD(grd_paydedulist, "D");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:15px; top:19px; width:74px; height:17px; ">적용월 :</caption>
- <input id="ipt_paydeduym" ref="/root/send/payitem/appdd" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:90px; top:18px; width:100px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/payitem/instcd" class="combo_s_essential" appearance="minimal" style="left:299px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (getUserInfo("dutplceinstcd") == "017" && cmb_instcd.value == "017" && cmb_SalDfrayFlag.value == "1" && cmb_paydeduflag.value == "2" ) {
- btn_makevindedulist.visible = true;
- }
- else {
- btn_makevindedulist.visible = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:240px; top:18px; width:61px; height:17px; ">기관:</caption>
- <datagrid id="grd_payitemtitle" nodeset="/root/main/payitem/payitemlist" caption="복사^급여항목^급여항목코드명^^계산기준^적용일자^지급구분^지급공제구분^기관" colsep="^" colwidth="22, 107, 169, 33, 36, 40, 42, 34, 34" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:355px; height:660px; ">
- <col ref="copy" type="inputbutton" visibility="hidden"/>
- <col ref="payitemcd" type="output" style="text-align:center; vertical-align:middle; "/>
- <col ref="prntnm" type="output"/>
- <col ref="chkyn"/>
- <col ref="calcbase" visibility="hidden"/>
- <col ref="paydedudd" visibility="hidden"/>
- <col ref="saldfrayflag" visibility="hidden"/>
- <col ref="paydeduflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- //model.setValue("/root/send/paydedu/paydedumm", model.getValue(ipt_paydeduym.attribute("ref")));
- if (grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd")) == "10540") {
- btn_makeholi.visible = true;
- }
- else {
- btn_makeholi.visible = false;
- }
- misfMsterDetailRetrieve();
- grd_paydedulist.subtotal("clear", 0, 0);
-
- fseqnoset();
- grd_paydedulist.subtotal("count",-1 , grd_paydedulist.colRef("emplno"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_paydedulist.subtotal("sum",-1 , grd_paydedulist.colRef("paydeduamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_payitemtitle.colAttribute(grd_payitemtitle.col,"ref") == "copy" ) {
- submit("TRRWD00203");
-
- var checkyn = "N";
- var node = instance1.selectNodes("/root/main/paydeducopy/*");
- for (var i = 1 ; i <= node.length; i++) {
-
- for (var j = grd_paydedulist.fixedRows; j < grd_paydedulist.rows; j++) {
- if (grd_paydedulist.valueMatrix(j, grd_paydedulist.colRef("emplno")) == model.getValue("/root/main/paydeducopy/" + "paydeducopylist[" + i + "]/emplno")) {
- checkyn = 'Y';
- }
- }
-
- if (checkyn != "Y") {
- misfGridIUD(grd_paydedulist, "A");
- model.copyNode("/root/main/paydedu/paydedulist[" + (grd_paydedulist.row - grd_paydedulist.fixedRows + 1) + "]" , "/root/main/paydeducopy/paydeducopylist[" + i + "]" );
- }
-
- checkyn = "N";
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var payitemcd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd"));
- var prntnm = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("prntnm"));
- var payinst = cmb_instcd.value;
- var payym = ipt_paydeduym.value;
-
- model.makeValue("root/temp/source/defaultvalue/payitemcd", payitemcd);
- model.makeValue("root/temp/source/defaultvalue/prntnm", prntnm);
- model.makeValue("root/temp/source/defaultvalue/payinst", payinst);
- model.makeValue("root/temp/source/defaultvalue/payym", payym);
-
- modal("SMRWD02000","","","","","/root/temp/source", "/root/temp/target" );
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_paydedulist" nodeset="/root/main/paydedu/paydedulist" caption="인원^사원번호^성명^지급공제금액/횟수^비고^주민번호^급여대상^급여총액여부^급여기관^기관코드^급여종류^지급공제구분^지급공제코드^적용일자^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^회수금액구분|인원^사원번호^성명^지급공제금액/횟수^비고^주민번호^급여대상^급여총액여부^급여기관^기관코드^급여종류^지급공제구분^지급공제코드^적용일자^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^회수금액구분" colsep="^" colwidth="41, 82, 86, 93, 195, 97, 32, 48, 113, 463, 34, 33, 31, 33, 34, 30, 38, 39, 37" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:360px; top:75px; width:830px; height:660px; ">
- <col ref="seqno" style="text-align:center; vertical-align:middle; "/>
- <col ref="emplno" type="inputbutton" style="text-align:right; vertical-align:middle; "/>
- <col ref="emplnm"/>
- <col ref="paydeduamt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; vertical-align:middle; "/>
- <col ref="cmt" type="input"/>
- <col ref="rregno"/>
- <col ref="payyn"/>
- <col ref="paytotamtyn" style="text-align:center; vertical-align:middle; "/>
- <col ref="instnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="saldfrayflag" visibility="hidden"/>
- <col ref="paydeduflag" visibility="hidden"/>
- <col ref="payitemcd" visibility="hidden"/>
- <col ref="paydedudd" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="timsamtflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_paydedulist.colAttribute(grd_paydedulist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_paydedulist, recv_list,"","N");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_paydedulist.colAttribute(grd_paydedulist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
- misfValidationCheck("01-1", "", recv_list);
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_paydedulist.gridToInstance();
-
-
-
- fseqnoset();
-
- grd_paydedulist.subtotal("count",-1 , grd_paydedulist.colRef("emplno"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_paydedulist.subtotal("sum",-1 , grd_paydedulist.colRef("paydeduamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onbeforesort">
- <![CDATA[
- grd_paydedulist.subtotal("clear", 0, 0);
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_paydeduflag" ref="/root/send/payitem/paydeduflag" class="combo_s_essential" appearance="minimal" style="left:809px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (getUserInfo("dutplceinstcd") == "017" && cmb_instcd.value == "017" && cmb_SalDfrayFlag.value == "1" && cmb_paydeduflag.value == "2" ) {
- btn_makevindedulist.visible = true;
- }
- else {
- btn_makevindedulist.visible = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:700px; top:18px; width:107px; height:17px; ">지급공제구분:</caption>
- <caption id="caption5" class="search_name" style="left:460px; top:18px; width:86px; height:17px; ">급여종류:</caption>
- <select1 id="cmb_SalDfrayFlag" ref="/root/send/payitem/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:541px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (getUserInfo("dutplceinstcd") == "017" && cmb_instcd.value == "017" && cmb_SalDfrayFlag.value == "1" && cmb_paydeduflag.value == "2" ) {
- btn_makevindedulist.visible = true;
- }
- else {
- btn_makevindedulist.visible = false;
- }
- ]]>
- </script>
- </select1>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1064px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_paydedulist.saveExcel(fileName, "sheetname:savetype", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_makeholi" class="btn5_letter8" visibility="hidden" style="left:538px; top:50px; width:103px; height:19px; ">
- <caption>휴가보전수당생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRWD00205");
- grd_payitemtitle.dispatch("onrowchanged");
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:651px; top:50px; width:55px; height:17px; ">검색:</caption>
- <input id="ipt_search" ref="/root/init/searchtext" class="input_s_essential" style="left:706px; top:50px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_find", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_find" class="btn2_letter2" style="left:834px; top:50px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setFocus("grd_paydedulist");
- for(var row = grd_paydedulist.fixedRows+1 ; row < grd_paydedulist.rows; row++)
- {
- if(grd_paydedulist.valueMatrix(row , grd_paydedulist.colRef("emplnm")).indexOf(model.getValue(ipt_search.attribute("ref"))) != -1)
- {
- //grd_paydedulist.rowHeight(row)= 23;
- grd_paydedulist.row = row;
- grd_paydedulist.cellstyle("background-color", row, 1, row, 5) = "#ffff99";
-
- }
- else
- {
- //grd_paydedulist.rowHeight(row)= 0;
- //grd_paydedulist.row = row;
- grd_paydedulist.cellstyle("background-color", row, 1, row, 5) = "#ffffff";
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddelpaydedulistall" class="btn2_letter4" style="left:943px; top:50px; width:53px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // grd_paydedulist.subtotal("clear", 0, 0);
- // grd_paydedulist.refresh();
-
-
- model.setFocus("grd_paydedulist");
- //grd_paydedulist.row= grd_paydedulist.row - 1;
-
- grd_paydedulist.select(grd_paydedulist.fixedRows, grd_paydedulist.colRef("emplno"), grd_paydedulist.rows - 1, grd_paydedulist.colRef("emplno")) = true;
-
- misfGridIUD(grd_paydedulist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_upload" class="btn5_letter7" visibility="hidden" style="left:255px; top:50px; width:97px; height:19px; ">
- <caption>인센티브업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcelUpload();
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:220px; top:50px; width:25px; height:20px; "/>
- <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:135px; top:430px; width:505px; height:69px; ">
- <col ref="file" style="text-align:center; "/>
- <col ref="filesize" format="#,###" style="text-align:right; "/>
- </datagrid>
- <button id="btn_makevindedulist" class="btn5_letter4" visibility="hidden" style="left:290px; top:50px; width:64px; height:19px; ">
- <caption>회비생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/vindedu/instcd",cmb_instcd.value);
- model.setValue("/root/send/vindedu/payym",ipt_paydeduym.value);
- model.setValue("/root/send/vindedu/saldfrayflag",cmb_SalDfrayFlag.value);
-
- submit("TXRWD00203");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRWD00201");
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_copy" class="btn4_letter4" style="left:969px; top:3px; width:68px; height:22px; ">
- <caption>전월복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/payitem/payitemlist[" + grd_payitemtitle.row + "]/payitemcd") == ""){
- messageBox("지급/공제코드를 선택한 후 진행하시기 바랍니다.", "E999", "");
- return;
- }
- model.setValue("/root/send/payitem/payitemcd", model.getValue("/root/main/payitem/payitemlist[" + grd_payitemtitle.row + "]/payitemcd"));
- submit("TRRWD00204");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|