123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?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>
- <returnlist>
- </returnlist>
- </main>
- <send>
- <instcd/>
- <frdd/>
- <todd/>
- <reportflag>1</reportflag>
- <reportdate/>
- <contact/>
- <deptcd/>
- <emplno/>
- <jobflag/>
- </send>
- <hidden>
- <dutplcenm/>
- <usernm/>
- <instinfo>
- <zipcd1/>
- <zipcd2/>
- <supaddr/>
- <infaddr/>
- <cadl/>
- <entrregno/>
- </instinfo>
- <filename/>
- </hidden>
- <init>
- </init>
- <temp>
- </temp>
- <target/>
- </root>
- </instance>
- <submission id="TRRAT01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/returnlist"/>
- </model>
- <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/RAC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //초기화
- //========================================================================================
- function fInitialize()
- {
- var instcd = model.getValue("/root/target/reportfile/instcd");
- var frdd = model.getValue("/root/target/reportfile/frdd");
- var todd = model.getValue("/root/target/reportfile/todd");
- var jobflag = model.getValue("/root/target/reportfile/jobflag");
- var sHeadtitle = ""
-
-
- if(jobflag == 'retr')
- {
- cap_retr.visible = true;
- cmb_reportflagretr.visible = true;
- sHeadtitle = "E";
-
- }
- else if(jobflag == 'etc1')
- {
- cap_etc.visible = true;
- cmb_reportflagetc.visible = true;
- sHeadtitle = "G";
- }
- else if(jobflag == 'etc2')
- {
- cap_etc.visible = true;
- cmb_reportflagretr.visible = true;
- sHeadtitle = "BI";
- }
-
- model.setValue("/root/send/jobflag", jobflag);
- model.setValue("/root/send/instcd", instcd);
- model.setValue("/root/send/frdd", frdd);
- model.setValue("/root/send/todd", todd);
-
- model.setValue("/root/send/deptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/emplno", getUserInfo("userid"));
-
- model.setValue("/root/hidden/dutplcenm", getUserInfo("dutplcenm"));
- model.setValue("/root/hidden/usernm", getUserInfo("usernm"));
-
- var vReportdate = getCurrentDate().substr(0, 8);
-
- model.setValue("/root/send/reportdate", vReportdate);
-
- var nZipcd1 = "/root/hidden/instinfo/zipcd1";
- var nZipcd2 = "/root/hidden/instinfo/zipcd2";
- var nSupaddr = "/root/hidden/instinfo/supaddr";
- var nInfaddr = "/root/hidden/instinfo/infaddr";
- var cadl = "/root/hidden/instinfo/cadl";
- var nEntrregno = "/root/hidden/instinfo/entrregno";
-
- radfgetAcntYY(instcd, vReportdate, nZipcd1, nZipcd2, nSupaddr, nInfaddr, cadl, nEntrregno);
-
- var sEntrregno = model.getValue("/root/hidden/instinfo/entrregno");
-
-
-
- model.setValue("/root/hidden/filename", sHeadtitle + sEntrregno.substr(0, 7) + "." + sEntrregno.substr(7, 3))
-
- model.refresh();
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="565" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:544; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">파일생성</caption>
- </group>
- <group id="group2" style="left:0px; top:12px; width:543px; height:250px; "/>
- <group id="grp_btn" scroll="auto" style="left:0px; top:266px; width:544px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:488px; top:2; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
- <button id="btn_copyslip" class="btn4_letter4" style="left:405px; top:2px; width:80px; height:22px; color:#ff0000; ">
- <caption>파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue(ipt_contact.attribute("ref")) == "")
- {
- messageBox("연락처를 " ,"C001");
- return false;
- }
- if(model.getValue(ipt_reportdeptnm.attribute("ref")) == "")
- {
- messageBox("담당부서가 없습니다. 관리자에게 문의하세요" ,"I000");
- return false;
- }
- if(model.getValue(ipt_reportemplnm.attribute("ref")) == "")
- {
- messageBox("이름이 없습니다. 관리자에게 문의하세요 " ,"I000");
- return false;
- }
-
-
- var fileName = window.fileDialog ("save", "", false, model.getValue("/root/hidden/filename"), "", "All Files (*.*)|*.*|Text Files(*.txt)|*.txt");
-
- if (fileName != "")
- {
- //grd_payamtlist.saveExcel(fileName, "sheetname:sheet1");
- var param = "&instcd=" + model.getValue("/root/send/instcd");
- param += "&frdd=" + model.getValue("/root/send/frdd");
- param += "&todd=" + model.getValue("/root/send/todd");
- param += "&reportflag=" + model.getValue("/root/send/reportflag");
- param += "&reportdate=" + model.getValue("/root/send/reportdate");
- param += "&contact=" + model.getValue("/root/send/contact");
- param += "&deptcd=" + model.getValue("/root/send/deptcd");
- param += "&emplno=" + model.getValue("/root/send/emplno");
- param += "&jobflag=" + model.getValue("/root/send/jobflag");
-
- model.download(getActionURL("TRRAT01002") + param, fileName, true);
-
- window.exec(fileName);
- }
-
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:12px; width:543px; height:250px; "/>
- <group id="group6" style="left:0px; top:12px; width:543px; height:250px; ">
- <input id="ipt_reportdate" ref="/root/send/reportdate" class="input_s_essential" inputtype="date" style="left:120px; top:47px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="cell_1" style="left:5px; top:45px; width:110px; height:23px; ">신고 일자</caption>
- <select1 id="cmb_reportflagretr" ref="/root/send/reportflag" class="combo_s_essential" disabled="false" navindex="-1" visibility="hidden" appearance="minimal" style="left:120px; top:75px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>연간지급분</label>
- <value>1</value>
- </item>
- <item>
- <label>폐업에 의한 수시지급분</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:5px; top:73px; width:110px; height:23px; ">신고 구분</caption>
- <caption id="caption2" class="cell_1" style="left:5px; top:101px; width:110px; height:23px; ">연락처</caption>
- <input id="ipt_contact" ref="/root/send/contact" class="input_search" navindex="6" imemode="hangul" style="left:120px; top:103px; width:120px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:5px; top:130px; width:110px; height:23px; ">담당부서</caption>
- <input id="input1" ref="/root/send/frdd" class="input_s_essential" disabled="false" visibility="visible" inputtype="date" style="left:260px; top:75px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/todd" class="input_s_essential" disabled="false" visibility="visible" inputtype="date" style="left:395px; top:75px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:382px; top:76px; width:15px; height:20px; ">~</caption>
- <input id="ipt_reportdeptnm" ref="/root/hidden/dutplcenm" class="input_search" disabled="true" navindex="6" visibility="visible" imemode="hangul" style="left:120px; top:130px; width:120px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:5px; top:158px; width:110px; height:23px; ">담당자</caption>
- <input id="ipt_reportemplnm" ref="/root/hidden/usernm" class="input_search" disabled="true" navindex="6" visibility="visible" imemode="hangul" style="left:120px; top:158px; width:120px; height:19px; "/>
- <select1 id="cmb_reportflagetc" ref="/root/send/reportflag" class="combo_s_essential" disabled="false" navindex="-1" visibility="hidden" appearance="minimal" style="left:120px; top:75px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>연간지급분</label>
- <value>1</value>
- </item>
- <item>
- <label>폐업에 의한 수시지급분</label>
- <value>2</value>
- </item>
- <item>
- <label>수시분할제출</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="cap_retr" class="cell_1" visibility="hidden" style="left:5px; top:20px; width:530px; height:30px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">퇴직 소득 파일 생성</caption>
- <caption id="cap_etc" class="cell_1" visibility="hidden" style="left:5px; top:20px; width:530px; height:30px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">기타 소득 파일 생성</caption>
- </xhtml:body>
- </xhtml:html>
|