123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- <?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>SMRWD00500_기관별공제신청내역등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <paydedu>
- <paydedulist/>
- </paydedu>
- </list>
- </main>
- <send>
- <paydedu>
- <dedumm/>
- <instcd/>
- <appinstcd/>
- <emplno/>
- <emplnm/>
- </paydedu>
- <save>
- <paydedulist/>
- </save>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_paydedulist);
- misfMsterDetailSet(grd_paydedulist,null, "TRRWD00501" ,"Y");
- misfGridComboComCdList("Z0007",grd_paydedulist,"appinstcd");
- //misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfComboCopyItemSet(cmb_instcd, "", cmb_appinstcd, ""); //물품구분
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMM");
- model.setValue(ipt_dedumm.attribute("ref") , cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRWD00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/list/paydedu"/>
- <submission id="TXRWD00501" 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/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[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fDefaultSetting() {
- model.setValue(grd_paydedulist.nodeset + "["+ (grd_paydedulist.row - grd_paydedulist.fixedRows + 1) + "]/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_paydedulist.nodeset + "["+ (grd_paydedulist.row - grd_paydedulist.fixedRows + 1) + "]/appinstcd" , model.getValue(cmb_appinstcd.attribute("ref")));
- model.setValue(grd_paydedulist.nodeset + "["+ (grd_paydedulist.row - grd_paydedulist.fixedRows + 1) + "]/dedumm" , model.getValue(ipt_dedumm.attribute("ref")));
- model.setValue(grd_paydedulist.nodeset + "["+ (grd_paydedulist.row - grd_paydedulist.fixedRows + 1) + "]/deduitemcd" , "70070");
- model.refresh();
- }
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(ipt_dedumm.attribute("ref")).length== 0 )
- {
- messageBox("공제월을 " ,"C002");
- model.setFocus("ipt_dedumm");
- return false;
- }
-
- for(var row = grd_paydedulist.fixedRows ; row < grd_paydedulist.rows ; row++)
- {
- if(grd_paydedulist.valueMatrix(row, grd_paydedulist.colRef("appinstcd")).length == 0 )
- {
- messageBox(row + "번째 줄 신청기관을 " ,"C002");
- grd_paydedulist.row= row;
- grd_paydedulist.col = grd_paydedulist.colRef("appinstcd");
- grd_paydedulist.editCell();
- return false;
- }
- if(grd_paydedulist.valueMatrix(row, grd_paydedulist.colRef("emplno")).length == 0 )
- {
- messageBox(row + "번째 줄 사원번호를 " ,"C002");
- grd_paydedulist.row= row;
- grd_paydedulist.col = grd_paydedulist.colRef("emplno");
- grd_paydedulist.editCell();
- return false;
- }
- if(grd_paydedulist.valueMatrix(row, grd_paydedulist.colRef("deduamt")).length == 0 )
- {
- messageBox(row + "번째 줄 공제금액을 " ,"C002");
- grd_paydedulist.row= row;
- grd_paydedulist.col = grd_paydedulist.colRef("deduamt");
- grd_paydedulist.editCell();
- return false;
- }
- }
-
-
- return true;
- }
- ]]>
- </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:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
- <line id="line1" class="line_1" style="x1:5px; y1:75px; x2:1194px; y2:75px; "/>
- <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:972px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_paydedulist, "A");
- fDefaultSetting((grd_paydedulist.row - grd_paydedulist.fixedRows + 1));
- ]]>
- </script>
- </button>
- <button id="btn_inputexcel" class="btn2_letter8" style="left:1084px; top:50px; width:108px; height:19px; ">
- <caption>엑셀자료가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_paydedulist);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. Excel 가져오기 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_paydedulist.loadExcel(fileName, 1, true);
- //grd_paydedulist.deleteRow(1);
-
- for(var row = grd_paydedulist.fixedRows ; row < grd_paydedulist.rows ; row++)
- {
- grd_paydedulist.rowStatus(row) = "1";
- }
-
- grd_paydedulist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1028px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_paydedulist, "D");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:211px; top:19px; width:94px; height:17px; ">공제월 :</caption>
- <input id="ipt_dedumm" ref="/root/send/paydedu/dedumm" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:289px; top:18px; width:100px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" appearance="minimal" style="left:68px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:7px; top:18px; width:61px; height:17px; ">기관:</caption>
- <datagrid id="grd_paydedulist" nodeset="/root/main/list/paydedu/paydedulist" caption="신청기관^사원번호^사원명^공제금액^비고^기관코드^공제항목코드" colsep="^" colwidth="167, 158, 191, 171, 479, 33, 31" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:80px; width:1189px; height:660px; ">
- <col ref="appinstcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="emplno" type="inputbutton"/>
- <col ref="emplnm"/>
- <col ref="deduamt" type="input" format="#,###.#" style="text-align:right; vertical-align:middle; "/>
- <col ref="cmt" type="input"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="deduitemcd" visibility="hidden"/>
- <col ref="dedumm" visibility="hidden"/>
- <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>
- </datagrid>
- <caption id="caption7" class="search_name" style="left:658px; top:17px; width:63px; height:17px; ">사번 :</caption>
- <button id="btn_emplno" class="icon_search" style="left:808px; top:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","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/paydedu/emplno" class="input_default" style="left:719px; top:17px; width:87px; height:19px; ">
- <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/paydedu/emplnm" class="input_default" style="left:825px; top:17px; width:141px; height:19px; ">
- <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>
- <select1 id="cmb_appinstcd" ref="/root/send/paydedu/appinstcd" class="combo_default" appearance="minimal" style="left:486px; top:17px; width:166px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:401px; top:18px; width:106px; height:17px; ">신청기관:</caption>
- </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[
- if(fCheckSaveData() == false)return;
- misfSave("TXRWD00501");
- ]]>
- </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; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|