SMRAT00511_전산매체생성.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. <list>
  11. <etcorchlist/>
  12. </list>
  13. </main>
  14. <init/>
  15. <send>
  16. <reqparams>
  17. <frdd/>
  18. <todd/>
  19. <instcd/>
  20. <chrgflag/>
  21. <instcdflag/>
  22. <groupid/>
  23. </reqparams>
  24. <fileparams>
  25. <type/>
  26. <taxoffice>504</taxoffice>
  27. <presenter>2</presenter>
  28. <presenterno/>
  29. <hometaxid>KNUHACC</hometaxid>
  30. <taxprgcode>9000</taxprgcode>
  31. <companyno>5018206653</companyno>
  32. <companynm>경북대학교병원</companynm>
  33. <companynmsize/>
  34. <deptnm>기획조정팀 재무파트</deptnm>
  35. <name>오성호</name>
  36. <tel>0534205046</tel>
  37. <companyrow>1</companyrow>
  38. <period>1</period>
  39. <empty/>
  40. <president>백운이</president>
  41. <email>acc@hmail.knu.ac.kr</email>
  42. <totcnt/>
  43. <totpayamt/>
  44. <totneedpay/>
  45. <tottaxpay/>
  46. <totincmtax/>
  47. <totresdntax/>
  48. <totsumtax/>
  49. <totfreetax/>
  50. </fileparams>
  51. </send>
  52. <init>
  53. </init>
  54. <hidden>
  55. <resultflag/>
  56. </hidden>
  57. <temp>
  58. <filelist/>
  59. </temp>
  60. </root>
  61. </instance>
  62. <bind id="bind1" ref="/root/send/fileparams/totcnt" calculate="sum(/root/main/list/etcorchlist/cnt)"/>
  63. <bind id="bind2" ref="/root/send/fileparams/totpayamt" calculate="sum(/root/main/list/etcorchlist/paytotamt)"/>
  64. <bind id="bind3" ref="/root/send/fileparams/totneedpay" calculate="sum(/root/main/list/etcorchlist/needpay)"/>
  65. <bind id="bind4" ref="/root/send/fileparams/tottaxpay" calculate="sum(/root/main/list/etcorchlist/taxpay)"/>
  66. <bind id="bind5" ref="/root/send/fileparams/totincmtax" calculate="sum(/root/main/list/etcorchlist/incmtax)"/>
  67. <bind id="bind6" ref="/root/send/fileparams/totresdntax" calculate="sum(/root/main/list/etcorchlist/resdntax)"/>
  68. <bind id="bind7" ref="/root/send/fileparams/totsumtax" calculate="sum(/root/main/list/etcorchlist/sumtax)"/>
  69. <bind id="bind8" ref="/root/send/fileparams/totfreetax" calculate="sum(/root/main/list/etcorchlist/freetax)"/>
  70. <submission id="TRRAT00511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqparams" resultref="/root/main/list"/>
  71. <submission id="TRRAT00512" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send/fileparams" resultref="/root/temp"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  77. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  78. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. // 2011.09.26 cyw 해당실무자만이 메뉴접근 가능하도록 수정.
  82. misfComboComCdList("030R0018",cmb_gruptype);
  83. var cnt = getNodesetCount("/root/init/cmb_gruptype/comcodelist");
  84. var chk = 0;
  85. for(var i = 1; i <= cnt; i++ ){
  86. if( model.getValue("/root/init/cmb_gruptype/comcodelist[" + i + "]/cdid") == getUserId() ){
  87. chk++;
  88. }
  89. }
  90. if( chk > 0 ){
  91. group2.disabled = false;
  92. }else{
  93. group2.disabled = true;
  94. messageBox("해당 화면에 권한이 없습니다.", "C000");
  95. }
  96. misfComboInstCdListMulti("cmb_instcd", getCurrentDate(), "", "N");
  97. var today = getCurrentDate();
  98. // var cur_yymm = parseInt(today.substring(0, 6));
  99. model.setValue("/root/send/reqparams/frdd", today);
  100. model.setValue("/root/send/reqparams/todd", today);
  101. //2011.08.31 cyw 통합으로 조회되도록 수정
  102. addComboItem("cmb_instcd", "통합(본원+칠곡)", "all", "above");
  103. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  104. model.setValue("/root/send/reqparams/chrgflag", "B");
  105. model.refresh();
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body guideline="2,763;" style="margin-left:8; margin-right:8; ">
  110. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">전자매체생성</caption>
  112. </group>
  113. <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:748px; ">
  114. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1193px; height:38px; background-color:#fffbf2; border-color:#ffd799; "/>
  115. <button id="btn_search" class="btn1_letter2" style="left:1117px; top:13px; width:56px; height:22px; ">
  116. <caption>조회</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. model.removeNodeset("/root/main/list/etcorchlist");
  120. submit("TRRAT00511");
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line13" class="line_4" style="x1:1095px; y1:13px; x2:1095px; y2:34px; "/>
  125. <caption id="cap_payinst" class="search_name" style="left:15px; top:16px; width:86px; height:17px; ">소속기관 :</caption>
  126. <select1 id="cmb_instcd" ref="/root/send/reqparams/instcd" class="combo_s_essential" appearance="minimal" style="left:106px; top:15px; width:134px; height:19px; ">
  127. <choices>
  128. <itemset>
  129. <label/>
  130. <value/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <caption id="caption22" class="search_name" style="left:275px; top:15px; width:86px; height:17px; ">조회기간 :</caption>
  135. <input id="frdd" ref="/root/send/reqparams/frdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:365px; top:15px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  136. <caption id="caption4" style="left:473px; top:17px; width:15px; height:20px; text-align:center; ">~</caption>
  137. <input id="todd" ref="/root/send/reqparams/todd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:496px; top:15px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  138. <caption id="caption29" class="search_name" style="left:625px; top:15px; width:90px; height:17px; ">소득구분 :</caption>
  139. <select1 id="rdo_chrgflag" ref="/root/send/reqparams/chrgflag" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:717px; top:15px; width:243px; height:20px; vertical-align:middle; border-style:none; ">
  140. <choices>
  141. <item>
  142. <label>사업소득</label>
  143. <value>B</value>
  144. </item>
  145. <item>
  146. <label>기타소득</label>
  147. <value>C</value>
  148. </item>
  149. <item>
  150. <label>일용소득</label>
  151. <value>A</value>
  152. </item>
  153. </choices>
  154. </select1>
  155. <caption id="caption28" class="tit_2" style="left:5px; top:53px; width:209px; height:13px; ">전자매체생성</caption>
  156. <line id="line193" class="line_1" style="x1:0px; y1:69px; x2:1190px; y2:69px; "/>
  157. <caption id="caption1" class="cell_1" style="left:0px; top:74px; width:97px; height:23px; text-align:center; vertical-align:middle; ">법인명(상호)</caption>
  158. <input id="input1" ref="/root/send/fileparams/companynm" class="input_default" style="left:100px; top:76px; width:150px; height:19px; text-align:left; "/>
  159. <caption id="caption9" class="cell_1" style="left:254px; top:74px; width:97px; height:23px; text-align:center; vertical-align:middle; ">사업자등록번호</caption>
  160. <input id="input2" ref="/root/send/fileparams/companyno" class="input_default" style="left:354px; top:76px; width:150px; height:19px; text-align:left; "/>
  161. <caption id="caption13" class="cell_1" style="left:508px; top:74px; width:97px; height:23px; text-align:center; vertical-align:middle; ">홈택스 ID</caption>
  162. <input id="input6" ref="/root/send/fileparams/hometaxid" class="input_default" style="left:608px; top:76px; width:150px; height:19px; text-align:left; "/>
  163. <caption id="caption10" class="cell_1" style="left:0px; top:99px; width:97px; height:23px; text-align:center; vertical-align:middle; ">담당자 성명</caption>
  164. <input id="input3" ref="/root/send/fileparams/name" class="input_default" style="left:100px; top:101px; width:150px; height:19px; text-align:left; "/>
  165. <caption id="caption11" class="cell_1" style="left:254px; top:99px; width:97px; height:23px; text-align:center; vertical-align:middle; ">담당자 부서</caption>
  166. <input id="input4" ref="/root/send/fileparams/deptnm" class="input_default" style="left:354px; top:101px; width:150px; height:19px; text-align:left; "/>
  167. <caption id="caption12" class="cell_1" style="left:508px; top:99px; width:97px; height:23px; text-align:center; vertical-align:middle; ">담당자 전화번호</caption>
  168. <input id="input5" ref="/root/send/fileparams/tel" class="input_default" style="left:608px; top:101px; width:150px; height:19px; text-align:left; "/>
  169. <button id="btn_save" class="btn4_letter6" style="left:1084px; top:77px; width:104px; height:22px; ">
  170. <caption>전산매체생성</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. var tempfilenm = "";
  174. var param = "";
  175. var strEntrregno = model.getValue("/root/send/fileparams/companyno");
  176. if(model.getValue("/root/send/reqparams/chrgflag") == "B"){ //사업소득
  177. tempfilenm = "F" + strEntrregno.substr(0,7) + "." + strEntrregno.substr(7,3);
  178. model.setValue("/root/send/fileparams/type", "24");
  179. model.setValue("/root/send/fileparams/companynmsize", "30");
  180. model.setValue("/root/send/fileparams/empty", "25");
  181. }else if(model.getValue("/root/send/reqparams/chrgflag") == "C"){ //기타소득
  182. tempfilenm = "G" + strEntrregno.substr(0,7) + "." + strEntrregno.substr(7,3);
  183. model.setValue("/root/send/fileparams/type", "23");
  184. model.setValue("/root/send/fileparams/companynmsize", "30");
  185. model.setValue("/root/send/fileparams/empty", "5");
  186. }else if(model.getValue("/root/send/reqparams/chrgflag") == "A"){ //일용소득
  187. tempfilenm = "I" + strEntrregno.substr(0,7) + "." + strEntrregno.substr(7,3);
  188. model.setValue("/root/send/fileparams/type", "28");
  189. model.setValue("/root/send/fileparams/companynmsize", "40");
  190. model.setValue("/root/send/fileparams/empty", "64");
  191. }
  192. var fileName = window.fileDialog ("save", "", false, tempfilenm, "", "All Files (*.*)|*.*|Text Files(*.txt)|*.txt");
  193. if(tempfilenm != "" && fileName != "") {
  194. param += "&instcd=" + model.getValue("/root/send/reqparams/instcd");
  195. param += "&chrgflag=" + model.getValue("/root/send/reqparams/chrgflag");
  196. param += "&frdd=" + model.getValue("/root/send/reqparams/frdd");
  197. param += "&todd=" + model.getValue("/root/send/reqparams/todd");
  198. param += "&type=" + model.getValue("/root/send/fileparams/type");
  199. param += "&taxoffice=" + model.getValue("/root/send/fileparams/taxoffice");
  200. param += "&presenter=" + model.getValue("/root/send/fileparams/presenter");
  201. param += "&presenterno=" + model.getValue("/root/send/fileparams/presenterno");
  202. param += "&hometaxid=" + model.getValue("/root/send/fileparams/hometaxid");
  203. param += "&taxprgcode=" + model.getValue("/root/send/fileparams/taxprgcode");
  204. param += "&companyno=" + model.getValue("/root/send/fileparams/companyno");
  205. param += "&companynm=" + model.getValue("/root/send/fileparams/companynm");
  206. param += "&companynmsize=" + model.getValue("/root/send/fileparams/companynmsize");
  207. param += "&deptnm=" + model.getValue("/root/send/fileparams/deptnm");
  208. param += "&name=" + model.getValue("/root/send/fileparams/name");
  209. param += "&tel=" + model.getValue("/root/send/fileparams/tel");
  210. param += "&companyrow=" + model.getValue("/root/send/fileparams/companyrow");
  211. param += "&period=" + model.getValue("/root/send/fileparams/period");
  212. param += "&empty=" + model.getValue("/root/send/fileparams/empty");
  213. param += "&president=" + model.getValue("/root/send/fileparams/president");
  214. param += "&email=" + model.getValue("/root/send/fileparams/email");
  215. param += "&totcnt=" + model.getValue("/root/send/fileparams/totcnt");
  216. param += "&totpayamt=" + model.getValue("/root/send/fileparams/totpayamt");
  217. param += "&totfreetax=" + model.getValue("/root/send/fileparams/totfreetax");
  218. param += "&totneedpay=" + model.getValue("/root/send/fileparams/totneedpay");
  219. param += "&tottaxpay=" + model.getValue("/root/send/fileparams/tottaxpay");
  220. param += "&totincmtax=" + model.getValue("/root/send/fileparams/totincmtax");
  221. param += "&totresdntax=" + model.getValue("/root/send/fileparams/totresdntax");
  222. param += "&totsumtax=" + model.getValue("/root/send/fileparams/totsumtax");
  223. model.download(getActionURL("TRRAT00512") + encodeURI(param), fileName, true);
  224. window.exec("notepad.exe", fileName);
  225. }
  226. ]]>
  227. </script>
  228. </button>
  229. <caption id="caption14" class="cell_1" style="left:0px; top:127px; width:70px; height:23px; text-align:center; vertical-align:middle; ">구 분</caption>
  230. <caption id="caption19" class="cell_1" style="left:0px; top:151px; width:70px; height:20px; text-align:center; vertical-align:middle; ">합 계</caption>
  231. <line id="line10" class="line_3" style="x1:71px; y1:127px; x2:71px; y2:171px; "/>
  232. <caption id="caption15" class="cell_1" style="left:73px; top:127px; width:46px; height:23px; text-align:center; vertical-align:middle; ">건수</caption>
  233. <output id="output6" ref="/root/send/fileparams/totcnt" format="(-)#,###" style="left:73px; top:151px; width:46px; height:19px; text-align:right; margin-right:1; "/>
  234. <line id="line11" class="line_3" style="x1:120px; y1:127px; x2:120px; y2:171px; "/>
  235. <caption id="caption18" class="cell_1" style="left:122px; top:127px; width:97px; height:23px; text-align:center; vertical-align:middle; ">총지급금액</caption>
  236. <output id="output8" ref="/root/send/fileparams/totpayamt" format="(-)#,###.##" style="left:122px; top:151px; width:97px; height:19px; text-align:right; margin-right:1; "/>
  237. <line id="line1" class="line_3" style="x1:220px; y1:127px; x2:220px; y2:171px; "/>
  238. <caption id="caption2" class="cell_1" style="left:222px; top:127px; width:97px; height:23px; text-align:center; vertical-align:middle; ">총필요경비</caption>
  239. <output id="output1" ref="/root/send/fileparams/totneedpay" format="(-)#,###.##" style="left:222px; top:151px; width:97px; height:19px; text-align:right; margin-right:1; "/>
  240. <line id="line2" class="line_3" style="x1:320px; y1:127px; x2:320px; y2:171px; "/>
  241. <caption id="caption3" class="cell_1" style="left:322px; top:127px; width:97px; height:23px; text-align:center; vertical-align:middle; ">총소득금액</caption>
  242. <line id="line3" class="line_3" style="x1:420px; y1:127px; x2:420px; y2:171px; "/>
  243. <output id="output2" ref="/root/send/fileparams/tottaxpay" format="(-)#,###.##" style="left:322px; top:151px; width:97px; height:19px; text-align:right; margin-right:1; "/>
  244. <caption id="caption5" class="cell_1" style="left:422px; top:127px; width:97px; height:23px; text-align:center; vertical-align:middle; ">총소득세</caption>
  245. <line id="line4" class="line_3" style="x1:520px; y1:127px; x2:520px; y2:171px; "/>
  246. <output id="output3" ref="/root/send/fileparams/totincmtax" format="(-)#,###.##" style="left:422px; top:151px; width:97px; height:19px; text-align:right; margin-right:1; "/>
  247. <caption id="caption7" class="cell_1" style="left:522px; top:127px; width:87px; height:23px; text-align:center; vertical-align:middle; ">총주민세</caption>
  248. <line id="line5" class="line_3" style="x1:610px; y1:127px; x2:610px; y2:171px; "/>
  249. <output id="output4" ref="/root/send/fileparams/totresdntax" format="(-)#,###.##" style="left:522px; top:151px; width:87px; height:19px; text-align:right; margin-right:1; "/>
  250. <caption id="caption8" class="cell_1" style="left:612px; top:127px; width:97px; height:23px; text-align:center; vertical-align:middle; ">총원천징수세액</caption>
  251. <line id="line6" class="line_3" style="x1:710px; y1:127px; x2:710px; y2:171px; "/>
  252. <output id="output5" ref="/root/send/fileparams/totsumtax" format="(-)#,###.##" style="left:612px; top:151px; width:97px; height:19px; text-align:right; margin-right:1; "/>
  253. <datagrid id="grd_etcorchlist" nodeset="/root/main/list/etcorchlist" dragmode="true" caption="소득자명^건수^지급금액^필요경비^소득금액^소득세^주민세^원천징수세액^주민번호^주소^사업장 상호^사업자번호^사업자주소" colsep="^" colwidth="70, 50, 100, 100, 100, 100, 90, 100, 120, 300, 150, 120, 250" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheight="16" rowsep="|" style="left:0px; top:176px; width:1190px; height:567px; ">
  254. <col disabled="true" ref="name" style="text-align:center; "/>
  255. <col disabled="true" ref="cnt" style="text-align:center; "/>
  256. <col disabled="true" ref="paytotamt" format="#,###.##" style="text-align:right; "/>
  257. <col disabled="true" ref="needpay" format="#,###.##" style="text-align:right; "/>
  258. <col disabled="true" ref="taxpay" format="#,###.##" style="text-align:right; "/>
  259. <col disabled="true" ref="incmtax" format="#,###.##" style="text-align:right; "/>
  260. <col disabled="true" ref="resdntax" format="#,###.##" style="text-align:right; "/>
  261. <col disabled="true" ref="sumtax" format="#,###.##" style="text-align:right; "/>
  262. <col disabled="true" ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  263. <col disabled="true" ref="addr" style="text-align:left; "/>
  264. <col disabled="true" ref="custnm" style="text-align:center; "/>
  265. <col disabled="true" ref="entrregno" format="999-99-99999" style="text-align:center; "/>
  266. <col disabled="true" ref="custaddr" style="text-align:left; "/>
  267. </datagrid>
  268. <line id="line7" class="line_3" style="x1:0px; y1:70px; x2:0px; y2:172px; "/>
  269. <line id="line8" class="line_3" style="x1:0px; y1:124px; x2:1189px; y2:124px; "/>
  270. <line id="line9" class="line_3" style="x1:1189px; y1:124px; x2:1189px; y2:173px; "/>
  271. <caption id="caption16" class="cell_1" style="left:762px; top:74px; width:97px; height:23px; text-align:center; vertical-align:middle; ">대표자 성명</caption>
  272. <input id="input7" ref="/root/send/fileparams/president" class="input_default" style="left:862px; top:76px; width:150px; height:19px; text-align:left; "/>
  273. <caption id="caption17" class="cell_1" style="left:508px; top:99px; width:97px; height:23px; text-align:center; vertical-align:middle; ">담당자 전화번호</caption>
  274. <input id="input8" ref="/root/send/fileparams/tel" class="input_default" style="left:608px; top:101px; width:150px; height:19px; text-align:left; "/>
  275. <input id="input9" ref="/root/send/fileparams/email" class="input_default" style="left:862px; top:101px; width:150px; height:19px; text-align:left; "/>
  276. <caption id="caption20" class="cell_1" style="left:762px; top:99px; width:97px; height:23px; text-align:center; vertical-align:middle; ">E-MAIL</caption>
  277. <line id="line12" class="line_3" style="x1:0px; y1:173px; x2:1190px; y2:173px; "/>
  278. <select1 id="cmb_gruptype" ref="/root/send/reqparams/groupid" class="combo_s_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:135px; top:45px; width:66px; height:19px; ">
  279. <choices>
  280. <itemset nodeset="/root/init/cmb_gruptype/comcodelist">
  281. <label ref="cdnm"/>
  282. <value ref="cdid"/>
  283. </itemset>
  284. </choices>
  285. </select1>
  286. </group>
  287. <!--
  288. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
  289. -->
  290. </xhtml:body>
  291. </xhtml:html>