SMRAT01100_부가세명세서.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <addtexlist/>
  12. <texlist/>
  13. </list>
  14. </main>
  15. <send>
  16. <taxbillkind>1</taxbillkind>
  17. <entrregno/>
  18. <frdate/>
  19. <todate/>
  20. <instcd/>
  21. <custnm/>
  22. <taxbillflag/>
  23. <retrparam>
  24. <frdate/>
  25. <todate/>
  26. <title/>
  27. <instnm/>
  28. <sumflag/>
  29. </retrparam>
  30. <reptkind>entrregno</reptkind>
  31. <yyyy/>
  32. <sortflag>entrregno</sortflag>
  33. <sumflag>Y</sumflag>
  34. </send>
  35. <init>
  36. <init_taxbillflag>
  37. <item>
  38. <label>매입</label>
  39. <value>1</value>
  40. </item>
  41. <item>
  42. <label>매출</label>
  43. <value>2</value>
  44. </item>
  45. </init_taxbillflag>
  46. <init_reptkind>
  47. <item>
  48. <label>1기예정</label>
  49. <value>1</value>
  50. </item>
  51. <item>
  52. <label>1기확정</label>
  53. <value>2</value>
  54. </item>
  55. <item>
  56. <label>2기예정</label>
  57. <value>3</value>
  58. </item>
  59. <item>
  60. <label>2기확정</label>
  61. <value>4</value>
  62. </item>
  63. </init_reptkind>
  64. </init>
  65. <temp/>
  66. <hidden>
  67. <cardinalnumberinfo>
  68. <cardinalnumber/>
  69. </cardinalnumberinfo>
  70. </hidden>
  71. </root>
  72. </instance>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  80. <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/>
  81. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. fInitialize();
  85. ]]>
  86. </script>
  87. <script type="javascript">
  88. <![CDATA[
  89. function fInitialize()
  90. {
  91. model.setValue("/root/send/yyyy", getCurrentDate().substr(0, 4));
  92. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  93. model.setValue("/root/send/retrparam/instnm", getUserInfo("dutplceinstnm"));
  94. model.removenode("/root/main/list/texlist");
  95. model.removenode("/root/main/list/addtexlist");
  96. model.setValue("/root/send/taxbillflag", "1");
  97. fSetReptKind();
  98. fSetDate();
  99. fCheckAuth();
  100. }
  101. function fSetReptKind()
  102. {
  103. var sMonth = getCurrentDate().substr(4, 2);
  104. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  105. {
  106. model.setValue("/root/send/reptkind", "1");
  107. }
  108. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  109. {
  110. model.setValue("/root/send/reptkind", "2");
  111. }
  112. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  113. {
  114. model.setValue("/root/send/reptkind", "3");
  115. }
  116. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  117. {
  118. model.setValue("/root/send/reptkind", "4");
  119. }
  120. model.refresh();
  121. }
  122. function fSetDate()
  123. {
  124. if(model.getValue("/root/send/yyyy").length != 4)
  125. {
  126. messageBox("년도가 잘못되었습니다.", "I999");
  127. return;
  128. }
  129. var sReptKind = model.getValue("/root/send/reptkind");
  130. if(sReptKind == "1")
  131. {
  132. model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0101");
  133. model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0331");
  134. }
  135. else if(sReptKind == "2")
  136. {
  137. model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0101");
  138. model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0630");
  139. }
  140. else if(sReptKind == "3")
  141. {
  142. model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0701");
  143. model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0930");
  144. }
  145. else if(sReptKind == "4")
  146. {
  147. model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0701");
  148. model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "1231");
  149. }
  150. model.refresh();
  151. }
  152. function fRetrieve()
  153. {
  154. submit("TRRAT01101");
  155. grd_addtexlist.subtotalposition = "below";
  156. grd_addtexlist.multitotals = true;
  157. grd_addtexlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
  158. grd_addtexlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
  159. grd_addtexlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
  160. grd_addtexlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", true);
  161. grd_texlist.subtotalposition = "below";
  162. grd_texlist.multitotals = true;
  163. grd_texlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
  164. grd_texlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
  165. grd_texlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
  166. grd_texlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "전 체 합 계", false);
  167. if(model.getValue(rdo_sumflag.attribute("ref")) == "Y")
  168. {
  169. grd_addtexlist.subtotal("sum", 3, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  170. grd_addtexlist.subtotal("sum", 3, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  171. grd_addtexlist.subtotal("sum", 3, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  172. grd_addtexlist.subtotal("sum", 3, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  173. grd_texlist.subtotal("sum", 3, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  174. grd_texlist.subtotal("sum", 3, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  175. grd_texlist.subtotal("sum", 3, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  176. grd_texlist.subtotal("sum", 3, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "합계", true);
  177. }
  178. grd_addtexlist.refresh();
  179. grd_texlist.refresh();
  180. }
  181. function fCheckAuth()
  182. {
  183. btn_search.disabled = !checkAuth("R") ;
  184. }
  185. ]]>
  186. </script>
  187. <submission id="TRRAT01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  188. </model>
  189. </xhtml:head>
  190. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  191. <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; ">
  192. <caption id="cap_6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">부가세 명세서</caption>
  193. <caption id="cap_4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  194. </group>
  195. <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  196. <switch id="swt_1" class="sw_box" style="left:0px; top:125px; width:1195px; height:614px; border-style:solid; ">
  197. <case id="case1" selected="true">
  198. <caption id="cap_21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">세금계산서</caption>
  199. <line id="lin_3" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  200. <datagrid id="grd_addtexlist" nodeset="/root/main/list/addtexlist" backcoloralternate="#ffffff" caption="사 업 자 등 록 번 호^상 호 (법 인 명)^subtotal^작 성 일^거 래 횟 수^ 공 급 가 액^세 액^합 계" colwidth="180, 180, 0, 180, 80, 160, 160, 160" mergecells="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:580px; ">
  201. <col ref="entrregno" format="999-99-99999" style="text-align:center; vertical-align:top; padding-top:3; "/>
  202. <col ref="custnm" style="text-align:left; vertical-align:top; padding-left:1; padding-top:3; "/>
  203. <col ref="custnm" visiblity="hidden"/>
  204. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
  205. <col ref="countnum" style="text-align:center; "/>
  206. <col ref="suplamt" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  207. <col ref="valaddtax" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  208. <col ref="amt" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  209. </datagrid>
  210. <button id="btn_5" class="btn2_letter4" style="left:1128px; top:4px; width:64px; height:19px; text-align:left; ">
  211. <caption>엑셀출력</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. //misfSaveExcel(grd_texlist);
  215. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  216. grd_texlist.saveExcel(fileName,"SheetName:sheet1");
  217. ]]>
  218. </script>
  219. </button>
  220. </case>
  221. <case id="case2">
  222. <caption id="cap_5" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">계 산 서</caption>
  223. <datagrid id="grd_texlist" nodeset="/root/main/list/texlist" caption="사 업 자 등 록 번 호^상 호 (법 인 명)^subtotal^작 성 일^거 래 횟 수^ 공 급 가 액^세 액^합 계" colwidth="200, 200, 0, 200, 100, 200, 200, 0" mergecells="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:580px; ">
  224. <col ref="entrregno" format="999-99-99999" style="text-align:center; vertical-align:top; padding-top:3; "/>
  225. <col ref="custnm" style="text-align:left; vertical-align:top; padding-left:1; padding-top:3; "/>
  226. <col ref="custnm" visiblity="hidden"/>
  227. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
  228. <col ref="countnum" style="text-align:center; "/>
  229. <col ref="suplamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  230. <col ref="valaddtax" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  231. <col ref="amt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  232. </datagrid>
  233. <line id="lin_1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  234. <button id="btn_7" class="btn2_letter4" style="left:1128px; top:4px; width:64px; height:19px; text-align:left; ">
  235. <caption>엑셀출력</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. misfSaveExcel(grd_addtexlist);
  239. ]]>
  240. </script>
  241. </button>
  242. </case>
  243. </switch>
  244. <button id="btn_1" class="btn_sw" group="tab" selected="true" style="left:73px; top:104px; width:73px; height:22px; ">
  245. <caption>계 산 서</caption>
  246. <toggle case="case2" ev:event="onclick"/>
  247. </button>
  248. <button id="btn_65" class="btn_sw" group="tab" selected="true" style="left:0px; top:104px; width:73px; height:22px; ">
  249. <caption>세금계산서</caption>
  250. <toggle case="case1" ev:event="onclick"/>
  251. </button>
  252. <group id="group4" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; ">
  253. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  254. <caption id="caption9" class="search_name" style="left:295px; top:9px; width:106px; height:17px; ">신고 유형 :</caption>
  255. <caption id="caption2" class="search_name" style="left:10px; top:9px; width:101px; height:17px; ">년 도 :</caption>
  256. <caption id="caption8" style="left:938px; top:11px; width:15px; height:20px; ">~</caption>
  257. <caption id="caption10" class="search_name" style="left:750px; top:10px; width:86px; height:17px; ">작성일자 :</caption>
  258. <caption id="caption1" class="search_name" style="left:295px; top:36px; width:99px; height:17px; ">사업자번호 :</caption>
  259. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:31px; width:56px; height:22px; text-align:left; ">
  260. <caption>조회</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. fRetrieve();
  264. //alert(model.getValue("/root/send/entrregno"));
  265. ]]>
  266. </script>
  267. </button>
  268. <line id="line10" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:86px; "/>
  269. <caption id="caption5" class="search_name" style="left:10px; top:36px; width:109px; height:17px; ">계산서구분 :</caption>
  270. <select1 id="rdo_reptkind" ref="/root/send/reptkind" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:400px; top:10px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
  271. <choices>
  272. <itemset nodeset="/root/init/init_reptkind/item">
  273. <label ref="label"/>
  274. <value ref="value"/>
  275. </itemset>
  276. </choices>
  277. <script type="javascript" ev:event="xforms-value-changed">
  278. <![CDATA[
  279. fSetDate();
  280. fRetrieve();
  281. ]]>
  282. </script>
  283. </select1>
  284. <input id="ipt_frdate" ref="/root/send/frdate" class="input_s_essential" editable="false" inputtype="date" style="left:840px; top:9px; width:95px; height:19px; ">
  285. <script type="javascript" ev:event="xforms-value-changed">
  286. <![CDATA[
  287. ]]>
  288. </script>
  289. </input>
  290. <input id="ipt_todate" ref="/root/send/todate" class="input_s_essential" editable="false" inputtype="date" style="left:952px; top:9px; width:95px; height:19px; "/>
  291. <select1 id="rdo_billflag" ref="/root/send/taxbillflag" class="radio_search" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:115px; top:36px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  292. <choices>
  293. <itemset nodeset="/root/init/init_taxbillflag/item">
  294. <label ref="label"/>
  295. <value ref="value"/>
  296. </itemset>
  297. </choices>
  298. <script type="javascript" ev:event="xforms-value-changed">
  299. <![CDATA[
  300. fRetrieve();
  301. ]]>
  302. </script>
  303. </select1>
  304. <button id="btn_entregnohelp" class="icon_search" style="left:504px; top:36px; width:16px; height:16px; ">
  305. <caption/>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
  309. model.refresh();
  310. ]]>
  311. </script>
  312. </button>
  313. <input id="ipt_regno" ref="/root/send/entrregno" navindex="5" format="999-99-99999" style="left:400px; top:36px; width:100px; height:19px; text-align:center; ">
  314. <script type="javascript" ev:event="onkeypress">
  315. <![CDATA[
  316. if(event.keyCode == 13)
  317. {
  318. racfCustValidCheck("entrregno,custnm", "code");
  319. }
  320. ]]>
  321. </script>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. racfCustValidCheck("entrregno,custnm", "code");
  325. ]]>
  326. </script>
  327. </input>
  328. <input id="ipt_regnm" ref="/root/send/custnm" navindex="6" imemode="hangul" style="left:524px; top:36px; width:160px; height:19px; ">
  329. <script type="javascript" ev:event="onkeypress">
  330. <![CDATA[
  331. if(event.keyCode == 13)
  332. {
  333. racfCustValidCheck("entrregno,custnm", "name");
  334. }
  335. ]]>
  336. </script>
  337. <script type="javascript" ev:event="xforms-value-changed">
  338. <![CDATA[
  339. racfCustValidCheck("entrregno,custnm", "name");
  340. ]]>
  341. </script>
  342. </input>
  343. <input id="ipt_yyyy" ref="/root/send/yyyy" class="input_s_essential" navindex="1" maxlength="4" style="left:115px; top:9px; width:135px; height:19px; text-align:center; "/>
  344. <select1 id="radio1" ref="/root/send/sortflag" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:840px; top:36px; width:265px; height:20px; vertical-align:middle; border-style:none; ">
  345. <choices>
  346. <item>
  347. <label>사업자등록번호</label>
  348. <value>entrregno</value>
  349. </item>
  350. <item>
  351. <label>상호</label>
  352. <value>custnm</value>
  353. </item>
  354. <item>
  355. <label>작성일</label>
  356. <value>genrdd</value>
  357. </item>
  358. </choices>
  359. <script type="javascript" ev:event="xforms-value-changed">
  360. <![CDATA[
  361. fSetDate();
  362. fRetrieve();
  363. ]]>
  364. </script>
  365. </select1>
  366. <caption id="caption3" class="search_name" style="left:750px; top:36px; width:106px; height:17px; ">정렬기준 :</caption>
  367. <caption id="caption4" class="search_name" style="left:750px; top:61px; width:106px; height:17px; ">합계출력 :</caption>
  368. <select1 id="rdo_sumflag" ref="/root/send/sumflag" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="2" style="left:840px; top:61px; width:265px; height:20px; vertical-align:middle; border-style:none; ">
  369. <choices>
  370. <item>
  371. <label>합계 출력</label>
  372. <value>Y</value>
  373. </item>
  374. <item>
  375. <label>합계 출력 안함</label>
  376. <value>N</value>
  377. </item>
  378. </choices>
  379. </select1>
  380. </group>
  381. </group>
  382. <group id="grp_4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  383. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  384. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  385. <caption>출력</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. //fRetrieve();
  389. model.setValue("/root/send/reptkind",rdo_reptkind.label);
  390. model.setValue("/root/send/retrparam/frdate",model.getValue("/root/send/frdate").substr(0,4) + "-" + model.getValue("/root/send/frdate").substr(4,2) + "-" + model.getValue("/root/send/frdate").substr(6,2));
  391. model.setValue("/root/send/retrparam/todate",model.getValue("/root/send/todate").substr(0,4) + "-" + model.getValue("/root/send/todate").substr(4,2) + "-" + model.getValue("/root/send/todate").substr(6,2));
  392. model.setValue("/root/send/retrparam/sumflag", model.getValue(rdo_sumflag.attribute("ref")));
  393. if(swt_1.selectedIndex == 0)//세금계산서
  394. {
  395. //alert(instance1.selectNodes("/root/main/list/addtexlist").length);
  396. if(grd_addtexlist.rows == grd_addtexlist.fixedRows)
  397. {
  398. messageBox("출력할 내용이" ,"I004");
  399. return;
  400. }
  401. if(rdo_billflag.value == '2')//매출처별
  402. {
  403. model.setValue("/root/send/retrparam/title", " 매출처별 세금계산서 명세서 ");
  404. }
  405. else//매입처별
  406. {
  407. model.setValue("/root/send/retrparam/title", " 매입처별 세금계산서 명세서 ");
  408. }
  409. exeReportPreview("RPRAT01101", "XMLSTR", "/root/send/retrparam");
  410. }
  411. else//계산서
  412. {
  413. if(grd_texlist.rows == grd_texlist.fixedRows)
  414. {
  415. messageBox("출력할 내용이" ,"I004");
  416. return;
  417. }
  418. if(rdo_billflag.value == '2')//매출처별
  419. {
  420. model.setValue("/root/send/retrparam/title", " 매출처별 계산서 명세서 ");
  421. }
  422. else//매입처별
  423. {
  424. model.setValue("/root/send/retrparam/title", " 매입처별 계산서 명세서 ");
  425. }
  426. exeReportPreview("RPRAT01102", "XMLSTR", "/root/send/retrparam");
  427. }
  428. ]]>
  429. </script>
  430. </button>
  431. </group>
  432. </xhtml:body>
  433. </xhtml:html>