SMRWY05000_연말정산전산매체작업.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. <yyendfilerecord>
  11. <yyendfilerecordlist/>
  12. </yyendfilerecord>
  13. </main>
  14. <send>
  15. <yyendfilerecord>
  16. <calcyy/>
  17. <workym/>
  18. <instcd/>
  19. <retireyn>%</retireyn>
  20. <cretdd/>
  21. </yyendfilerecord>
  22. </send>
  23. <init/>
  24. <hidden>
  25. <temp/>
  26. </hidden>
  27. </root>
  28. </instance>
  29. <script type="javascript">
  30. <![CDATA[
  31. function fSaveTextFile(pFileName)
  32. {
  33. var instcd = cmb_calcinst.value;
  34. var sDefaultFileName = "";
  35. if (instcd == "001") {
  36. sDefaultFileName = pFileName + "1148202.128";
  37. }
  38. else if (instcd == "011") {
  39. sDefaultFileName = pFileName + "1168202.162";
  40. }
  41. else if (instcd == "012") {
  42. sDefaultFileName = pFileName + "1148200.213";
  43. }
  44. else if (instcd == "013") {
  45. sDefaultFileName = pFileName + "1278200.198";
  46. }
  47. else if (instcd == "103") {
  48. sDefaultFileName = pFileName + "1148200.945";
  49. }
  50. else if (instcd == "014") {
  51. sDefaultFileName = pFileName + "1308202.173";
  52. }
  53. else if (instcd == "017") {
  54. sDefaultFileName = pFileName + "1358200.092";
  55. }
  56. else {
  57. sDefaultFileName = name + "";
  58. }
  59. var fso = new ActiveXObject("Scripting.FileSystemObject");
  60. var fileName = window.fileDialog("save", "", false, sDefaultFileName, "", "");
  61. if (fileName.length > 0) {
  62. var oFileStream = fso.OpenTextFile(fileName, 2, true);
  63. if (oFileStream == null) {
  64. var oFileStream = fso.CreateTextFile(fileName, true);
  65. }
  66. for(var i=grd_yyendfilerecordlist.fixedRows ; i < grd_yyendfilerecordlist.rows; i++)
  67. {
  68. var wData = grd_yyendfilerecordlist.valueMatrix(i, grd_yyendfilerecordlist.colRef("sdata"));
  69. oFileStream.WriteLine(wData);
  70. }
  71. oFileStream.Close();
  72. }
  73. }
  74. ]]>
  75. </script>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. misfGridInit(grd_yyendfilerecordlist);
  79. misfMsterDetailSet(grd_yyendfilerecordlist,null, "TRRWY05001" ,"N");
  80. var nowdate = getCurrentDate();
  81. var yy = nowdate.substring(0,4);
  82. var mm = nowdate.substring(4,6);
  83. var yyyymm = nowdate.substring(0,6);
  84. if (mm == "01" || mm == "02") {
  85. yy = parseInt(yy) - 1;
  86. yyyymm = yy + "12";
  87. }
  88. ipt_calcyy.value =yy;
  89. ipt_workym.value = yyyymm;
  90. ipt_cretdd.value = nowdate.substring(0,8);
  91. model.setValue(cmb_calcinst.attribute("ref"), getUserInfo("dutplceinstcd"));
  92. misfComboInstCdListMulti("cmb_calcinst",getCurrentDate(),"","N");
  93. misfGetUserAuth();
  94. if (DUTY_PAY_YN == "Y" ) {
  95. cmb_calcinst.disabled = false;
  96. }
  97. else {
  98. cmb_calcinst.disabled = true;
  99. }
  100. ]]>
  101. </script>
  102. <submission id="TRRWY05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/yyendfilerecord" resultref="/root/main/yyendfilerecord"/>
  103. <submission id="TRRWY05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/yyendfilerecord" resultref="/root/main/yyendfilerecord"/>
  104. <submission id="TRRWY05003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/yyendfilerecord" resultref="/root/main/yyendfilerecord"/>
  105. </model>
  106. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  108. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  109. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  110. <script type="javascript" src="../../../mis/yyendtaxadstweb/js/RWY001.js"/>
  111. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  112. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. </xhtml:head>
  115. <xhtml:body>
  116. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  117. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">연말정산전산매체작업</caption>
  118. </group>
  119. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  120. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  121. <line id="line13" class="line_4" style="x1:1109px; y1:16px; x2:1109px; y2:38px; "/>
  122. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:186px; height:14px; ">연말정산 대상자 List</caption>
  123. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1191px; y2:70px; "/>
  124. <datagrid id="grd_yyendfilerecordlist" nodeset="/root/main/yyendfilerecord/yyendfilerecordlist" caption="레코드자료|레코드자료" colsep="^" colwidth="5152" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1191px; height:665px; ">
  125. <col ref="sdata"/>
  126. </datagrid>
  127. <select1 id="cmb_calcinst" ref="/root/send/yyendfilerecord/instcd" class="combo_s_essential" appearance="minimal" style="left:500px; top:18px; width:165px; height:19px; ">
  128. <choices>
  129. <itemset>
  130. <label/>
  131. <value/>
  132. </itemset>
  133. </choices>
  134. </select1>
  135. <caption id="caption8" class="search_name" style="left:441px; top:18px; width:61px; height:17px; ">기관:</caption>
  136. <input id="ipt_calcyy" ref="/root/send/yyendfilerecord/calcyy" class="input_s_essential" style="left:86px; top:18px; width:66px; height:19px; "/>
  137. <caption id="caption3" class="search_name" style="left:5px; top:18px; width:84px; height:17px; ">기준년도:</caption>
  138. <select1 id="rdo_retireyn" ref="/root/send/yyendfilerecord/retireyn" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:920px; top:18px; width:175px; height:19px; border-style:solid; ">
  139. <choices>
  140. <item>
  141. <label>전체</label>
  142. <value>%</value>
  143. </item>
  144. <item>
  145. <label>연말</label>
  146. <value>N</value>
  147. </item>
  148. <item>
  149. <label>중도퇴직</label>
  150. <value>Y</value>
  151. </item>
  152. </choices>
  153. </select1>
  154. <input id="ipt_workym" ref="/root/send/yyendfilerecord/workym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:280px; top:18px; width:123px; height:19px; "/>
  155. <caption id="caption4" class="search_name" style="left:198px; top:18px; width:84px; height:17px; ">정산년월:</caption>
  156. <button id="btn_createfile" class="btn5_letter6" style="left:885px; top:48px; width:86px; height:19px; ">
  157. <caption>정산File생성</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. submit("TRRWY05001");
  161. fSaveTextFile("C");
  162. ]]>
  163. </script>
  164. </button>
  165. <caption id="caption2" class="search_name" style="left:695px; top:18px; width:84px; height:17px; ">제출일자:</caption>
  166. <input id="ipt_cretdd" ref="/root/send/yyendfilerecord/cretdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:777px; top:18px; width:128px; height:19px; "/>
  167. <button id="btn_medifile" class="btn5_letter7" style="left:975px; top:48px; width:97px; height:19px; ">
  168. <caption>의료비File생성</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. submit("TRRWY05002");
  172. fSaveTextFile("CA");
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="btn_edwnfile" class="btn5_letter7" style="left:1075px; top:48px; width:97px; height:19px; ">
  177. <caption>기부금File생성</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. submit("TRRWY05003");
  181. fSaveTextFile("H");
  182. ]]>
  183. </script>
  184. </button>
  185. </group>
  186. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  187. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  188. <button id="btn_clear" class="btn4_letter3" style="left:1119px; top:3px; width:68px; height:22px; ">
  189. <caption>초기화</caption>
  190. </button>
  191. </group>
  192. </xhtml:body>
  193. </xhtml:html>