123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <?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>
- <congramaster>
- <congraamtlist>
- <baseym/>
- <dutplceinstnm/>
- <dutplcedeptnm/>
- <emplno/>
- <emplnm/>
- <jobposnm/>
- <deduamt/>
- <deducnt/>
- <deduamttot/>
- <cmt/>
- <jobposcd/>
- <dutplceinst/>
- <dutplcedeptcd/>
- </congraamtlist>
- <congratotlist>
- <congrainstamt/>
- <congracnt/>
- <congratotamt/>
- <congratotcnt/>
- </congratotlist>
- </congramaster>
- </main>
- <send>
- <search>
- <dutplceinst/>
- <baseym/>
- <emplno/>
- <emplnm/>
- <endyn/>
- <gvnoffcordyn/>
- <deduexcyn/>
- </search>
- <savelist>
- <congraamtlist/>
- </savelist>
- <report>
- <selectinstnm/>
- </report>
- <payappsend>
- <instcd/>
- <payym/>
- <payitemcd/>
- </payappsend>
- </send>
- <init>
- <checkbox1>
- <label>해외연수여부</label>
- <value>Y</value>
- </checkbox1>
- <checkbox2>
- <label>공제제외여부</label>
- <value>Y</value>
- </checkbox2>
- </init>
- <dataynlist>
- <baseamtyn/>
- <requestyn/>
- <creatyn/>
- <endyn/>
- <payrefltyn/>
- </dataynlist>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- misfGridInit(grd_congraamtlist);
- misfMsterDetailSet(grd_congraamtlist,null,"TRRPA07201","Y");
- btn_save.disabled = !(checkAuth("X"));
- // 공통코드 바인딩 silver
- misfComboComCdList('Z0007', cmb_dutplceinst,"Y");
-
-
- if (getUserInfo("dutplceinstcd") == "017") {
- cmb_dutplceinst.value = "017";
- cmb_dutplceinst.disabled = true;
- }
- // misfComboCopyItemSet(cmb_dutplceinst, "", grd_congraamtlist, "dutplceinst");
- //var dutplceinst = getUserInfo("dutplceinstcd");
- // cmb_dutplceinst.value=dutplceinst;
- //btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- <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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/congramaster/congraamtlist");
- model.resetInstanceNode("/root/send");
- model.refresh();
- var dutplceinst = getUserInfo("dutplceinstcd");
- cmb_dutplceinst.value=dutplceinst;
- var curDate = getCurrentDate().toDate();
- model.setValue("/root/send/search/baseym", curDate.getDateFormat('YYYYMM'));
- }
- function fPrint() {
- model.makeNode("/root/send/report/selectinstnm");
- var selectInstnm=cmb_dutplceinst.label;
- model.setValue("/root/send/report/selectinstnm", selectInstnm);
- exeReportPreview("RPRPA07200", "XMLSTR", "/root/send/report");
- }
- ]]>
- </script>
- <submission id="TRRPA07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/congramaster"/>
- <submission id="TXRPA07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
- <submission id="TXRPA07202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
- <submission id="TRRPA07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/dataynlist"/>
- <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/temp"/>
- </model>
- </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:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; "/>
- <caption id="cap_dutplceinst" class="search_name" style="left:215px; top:19px; width:111px; height:17px; ">급여기관 :</caption>
- <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[
- if(!isRequiredControls("ipt_baseym"))return;
- submit("TRRPA07201");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <line id="line207" class="line_1" style="x1:0; y1:69; x2:1195; y2:69px; "/>
- <datagrid id="grd_congraamtlist" nodeset="/root/main/congramaster/congraamtlist" caption="기준년월^급여기관^교실^사원번호^성명^직위^공제금액^공제건수^공제금액계^해외연수일자^공제제외여부^비고^급여반영^직위코드^기관코드^부서코드" colsep="^" colwidth="70, 122, 130, 90, 61, 90, 90, 60, 80, 86, 80, 129, 62, 31, 44, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:1194px; height:601px; ">
- <col ref="baseym" format="yyyy-mm" _key="true" style="text-align:center; "/>
- <col ref="dutplceinstnm" style="text-align:center; "/>
- <col ref="dutplcedeptnm"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="jobposnm" style="text-align:center; "/>
- <col ref="deduamt" type="input" format="#,###" _key="true" style="text-align:right; padding-right:10; "/>
- <col ref="deducnt" style="text-align:center; "/>
- <col ref="deduamttot" type="input" format="#,###" style="text-align:right; "/>
- <col ref="gvnoffcorddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="deduexcyn" type="checkbox"/>
- <col imemode="hangul" ref="cmt" type="input"/>
- <col ref="payrefltyn" style="text-align:center; "/>
- <col ref="jobposcd" visibility="hidden"/>
- <col ref="dutplceinst" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- </datagrid>
- <select1 id="cmb_dutplceinst" ref="/root/send/search/dutplceinst" class="combo_s_essential" appearance="minimal" style="left:300px; top:18px; width:190px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="tit_2" style="left:0px; top:54px; width:183px; height:14px; ">월별 경조금 공제 요청</caption>
- <input id="ipt_baseym" ref="/root/send/search/baseym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:100px; top:18px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- var instcd = cmb_dutplceinst.value;
- if( getStringLength(ipt_baseym.value) == "6" ) {
- model.removeNodeset(cmb_dutplceinst.attribute("ref"));
- model.makeNode("/root/send/search/dutplceinst");
- misfComboInstCdListMulti("cmb_dutplceinst",ipt_baseym.value,"","Y");
- cmb_dutplceinst.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="cap_baseym" class="search_name" style="left:15px; top:19px; width:91px; height:17px; ">기준년월:</caption>
- <caption id="cap_emplno" class="search_name" style="left:513px; top:19px; width:99px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_search" navindex="21" imemode="hangul" style="left:699px; top:18px; width:106px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_search" navindex="20" style="left:604px; top:18px; width:69px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_emplsearch" class="icon_search" style="left:679px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno,emplnm";
-
- //rpbfOpenPopUpList("SPRPB00101", grd_congraamtreqlist, recv_list,"","N","Y");
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"ipt_systemflag","N");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_congratotamt" ref="/root/main/congramaster/congratotlist/congratotamt" class="input_default" disabled="true" navindex="45" format="#,###" style="left:625px; top:712px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
- <input id="ipt_congracnt" ref="/root/main/congramaster/congratotlist/congracnt" class="input_default" disabled="true" navindex="45" format="#,###" style="left:365px; top:712px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:710px; width:101px; height:23px; vertical-align:middle; ">기관공제금액계</caption>
- <caption id="caption12" class="cell_1" style="left:262px; top:710px; width:100px; height:23px; vertical-align:middle; ">기관공제건수계</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:705px; x2:1192px; y2:705px; "/>
- <caption id="caption7" class="tit_2" style="left:0px; top:690px; width:198px; height:14px; ">월별 경조금 공제합계</caption>
- <caption id="caption8" class="cell_1" style="left:522px; top:710px; width:100px; height:23px; vertical-align:middle; ">공제금액총합계</caption>
- <input id="ipt_payterm" ref="/root/main/congramaster/congratotlist/congrainstamt" class="input_default" disabled="true" navindex="20" format="#,###" style="left:103px; top:712px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
- <input id="input1" ref="/root/main/congramaster/congratotlist/congratotcnt" class="input_default" disabled="true" navindex="45" format="#,###" style="left:883px; top:710px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
- <caption id="caption1" class="cell_1" style="left:780px; top:708px; width:100px; height:23px; vertical-align:middle; ">공제건수총합계</caption>
- <input id="input2" ref="/root/send/search/endyn" visibility="hidden" style="left:1055px; top:20px; width:50px; height:19px; "/>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1124px; top:48px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_congraamtlist.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- <select id="ckb_famydoduyn" ref="/root/send/search/gvnoffcordyn" class="checkbox_search" overflow="visible" appearance="full" style="left:825px; top:20px; width:90px; height:15px; ">
- <choices>
- <itemset nodeset="/root/init/checkbox1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select>
- <select id="ckb_gvnoffcordyn" ref="/root/send/search/deduexcyn" class="checkbox_search" overflow="visible" appearance="full" style="left:925px; top:20px; width:100px; height:15px; ">
- <choices>
- <itemset nodeset="/root/init/checkbox2">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_congraamtlist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- submit("TRRPA07102");
- var endyn= model.getValue("/root/dataynlist/endyn");
- if(endyn =='Y'){
- messageBox("마감이 완료된 자료는 수정 ","E001");
- return;
- }
- if(!checkKeyColumn("grd_congraamtlist"))return;
- misfSave("TXRPA07201");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:984px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_congraamtlist);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter4" visibility="hidden" style="left:713px; top:2px; width:80px; height:22px; ">
- <caption>공제마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_congraamtlist);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- var retMes = messageBox("경조금 공제내역을 마감 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- submit("TRRPA07102");
-
- var creatyn=model.getValue("/root/dataynlist/creatyn");
- if(creatyn !='Y'){
- messageBox("마감할 자료가 ","I004");
- return;
- }
- model.setValue("/root/send/search/endyn","Y");
- submit("TXRPA07202");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" visibility="hidden" style="left:795px; top:2px; width:80px; height:22px; ">
- <caption>마감취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_congraamtlist);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- var retMes = messageBox("마감된 경조금공제내역을 취소 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- submit("TRRPA07102");
- var endyn= model.getValue("/root/dataynlist/endyn");
- var payrefltyn=model.getValue("/root/dataynlist/payrefltyn");
- if(payrefltyn =='Y'){
- messageBox("급여반영이 완료된 자료는 취소 ","E001");
- return;
- }
- if(endyn !='Y'){
- messageBox("취소할 자료가 ","I004");
- return;
- }
- model.setValue("/root/send/search/endyn","N");
- submit("TXRPA07202");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter5" style="left:0; top:3px; width:92px; height:22px; ">
- <caption>내역서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter4" style="left:1053px; top:3px; width:80px; height:22px; ">
- <caption>급여이체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_basedd_s"))return;
- var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var dutplceinst = '103';//getUserInfo("dutplceinstcd");
- model.setValue("/root/send/search/dutplceinst",dutplceinst);
- submit("TRRPA07102");
- var endyn= model.getValue("/root/dataynlist/endyn");
- var payrefltyn=model.getValue("/root/dataynlist/payrefltyn");
- if(payrefltyn =='Y'){
- messageBox("급여이체 자료가 이미","I001");
- return;
- }
-
- var instcd = getUserInfo("dutplceinstcd");
- var payym = model.getValue("/root/send/search/baseym");
- var payitemcd = "60220";
- model.setValue("/root/send/payappsend/instcd",instcd);
- model.setValue("/root/send/payappsend/payym",payym);
- model.setValue("/root/send/payappsend/payitemcd",payitemcd);
-
-
- misfSave("TXRWZ00303");
- if (model.getValue(gvErrorMsgPath + "/type") != "error"){
- messageBox("급여이체작업이","I001");
- misfMsterDetailRetrieve();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|