123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/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>
- <payspeclist/>
- <writedata/>
- <recivepaydd/>
- </main>
- <send>
- <payym/>
- <saldfrayflag/>
- <dutdeptcd/>
- <payinst/>
- <empno/>
- <empnm/>
- <dutdeptnm/>
- <attachflag/>
- <payitemcd/>
- <transfbankcd/>
- <paydd/>
- <holyordflag/>
- </send>
- <init>
- <requirementemp>
- <label>사원번호</label>
- <value>goodflaghngnm</value>
- <label>사원명</label>
- <value>fixasetcd</value>
- </requirementemp>
- <attachflag>
- <label>Y</label>
- <value>Y</value>
- <label>N</label>
- <value>N</value>
- <label>전체</label>
- <value/>
- </attachflag>
- <payitemcd>
- <label>30000</label>
- <value>30000</value>
- </payitemcd>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/payspeclist");
- model.resetInstanceNode("/root/send");
- model.refresh();
-
- misfGridInit(grd_payspeclist);
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- misfComboComCdListMulti("R0112,R0242","cmb_saldfrayflag,cmb_transfbankcd");
-
- addComboItem( "cmb_transfbankcd", "[-- 전체 --]", "", "above");
- addComboItem( "cmb_transfbankcd", "계좌없는사번", "98", "before");
- model.setValue(cmb_transfbankcd.attribute("ref"), "");
-
- //rszfComboAppendBlankChild("cmb_transfbankcd");
-
- misfMsterDetailSet(grd_payspeclist,null,"TRRWP01001","N"); //마스터 설정
- model.setValue("/root/send/payinst", getUserInfo("dutplceinstcd")); // 세션에서 소속 기관 코드 가져오기
-
- //cmb_saldfrayflag.select(0);
- cmb_payitemcd.select(0);
- //cmb_transfbankcd.select(0);
-
- var curdate = getCurrentDate();
- var sFrontTime = curdate.substr(0, 6);
-
- model.setValue("/root/send/payym" ,sFrontTime);
- model.setValue(ipt_paydd.attribute("ref") ,curdate);
-
- model.setValue("/root/send/holyordflag", "1");
- //model.setValue("/root/send/saldfrayflag", "1");
-
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_prt.disabled= !(checkAuth("P"));
-
- misfGetUserAuth();
-
- if (DUTY_PAY_YN == "Y" ) {
- cmb_instcd.disabled = false;
- }
- else {
- cmb_instcd.disabled = true;
- }
- model.refresh();
- }
-
- function fsearch(){
-
- // var updtdata = getGridUpdateData(grd_payspeclist);
- //
- // //기관코드 값 체크
- // if ( updtdata != "") {
- // var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- // if (ret != 6) { // not OK
- // return;
- // }
- // }
- misfMsterDetailRetrieve();
- }
-
- function fSaveTextFile()
- {
-
- submit("TRRWP01002");
-
- var sDefaultdate = model.getValue("/root/send/paydd");
-
- if(sDefaultdate == "" || sDefaultdate == null)
- {
- messageBox("조회된 데이터가", "I004");
- return;
- }
- var sDefaultdate = sDefaultdate.substr(2,6);
-
- var sDefaultFileName = cmb_saldfrayflag.value + sDefaultdate;
-
- var fso = new ActiveXObject("Scripting.FileSystemObject");
-
- var fileName = window.fileDialog("save", "", false, sDefaultFileName+".txt", "txt", "텍스트 문서(*.txt)");
-
- if (fileName.length > 0) {
- var oFileStream = fso.OpenTextFile(fileName, 2, true);
-
- if (oFileStream == null) {
- var oFileStream = fso.CreateTextFile(fileName, true);
- }
-
- for(var i=1; i<grd_writedata.rows; i++)
- {
- var wData = model.getValue("/root/main/writedata[" + i + "]/data1");
- oFileStream.WriteLine(wData);
- }
- oFileStream.Close();
- }
- }
-
- function fGetPayDD()
- {
- //submit("TRRWP01003");
- var sPayDD = ipt_paydd.value; //model.getValue("/root/main/recivepaydd/paydd");
- model.setValue("/root/send/paydd" ,sPayDD);
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRWP01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/payspeclist"/>
- <submission id="TRRWP01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/writedata"/>
- <submission id="TRRWP01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recivepaydd"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,592;1,591;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">급여이체화일생성</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:80px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:490px; top:5px; width:86px; height:17px; ">지급년월 :</caption>
- <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:10px; top:5px; width:84px; height:17px; ">급여종류:</caption>
- <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:20px; width:56px; height:42px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fGetPayDD();
- fsearch();
- ]]>
- </script>
- </button>
- <input id="ipt_payym" ref="/root/send/payym" navindex="3" inputtype="date" format="yyyy-mm" style="left:575px; top:5px; width:120px; height:19px; text-align:center; "/>
- <select1 id="cmb_saldfrayflag" ref="/root/send/saldfrayflag" navindex="1" appearance="minimal" editmode="inputsearch" style="left:93px; top:5px; width:108px; 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_instcd.disabled = false;
- }
- else {
- cmb_instcd.disabled = true;
- }
-
- if (cmb_saldfrayflag.value == "2") {
- misfComboComCdListMulti("R0112,R0242,Z0007","cmb_saldfrayflag,cmb_transfbankcd,cmb_instcd");
- addComboItem( "cmb_instcd", "[-- 전체 --]", "%", "above");
- addComboItem( "cmb_transfbankcd", "계좌없는사번", "98", "before");
- model.setValue(cmb_instcd.attribute("ref"), "%");
- }
- else {
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- misfComboComCdListMulti("R0112,R0242","cmb_saldfrayflag,cmb_transfbankcd");
-
-
- addComboItem( "cmb_transfbankcd", "[-- 전체 --]", "", "above");
- addComboItem( "cmb_transfbankcd", "계좌없는사번", "98", "before");
- model.setValue(cmb_transfbankcd.attribute("ref"), "");
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:490px; top:35px; width:86px; height:17px; ">부서 :</caption>
- <input id="ipt_deptcd" ref="/root/send/dutdeptcd" class="input_default" navindex="8" appearance="input" style="left:575px; top:35px; width:120px; height:19px; "/>
- <output id="opt_deptnm" ref="/root/send/dutdeptnm" class="output_fix" appearance="output" style="left:718px; top:35px; width:187px; height:19px; "/>
- <button id="btn_deptcd" class="icon_search" style="left:698px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "dutdeptcd,deptnm";
- rpbfOpenDeptCdHelp(ipt_deptcd,recv_list);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_empno" class="search_name" style="left:207px; top:35px; width:61px; height:17px; ">사번:</caption>
- <input id="ipt_empno" ref="/root/send/empno" class="input_default" navindex="7" appearance="input" style="left:263px; top:35px; width:65px; height:19px; "/>
- <output id="opt_empnm" ref="/root/send/empnm" class="output_fix" appearance="output" style="left:350px; top:35px; width:125px; height:19px; "/>
- <button id="btn_empcd" class="icon_search" style="left:330px; top:35px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "empno,empnm";
- misfOpenPopUpList("12", ipt_empno,"", recv_list, "%","instcd") ;
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="cap_transfbankcd" class="search_name" style="left:10px; top:35px; width:84px; height:17px; ">이체은행:</caption>
- <select1 id="cmb_payitemcd" ref="/root/send/payitemcd" navindex="9" visibility="hidden" appearance="minimal" style="left:1000px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/payitemcd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_attachflag" class="search_name" visibility="hidden" style="left:930px; top:5px; width:86px; height:17px; ">압류여부 :</caption>
- <select1 id="cmb_transfbankcd" ref="/root/send/transfbankcd" navindex="6" appearance="minimal" style="left:93px; top:35px; width:108px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_payitemcd" class="search_name" visibility="hidden" style="left:913px; top:35px; width:87px; height:17px; ">급여항목:</caption>
- <select1 id="cmb_attachflag" ref="/root/send/attachflag" visibility="hidden" appearance="minimal" style="left:1015px; top:5px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/attachflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_paydd" ref="/root/send/paydd" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:795px; top:5px; width:110px; height:19px; text-align:center; "/>
- <caption id="cap_paydd" class="search_name" style="left:710px; top:5px; width:86px; height:17px; ">지급일자 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/payinst" class="combo_s_essential" navindex="2" appearance="minimal" style="left:273px; top:5px; width:212px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:207px; top:5px; width:61px; height:17px; ">기관:</caption>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:913px; top:7px; 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:1000px; top:5px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>직원</label>
- <value>1</value>
- </item>
- <item>
- <label>의사</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/paytrgt/holyordflag") == "1"){
- model.setValue("/root/send/paydd" , ipt_payym.value + "25");
- }else{
- model.setValue("/root/send/paydd" , ipt_payym.value + "22");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:129px; x2:1194px; y2:129px; "/>
- <caption id="cap_payspeclist_title" class="tit_2" style="left:5px; top:114px; width:133px; height:13px; ">급여 지급 데이터</caption>
- <datagrid id="grd_payspeclist" nodeset="/root/main/payspeclist" caption="부서명^사원번호^성명^주민번호^은행코드^은행명^계좌번호^이체금액^압류여부" colsep="^" colwidth="190, 101, 98, 162, 75, 119, 185, 140, 74" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:135px; width:1195px; height:605px; ">
- <col ref="depthngnm"/>
- <col ref="emplno"/>
- <col ref="name"/>
- <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
- <col ref="transfbankcd"/>
- <col ref="cdnm"/>
- <col ref="transfacntno" style="text-align:center; "/>
- <col ref="payitemamt" format="#,###" style="text-align:right; "/>
- <col checkvalue="Y,N" ref="attachflag" type="checkbox"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_payspeclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_file" class="btn2_letter4" style="left:1061px; top:105px; width:64px; height:19px; ">
- <caption>파일 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //fGetPayDD();
- fSaveTextFile();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_writedata" nodeset="/root/main/writedata" visibility="hidden" caption="출력데이타" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:590px; width:105px; height:150px; ">
- <col ref="data1"/>
- </datagrid>
- <datagrid id="grd_recivepaydd" nodeset="/root/main/recivepaydd" visibility="hidden" caption="지급일자" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:115px; top:590px; width:105px; height:150px; ">
- <col ref="paydd"/>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1129px; top:105px; 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_payspeclist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1069px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // fsave();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" style="left:0px; top:3; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" style="left:58px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|