SPRAT01000_원천징수신고파일생성.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>전표복사이동</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <returnlist>
  11. </returnlist>
  12. </main>
  13. <send>
  14. <instcd/>
  15. <frdd/>
  16. <todd/>
  17. <reportflag>1</reportflag>
  18. <reportdate/>
  19. <contact/>
  20. <deptcd/>
  21. <emplno/>
  22. <jobflag/>
  23. </send>
  24. <hidden>
  25. <dutplcenm/>
  26. <usernm/>
  27. <instinfo>
  28. <zipcd1/>
  29. <zipcd2/>
  30. <supaddr/>
  31. <infaddr/>
  32. <cadl/>
  33. <entrregno/>
  34. </instinfo>
  35. <filename/>
  36. </hidden>
  37. <init>
  38. </init>
  39. <temp>
  40. </temp>
  41. <target/>
  42. </root>
  43. </instance>
  44. <submission id="TRRAT01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/returnlist"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fInitialize();
  55. ]]>
  56. </script>
  57. <script type="javascript">
  58. <![CDATA[
  59. //========================================================================================
  60. //초기화
  61. //========================================================================================
  62. function fInitialize()
  63. {
  64. var instcd = model.getValue("/root/target/reportfile/instcd");
  65. var frdd = model.getValue("/root/target/reportfile/frdd");
  66. var todd = model.getValue("/root/target/reportfile/todd");
  67. var jobflag = model.getValue("/root/target/reportfile/jobflag");
  68. var sHeadtitle = ""
  69. if(jobflag == 'retr')
  70. {
  71. cap_retr.visible = true;
  72. cmb_reportflagretr.visible = true;
  73. sHeadtitle = "E";
  74. }
  75. else if(jobflag == 'etc1')
  76. {
  77. cap_etc.visible = true;
  78. cmb_reportflagetc.visible = true;
  79. sHeadtitle = "G";
  80. }
  81. else if(jobflag == 'etc2')
  82. {
  83. cap_etc.visible = true;
  84. cmb_reportflagretr.visible = true;
  85. sHeadtitle = "BI";
  86. }
  87. model.setValue("/root/send/jobflag", jobflag);
  88. model.setValue("/root/send/instcd", instcd);
  89. model.setValue("/root/send/frdd", frdd);
  90. model.setValue("/root/send/todd", todd);
  91. model.setValue("/root/send/deptcd", getUserInfo("dutplcecd"));
  92. model.setValue("/root/send/emplno", getUserInfo("userid"));
  93. model.setValue("/root/hidden/dutplcenm", getUserInfo("dutplcenm"));
  94. model.setValue("/root/hidden/usernm", getUserInfo("usernm"));
  95. var vReportdate = getCurrentDate().substr(0, 8);
  96. model.setValue("/root/send/reportdate", vReportdate);
  97. var nZipcd1 = "/root/hidden/instinfo/zipcd1";
  98. var nZipcd2 = "/root/hidden/instinfo/zipcd2";
  99. var nSupaddr = "/root/hidden/instinfo/supaddr";
  100. var nInfaddr = "/root/hidden/instinfo/infaddr";
  101. var cadl = "/root/hidden/instinfo/cadl";
  102. var nEntrregno = "/root/hidden/instinfo/entrregno";
  103. radfgetAcntYY(instcd, vReportdate, nZipcd1, nZipcd2, nSupaddr, nInfaddr, cadl, nEntrregno);
  104. var sEntrregno = model.getValue("/root/hidden/instinfo/entrregno");
  105. model.setValue("/root/hidden/filename", sHeadtitle + sEntrregno.substr(0, 7) + "." + sEntrregno.substr(7, 3))
  106. model.refresh();
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body pagewidth="565" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  112. <group id="group1" style="left:0px; top:0px; width:544; height:13px; ">
  113. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">파일생성</caption>
  114. </group>
  115. <group id="group2" style="left:0px; top:12px; width:543px; height:250px; "/>
  116. <group id="grp_btn" scroll="auto" style="left:0px; top:266px; width:544px; height:27px; ">
  117. <button id="btn_close" class="btn4_letter2" style="left:488px; top:2; width:56px; height:22px; ">
  118. <caption>취소</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. window.close();
  122. ]]>
  123. </script>
  124. </button>
  125. <line id="line1" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
  126. <button id="btn_copyslip" class="btn4_letter4" style="left:405px; top:2px; width:80px; height:22px; color:#ff0000; ">
  127. <caption>파일생성</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. if(model.getValue(ipt_contact.attribute("ref")) == "")
  131. {
  132. messageBox("연락처를 " ,"C001");
  133. return false;
  134. }
  135. if(model.getValue(ipt_reportdeptnm.attribute("ref")) == "")
  136. {
  137. messageBox("담당부서가 없습니다. 관리자에게 문의하세요" ,"I000");
  138. return false;
  139. }
  140. if(model.getValue(ipt_reportemplnm.attribute("ref")) == "")
  141. {
  142. messageBox("이름이 없습니다. 관리자에게 문의하세요 " ,"I000");
  143. return false;
  144. }
  145. var fileName = window.fileDialog ("save", "", false, model.getValue("/root/hidden/filename"), "", "All Files (*.*)|*.*|Text Files(*.txt)|*.txt");
  146. if (fileName != "")
  147. {
  148. //grd_payamtlist.saveExcel(fileName, "sheetname:sheet1");
  149. var param = "&instcd=" + model.getValue("/root/send/instcd");
  150. param += "&frdd=" + model.getValue("/root/send/frdd");
  151. param += "&todd=" + model.getValue("/root/send/todd");
  152. param += "&reportflag=" + model.getValue("/root/send/reportflag");
  153. param += "&reportdate=" + model.getValue("/root/send/reportdate");
  154. param += "&contact=" + model.getValue("/root/send/contact");
  155. param += "&deptcd=" + model.getValue("/root/send/deptcd");
  156. param += "&emplno=" + model.getValue("/root/send/emplno");
  157. param += "&jobflag=" + model.getValue("/root/send/jobflag");
  158. model.download(getActionURL("TRRAT01002") + param, fileName, true);
  159. window.exec(fileName);
  160. }
  161. ]]>
  162. </script>
  163. </button>
  164. </group>
  165. <group id="group4" style="left:0px; top:12px; width:543px; height:250px; "/>
  166. <group id="group6" style="left:0px; top:12px; width:543px; height:250px; ">
  167. <input id="ipt_reportdate" ref="/root/send/reportdate" class="input_s_essential" inputtype="date" style="left:120px; top:47px; width:120px; height:19px; ">
  168. <script type="javascript" ev:event="xforms-value-changed">
  169. <![CDATA[
  170. ]]>
  171. </script>
  172. </input>
  173. <caption id="caption8" class="cell_1" style="left:5px; top:45px; width:110px; height:23px; ">신고 일자</caption>
  174. <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; ">
  175. <choices>
  176. <item>
  177. <label>연간지급분</label>
  178. <value>1</value>
  179. </item>
  180. <item>
  181. <label>폐업에 의한 수시지급분</label>
  182. <value>2</value>
  183. </item>
  184. </choices>
  185. </select1>
  186. <caption id="caption1" class="cell_1" style="left:5px; top:73px; width:110px; height:23px; ">신고 구분</caption>
  187. <caption id="caption2" class="cell_1" style="left:5px; top:101px; width:110px; height:23px; ">연락처</caption>
  188. <input id="ipt_contact" ref="/root/send/contact" class="input_search" navindex="6" imemode="hangul" style="left:120px; top:103px; width:120px; height:19px; "/>
  189. <caption id="caption3" class="cell_1" style="left:5px; top:130px; width:110px; height:23px; ">담당부서</caption>
  190. <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; ">
  191. <script type="javascript" ev:event="xforms-value-changed">
  192. <![CDATA[
  193. ]]>
  194. </script>
  195. </input>
  196. <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; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. ]]>
  200. </script>
  201. </input>
  202. <caption id="caption4" style="left:382px; top:76px; width:15px; height:20px; ">~</caption>
  203. <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; "/>
  204. <caption id="caption5" class="cell_1" style="left:5px; top:158px; width:110px; height:23px; ">담당자</caption>
  205. <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; "/>
  206. <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; ">
  207. <choices>
  208. <item>
  209. <label>연간지급분</label>
  210. <value>1</value>
  211. </item>
  212. <item>
  213. <label>폐업에 의한 수시지급분</label>
  214. <value>2</value>
  215. </item>
  216. <item>
  217. <label>수시분할제출</label>
  218. <value>3</value>
  219. </item>
  220. </choices>
  221. </select1>
  222. </group>
  223. <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>
  224. <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>
  225. </xhtml:body>
  226. </xhtml:html>