SMRAT00310_국세청자료Mapping.xrw 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983
  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>DTI-NU 중복 Mapping 검증</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <disconnected>
  11. <disconnectedlist/>
  12. </disconnected>
  13. <connectable>
  14. <connectablelist/>
  15. </connectable>
  16. <excel>
  17. <excellist/>
  18. </excel>
  19. </main>
  20. <send>
  21. <condition1>
  22. <instcd/>
  23. <fromdd/>
  24. <todd/>
  25. <taxbillkind>4</taxbillkind>
  26. <taxbillflag>1</taxbillflag>
  27. <entrregno/>
  28. <custnm/>
  29. </condition1>
  30. <condition2>
  31. <instcd/>
  32. <fromdd/>
  33. <todd/>
  34. <taxbillkind>4</taxbillkind>
  35. <taxbillflag>1</taxbillflag>
  36. <entrregno/>
  37. <custnm/>
  38. <suplamt/>
  39. <valaddtax/>
  40. <amt/>
  41. </condition2>
  42. <excel>
  43. <excellist/>
  44. </excel>
  45. <connectable>
  46. <connectablelist/>
  47. </connectable>
  48. <disconnected>
  49. <disconnectedlist/>
  50. </disconnected>
  51. </send>
  52. <init>
  53. <init_taxbillkind>
  54. <item>
  55. <label>세금계산서</label>
  56. <value>4</value>
  57. </item>
  58. <item>
  59. <label>계산서</label>
  60. <value>5</value>
  61. </item>
  62. </init_taxbillkind>
  63. <init_taxbillflag>
  64. <item>
  65. <label>매입</label>
  66. <value>1</value>
  67. </item>
  68. <item>
  69. <label>매출</label>
  70. <value>2</value>
  71. </item>
  72. </init_taxbillflag>
  73. <grd_disconnectedlist/>
  74. <init_reptkind>
  75. <item>
  76. <label>1기예정</label>
  77. <value>1</value>
  78. </item>
  79. <item>
  80. <label>1기확정</label>
  81. <value>2</value>
  82. </item>
  83. <item>
  84. <label>2기예정</label>
  85. <value>3</value>
  86. </item>
  87. <item>
  88. <label>2기확정</label>
  89. <value>4</value>
  90. </item>
  91. </init_reptkind>
  92. </init>
  93. <temp/>
  94. <hidden>
  95. <condition>
  96. <yyyy/>
  97. <reptkind/>
  98. <reptkind_1/>
  99. <autodate>Y</autodate>
  100. </condition>
  101. </hidden>
  102. </root>
  103. </instance>
  104. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  108. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  109. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  110. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  111. <script type="javascript" ev:event="xforms-ready">
  112. <![CDATA[
  113. fInitialize();
  114. ]]>
  115. </script>
  116. <script type="javascript">
  117. <![CDATA[
  118. function fInitialize()
  119. {
  120. model.removeNodeset(grd_disconnectedlist.nodeset);
  121. model.removeNodeset(grd_connectablelist.nodeset);
  122. model.setValue("/root/send/condition1/instcd", getUserInfo("dutplceinstcd"));
  123. model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
  124. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  125. model.setValue("/root/send/condition2/instcd", getUserInfo("dutplceinstcd"));
  126. model.setValue(ipt_fromdd_1.attribute("ref"), getCurrentDate());
  127. model.setValue(ipt_todd_1.attribute("ref"), getCurrentDate());
  128. grd_disconnectedlist.rowHeight(0) = 35;
  129. grd_connectablelist.rowHeight(0) = 35;
  130. model.setValue("/root/hidden/condition/yyyy", getCurrentDate().substr(0, 4));
  131. fSetReptKind();
  132. fSetDate(ipt_fromdd.attribute("ref"), ipt_todd.attribute("ref"),rdo_reptkind.attribute("ref"));
  133. fSetDate(ipt_fromdd_1.attribute("ref"), ipt_todd_1.attribute("ref"),rdo_reptkind_1.attribute("ref"));
  134. model.refresh();
  135. }
  136. function fSetReptKind()
  137. {
  138. var sMonth = getCurrentDate().substr(4, 2);
  139. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  140. {
  141. model.setValue("/root/hidden/condition/reptkind", "1");
  142. model.setValue("/root/hidden/condition/reptkind_1", "1");
  143. }
  144. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  145. {
  146. model.setValue("/root/hidden/condition/reptkind", "2");
  147. model.setValue("/root/hidden/condition/reptkind_1", "2");
  148. }
  149. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  150. {
  151. model.setValue("/root/hidden/condition/reptkind", "3");
  152. model.setValue("/root/hidden/condition/reptkind_1", "3");
  153. }
  154. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  155. {
  156. model.setValue("/root/hidden/condition/reptkind", "4");
  157. model.setValue("/root/hidden/condition/reptkind_1", "4");
  158. }
  159. model.refresh();
  160. }
  161. function fInputExcel(pGrid)
  162. {
  163. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  164. if(fileName != "") {
  165. pGrid.loadExcel(fileName, 1, true);
  166. pGrid.deleteRow(1);
  167. pGrid.deleteRow(1);
  168. pGrid.deleteRow(1);
  169. pGrid.deleteRow(1);
  170. pGrid.deleteRow(1);
  171. pGrid.deleteRow(1);
  172. pGrid.rebuild();
  173. return true;
  174. }
  175. return false;
  176. }
  177. function fAutoSearch(vRow, SearchFlag)
  178. {
  179. if(SearchFlag == "Y")
  180. {
  181. if(model.getValue("/root/hidden/condition/autodate") == "Y")
  182. {
  183. model.setValue(ipt_fromdd_1.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("makedd")));
  184. model.setValue(ipt_todd_1.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("makedd")));
  185. }
  186. model.setValue(ipt_entrregno.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("custcd")));
  187. model.setValue(ipt_custnm.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("custnm")));
  188. model.setValue(rdo_taxbillflag.attribute("ref"), grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("etaxbillflag")));
  189. model.refresh();
  190. btn_search_1.dispatch("DOMActivate");
  191. }
  192. for(var i = grd_connectablelist.fixedRows ; i < grd_connectablelist.rows ; i++)
  193. {//alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("suplamt")));
  194. //alert(grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("suplamt")));
  195. if( grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("custcd")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("entrregno"))
  196. && grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("suplamt")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("suplamt"))
  197. && grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("valaddtax")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("valaddtax"))
  198. && grd_disconnectedlist.valueMatrix(vRow, grd_disconnectedlist.colRef("amt")) == grd_connectablelist.valueMatrix(i, grd_connectablelist.colRef("amt")))
  199. { //alert();
  200. grd_connectablelist.rowstyle(i, "data", "background-color") = "#ffff00";
  201. grd_disconnectedlist.rowstyle(vRow, "data", "background-color") = "#ffff00";
  202. }
  203. }
  204. model.refresh();
  205. }
  206. function fSetDate(vFromdd, vTodd, vReptKind)
  207. {
  208. if(model.getValue("/root/hidden/condition/yyyy").length != 4)
  209. {
  210. messageBox("년도가 잘못되었습니다.", "I999");
  211. return;
  212. }
  213. var sReptKind = model.getValue(vReptKind);
  214. var vYYYY = model.getValue("/root/hidden/condition/yyyy");
  215. if(sReptKind == "1")
  216. {
  217. model.setValue(vFromdd, vYYYY + "0101");
  218. model.setValue(vTodd, vYYYY + "0331");
  219. }
  220. else if(sReptKind == "2")
  221. {
  222. model.setValue(vFromdd, vYYYY + "0401");
  223. model.setValue(vTodd, vYYYY + "0630");
  224. }
  225. else if(sReptKind == "3")
  226. {
  227. model.setValue(vFromdd, vYYYY + "0701");
  228. model.setValue(vTodd, vYYYY + "0930");
  229. }
  230. else if(sReptKind == "4")
  231. {
  232. model.setValue(vFromdd, vYYYY + "1001");
  233. model.setValue(vTodd, vYYYY + "1231");
  234. }
  235. model.refresh();
  236. }
  237. ]]>
  238. </script>
  239. <bind id="bindSecPageCnt" ref="/root/send/printparams/secPageCnt" calculate="count(/root/main/printlist/secpage)"/>
  240. <bind id="bindAllEtcProf" ref="/root/send/printparams/allEtcProf" calculate="count(/root/main/list/etcproflist)"/>
  241. <bind id="bindAllCount" ref="/root/send/printparams/allCount" calculate="sum(/root/main/list/etcproflist/cnt)"/>
  242. <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/etcproflist/paytotamt)"/>
  243. <bind id="bindProfTax" ref="/root/send/printparams/profTax" calculate="sum(/root/main/list/etcproflist/proftax)"/>
  244. <bind id="bindIncmTax" ref="/root/send/printparams/incmTax" calculate="sum(/root/main/list/etcproflist/incmtax)"/>
  245. <bind id="bindResdnTax" ref="/root/send/printparams/resdnTax" calculate="sum(/root/main/list/etcproflist/resdntax)"/>
  246. <bind id="bindSumAmt" ref="/root/send/printparams/sumAmt" calculate="sum(/root/main/list/etcproflist/sumamt)"/>
  247. <bind id="bindPayAmt" ref="/root/send/printparams/payAmt" calculate="sum(/root/main/list/etcproflist/payamt)"/>
  248. <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/etcproflist[chk='Y']/chk)"/>
  249. <submission id="TRRAT00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition1" resultref="/root/main/disconnected"/>
  250. <submission id="TXRAT00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/excel/excellist" resultref="/root/temp"/>
  251. <submission id="TRRAT00312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/main/connectable"/>
  252. <submission id="TXRAT00312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/connectable/connectablelist" resultref="/root/temp"/>
  253. <submission id="TXRAT00313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition1" resultref="/root/temp"/>
  254. <submission id="TXRAT00314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/disconnected/disconnectedlist" resultref="/root/temp"/>
  255. </model>
  256. </xhtml:head>
  257. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  258. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  259. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">국세청 승인 자료 일괄 mapping</caption>
  260. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  261. </group>
  262. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
  263. <group id="grp_sea" style="left:0px; top:30px; width:595px; height:85px; vertical-align:top; ">
  264. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:595px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  265. <line id="line5" class="line_4" style="x1:509px; y1:34px; x2:509px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  266. <caption id="caption1" class="search_name" style="left:5px; top:35px; width:105px; height:17px; ">조 회 일 자 :</caption>
  267. <input id="ipt_fromdd" ref="/root/send/condition1/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:34px; width:100px; height:19px; text-align:center; ">
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. model.setValue(rdo_reptkind.attribute("ref"), "");
  271. // model.setValue(ipt_fromdd_1.attribute("ref"), model.getValue(ipt_fromdd.attribute("ref")));
  272. // ipt_fromdd_1.refresh();
  273. ]]>
  274. </script>
  275. </input>
  276. <caption id="caption2" style="left:212px; top:36px; width:15px; height:20px; ">~</caption>
  277. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:525px; top:35px; width:56px; height:22px; text-align:left; ">
  278. <caption>조회</caption>
  279. <script type="javascript" ev:event="DOMActivate">
  280. <![CDATA[
  281. model.removeNodeset(grd_disconnectedlist.nodeset);
  282. grd_disconnectedlist.refresh();
  283. submit("TRRAT00311");
  284. for(var i = grd_disconnectedlist.fixedRows ; i < grd_disconnectedlist.rows ; i++)
  285. {
  286. grd_disconnectedlist.isReadOnly(i, grd_disconnectedlist.colRef("instaxknd")) = true;
  287. if(grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("custregflag")) == "N")
  288. {
  289. grd_disconnectedlist.cellStyle("background-color", i, grd_disconnectedlist.colRef("custcd")) = "#ff6600";
  290. }
  291. }
  292. model.refresh();
  293. ]]>
  294. </script>
  295. </button>
  296. <input id="ipt_todd" ref="/root/send/condition1/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:225px; top:34px; width:100px; height:19px; text-align:center; ">
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. model.setValue(rdo_reptkind.attribute("ref"), "");
  300. // model.setValue(ipt_todd_1.attribute("ref"), model.getValue(ipt_todd.attribute("ref")));
  301. // ipt_todd_1.refresh();
  302. ]]>
  303. </script>
  304. </input>
  305. <select1 id="rdo_billflag" ref="/root/send/condition1/taxbillflag" class="radio_search" disabled="false" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:110px; top:9px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  306. <choices>
  307. <itemset nodeset="/root/init/init_taxbillflag/item">
  308. <label ref="label"/>
  309. <value ref="value"/>
  310. </itemset>
  311. </choices>
  312. <script type="javascript" ev:event="xforms-value-changed">
  313. <![CDATA[
  314. model.setValue(rdo_taxbillflag.attribute("ref"), model.getValue(rdo_billflag.attribute("ref")));
  315. rdo_taxbillflag.refresh();
  316. ]]>
  317. </script>
  318. </select1>
  319. <caption id="caption8" class="search_name" style="left:5px; top:10px; width:109px; height:17px; ">계산서구분 :</caption>
  320. <caption id="caption3" class="search_name" style="left:5px; top:60px; width:104px; height:17px; ">사업자번호 :</caption>
  321. <input id="ipt_regnm" ref="/root/send/condition1/custnm" navindex="6" imemode="hangul" style="left:227px; top:59px; width:148px; height:19px; ">
  322. <script type="javascript" ev:event="onkeypress">
  323. <![CDATA[
  324. if(event.keyCode == 13)
  325. {
  326. racfCustValidCheck("entrregno,custnm", "name");
  327. }
  328. ]]>
  329. </script>
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. racfCustValidCheck("entrregno,custnm", "name");
  333. ]]>
  334. </script>
  335. </input>
  336. <button id="btn_entregnohelp" class="icon_search" style="left:209px; top:59px; width:16px; height:16px; ">
  337. <caption/>
  338. <script type="javascript" ev:event="DOMActivate">
  339. <![CDATA[
  340. misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
  341. model.refresh();
  342. ]]>
  343. </script>
  344. </button>
  345. <input id="ipt_regno" ref="/root/send/condition1/entrregno" navindex="5" format="999-99-99999" style="left:110px; top:59px; width:95px; height:19px; text-align:center; ">
  346. <script type="javascript" ev:event="onkeypress">
  347. <![CDATA[
  348. if(event.keyCode == 13)
  349. {
  350. racfCustValidCheck("entrregno,custnm", "code");
  351. }
  352. ]]>
  353. </script>
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. racfCustValidCheck("entrregno,custnm", "code");
  357. ]]>
  358. </script>
  359. </input>
  360. <button id="button4" class="btn2_letter2" style="left:380px; top:59px; width:42px; height:19px; text-align:left; ">
  361. <caption>제거</caption>
  362. <script type="javascript" ev:event="DOMActivate">
  363. <![CDATA[
  364. model.setValue(ipt_regno.attribute("ref"), "");
  365. model.setValue(ipt_regnm.attribute("ref"), "");
  366. ipt_regno.refresh();
  367. ipt_regnm.refresh();
  368. ]]>
  369. </script>
  370. </button>
  371. </group>
  372. <line id="line3" class="line_1" style="x1:0px; y1:165px; x2:595px; y2:165px; "/>
  373. <datagrid id="grd_disconnectedlist" nodeset="/root/main/disconnected/disconnectedlist" backcoloralternate="#ffffff" caption="선택^기관코드^사업자번호^종사업자코드^거래처명^공급가액^부가세액^합계^과세구분^작성일^발행일^발신일^과세종류^대표자명^수정계산서구분^발행구분^승인번호^승인여부^상태^일련번호^계산서종류^계산서구분^거래처등록여부^비고^기타" colsep="^" colwidth="35, 0, 75, 0, 120, 95, 95, 95, 80, 80, 80, 80, 0, 70, 100, 100, 100, 0, 0, 0, 0, 0, 0, 120, 120" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:170px; width:595px; height:585px; ">
  374. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  375. <col ref="instcd"/>
  376. <col ref="custcd"/>
  377. <col ref="subcustcd"/>
  378. <col ref="custnm"/>
  379. <col ref="suplamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  380. <col ref="valaddtax" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  381. <col ref="amt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  382. <col disabled="false" ref="instaxknd" type="combo">
  383. <choices>
  384. <item>
  385. <label>과세</label>
  386. <value>01</value>
  387. </item>
  388. <item>
  389. <label>영세율</label>
  390. <value>02</value>
  391. </item>
  392. <item>
  393. <label>대손세액가감</label>
  394. <value>03</value>
  395. </item>
  396. <item>
  397. <label>비과세</label>
  398. <value>04</value>
  399. </item>
  400. <item>
  401. <label>면세</label>
  402. <value>05</value>
  403. </item>
  404. </choices>
  405. </col>
  406. <col ref="makedd" format="yyyy-mm-dd" style="text-align:center; "/>
  407. <col ref="issuedd" format="yyyy-mm-dd" style="text-align:center; "/>
  408. <col ref="senddd" format="yyyy-mm-dd" style="text-align:center; "/>
  409. <col ref="taxknd"/>
  410. <col ref="prsdnm"/>
  411. <col ref="modifyflag"/>
  412. <col ref="issueflag"/>
  413. <col ref="approvalno"/>
  414. <col ref="approvalyn"/>
  415. <col ref="proc_flag"/>
  416. <col ref="seqno"/>
  417. <col ref="etaxbillkind"/>
  418. <col ref="etaxbillflag"/>
  419. <col ref="custregflag"/>
  420. <col ref="cmt"/>
  421. <col ref="etc"/>
  422. <script type="javascript" ev:event="ondblclick">
  423. <![CDATA[
  424. if(grd_disconnectedlist.col == grd_disconnectedlist.colRef("custcd"))
  425. {
  426. model.setValue(ipt_regno.attribute("ref"), grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("custcd")));
  427. model.setValue(ipt_regnm.attribute("ref"), grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("custnm")));
  428. ipt_regno.refresh();
  429. ipt_regnm.refresh();
  430. }
  431. else
  432. {
  433. fAutoSearch(grd_disconnectedlist.row, "Y");
  434. }
  435. ]]>
  436. </script>
  437. <script type="javascript" ev:event="xforms-value-changed">
  438. <![CDATA[
  439. if(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("custregflag")) == "N")
  440. {
  441. messageBox("거래처가 등록되어 있지 않습니다.", "I000");
  442. grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")) = "";
  443. grd_disconnectedlist.rowStatus(grd_disconnectedlist.row) = 0;
  444. return false;
  445. }
  446. //alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")));
  447. if(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")) == "Y")
  448. {
  449. //alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")));
  450. grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = "01";
  451. grd_disconnectedlist.isReadOnly(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = false;
  452. }
  453. else
  454. {
  455. //alert(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("chk")));
  456. grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = "";
  457. grd_disconnectedlist.isReadOnly(grd_disconnectedlist.row, grd_disconnectedlist.colRef("instaxknd")) = true;
  458. grd_disconnectedlist.removeStatus(grd_disconnectedlist.row, "update");
  459. }
  460. grd_disconnectedlist.refresh();
  461. ]]>
  462. </script>
  463. <script type="javascript" ev:event="onaftersort">
  464. <![CDATA[
  465. grd_disconnectedlist.gridToInstance();
  466. ]]>
  467. </script>
  468. </datagrid>
  469. <caption id="caption21" class="tit_2" style="left:5px; top:122px; width:310px; height:13px; ">mapping 되지 않은 국세청 자료 목록</caption>
  470. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
  471. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  472. <button id="btn_print" class="btn4_letter2" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
  473. <caption>출력</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. ]]>
  477. </script>
  478. </button>
  479. <button id="button5" class="icon_next" navindex="-1" style="left:270px; top:7px; width:13px; height:15px; ">
  480. <caption/>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  484. var vNum = parseInt(vYYYY, 10);
  485. if (vNum != 1)
  486. {
  487. vNum++;
  488. }
  489. else
  490. {
  491. return;
  492. }
  493. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  494. ipt_yyyy.refresh();
  495. rdo_reptkind.dispatch("xforms-value-changed");
  496. ]]>
  497. </script>
  498. </button>
  499. <caption id="caption11" class="search_name" style="left:80px; top:6px; width:101px; height:17px; ">년 도 :</caption>
  500. <input id="ipt_yyyy" ref="/root/hidden/condition/yyyy" class="input_s_essential" navindex="1" maxlength="4" style="left:200px; top:6px; width:68px; height:19px; text-align:center; ">
  501. <script type="javascript" ev:event="xforms-value-changed">
  502. <![CDATA[
  503. rdo_reptkind.dispatch("xforms-value-changed");
  504. ]]>
  505. </script>
  506. </input>
  507. <button id="btn_pre" class="icon_pre" navindex="-1" style="left:185px; top:7px; width:13px; height:15px; ">
  508. <caption/>
  509. <script type="javascript" ev:event="DOMActivate">
  510. <![CDATA[
  511. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  512. var vNum = parseInt(vYYYY, 10);
  513. if (vNum != 1)
  514. {
  515. vNum--;
  516. }
  517. else
  518. {
  519. return;
  520. }
  521. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  522. ipt_yyyy.refresh();
  523. rdo_reptkind.dispatch("xforms-value-changed");
  524. ]]>
  525. </script>
  526. </button>
  527. <select id="chk_autodate" ref="/root/hidden/condition/autodate" visibility="visible" overflow="visible" appearance="full" style="left:310px; top:5px; width:190px; height:20px; border-style:none; ">
  528. <choices>
  529. <item>
  530. <label>자동조회 시 자동 일자 사용</label>
  531. <value>Y</value>
  532. </item>
  533. </choices>
  534. </select>
  535. </group>
  536. <button id="btn_excel" class="btn2_letter4" style="left:526px; top:142px; width:64px; height:19px; text-align:left; ">
  537. <caption>엑셀출력</caption>
  538. <script type="javascript" ev:event="DOMActivate">
  539. <![CDATA[
  540. var sFromdd = model.getValue(ipt_fromdd.attribute("ref")).substr(2, 2) + "-" + model.getValue(ipt_fromdd.attribute("ref")).substr(4, 2) + "-" + model.getValue(ipt_fromdd.attribute("ref")).substr(6, 2);
  541. var sTodd = model.getValue(ipt_todd.attribute("ref")).substr(2, 2) + "-" + model.getValue(ipt_todd.attribute("ref")).substr(4, 2) + "-" + model.getValue(ipt_todd.attribute("ref")).substr(6, 2);
  542. var sTitle = "mapping 되지 않은 DTI 전자세금계산서 목록 " + sFromdd + " ~ " + sTodd;
  543. grd_disconnectedlist.rebuild();
  544. misfSaveExcel(grd_disconnectedlist, sTitle);
  545. ]]>
  546. </script>
  547. </button>
  548. <datagrid id="grd_connectablelist" nodeset="/root/main/connectable/connectablelist" backcoloralternate="#ffffff" caption="기관코드^일련번호^계산서종류^계산서구분^사업자번호^거래처명^상태^공급가액^부가세액^합계^계산서일^미결전표정보^미결전표일자^미결전표번호^미결전표일련번호^발행구분^DIT계산서번호^담당자메일^거래처메일^전자세금계산서구분^승인번호" colsep="^" colwidth="0, 0, 0, 0, 75, 120, 0, 95, 95, 95, 80, 120, 0, 0, 0, 100, 100, 100, 100, 100, 0" explorerbar="sort" frozencols="21" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:599px; top:170px; width:595px; height:585px; ">
  549. <col ref="instcd"/>
  550. <col ref="seqno"/>
  551. <col ref="taxbillkind"/>
  552. <col ref="taxbillflag"/>
  553. <col ref="entrregno"/>
  554. <col ref="custnm"/>
  555. <col ref="proc_flag"/>
  556. <col ref="suplamt" format="(-)#,###" style="text-align:right; "/>
  557. <col ref="valaddtax" format="(-)#,###" style="text-align:right; "/>
  558. <col ref="amt" format="(-)#,###" style="text-align:right; "/>
  559. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
  560. <col ref="unslinfo"/>
  561. <col ref="unsldd"/>
  562. <col ref="unslno"/>
  563. <col ref="undeciseqno"/>
  564. <col ref="isscust"/>
  565. <col ref="inv_no"/>
  566. <col ref="dtiemail"/>
  567. <col ref="custdtiemailaddr"/>
  568. <col ref="ebillflag"/>
  569. <col ref="approvalno"/>
  570. <script type="javascript" ev:event="ondblclick">
  571. <![CDATA[
  572. if(grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("custnm")) == "")
  573. {
  574. messageBox("거래처가 등록되어 있지 않습니다.\n거래처를 확인 후 등록하세요", "I000");
  575. return false;
  576. }
  577. if(grd_connectablelist.col == grd_connectablelist.colRef("entrregno"))
  578. {
  579. model.setValue(ipt_entrregno.attribute("ref"), grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("entrregno")));
  580. model.setValue(ipt_custnm.attribute("ref"), grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("custnm")));
  581. ipt_entrregno.refresh();
  582. ipt_custnm.refresh();
  583. }
  584. else
  585. {
  586. if( grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("etaxbillflag")) == grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("taxbillflag"))
  587. && grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("custcd")) == grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("entrregno"))
  588. && grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("suplamt")) == grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("suplamt"))
  589. && grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("valaddtax")) == grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("valaddtax"))
  590. && grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("amt")) == grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("amt")))
  591. {
  592. if(grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("makedd")) != grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("genrdd")))
  593. {
  594. dlgRslt = messageBox("계산서 일자가 다릅니다. 수정하시겠습니까?\n\nYes(수정 후 Mapping) / No(Mapping 취소)", "Q000");
  595. if(dlgRslt == 6)
  596. {
  597. grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("genrdd")) = grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("makedd"));
  598. }
  599. else
  600. {
  601. return false;
  602. }
  603. }
  604. grd_connectablelist.rowStatus(grd_connectablelist.row) = 2;
  605. grd_connectablelist.valueMatrix(grd_connectablelist.row, grd_connectablelist.colRef("approvalno")) = grd_disconnectedlist.valueMatrix(grd_disconnectedlist.row, grd_disconnectedlist.colRef("approvalno"));
  606. model.setValue("/root/send/connectable/connectablelist", grd_connectablelist.getUpdateData());
  607. submit("TXRAT00312");
  608. messageBox("Mapping 되었습니다.", "I000");
  609. btn_search.dispatch("DOMActivate");
  610. btn_search_1.dispatch("DOMActivate");
  611. }
  612. else
  613. {
  614. messageBox("데이터가 일치하지 않습니다.", "I000");
  615. }
  616. }
  617. ]]>
  618. </script>
  619. <script type="javascript" ev:event="onaftersort">
  620. <![CDATA[
  621. grd_connectablelist.gridToInstance();
  622. ]]>
  623. </script>
  624. </datagrid>
  625. <caption id="caption5" class="tit_2" style="left:600px; top:125px; width:250px; height:13px; ">mapping 가능한 nU 부가세 List</caption>
  626. <line id="line2" class="line_1" style="x1:599px; y1:165px; x2:1194px; y2:165px; "/>
  627. <button id="button1" class="btn2_letter4" style="left:1127px; top:142px; width:64px; height:19px; text-align:left; ">
  628. <caption>엑셀출력</caption>
  629. <script type="javascript" ev:event="DOMActivate">
  630. <![CDATA[
  631. var sFromdd = model.getValue(ipt_fromdd.attribute("ref")).substr(2, 2) + "-" + model.getValue(ipt_fromdd.attribute("ref")).substr(4, 2) + "-" + model.getValue(ipt_fromdd.attribute("ref")).substr(6, 2);
  632. var sTodd = model.getValue(ipt_todd.attribute("ref")).substr(2, 2) + "-" + model.getValue(ipt_todd.attribute("ref")).substr(4, 2) + "-" + model.getValue(ipt_todd.attribute("ref")).substr(6, 2);
  633. var sTitle = "mapping 가능한 nU 부가세 List " + sFromdd + " ~ " + sTodd;
  634. grd_connectablelist.rebuild();
  635. misfSaveExcel(grd_connectablelist, sTitle);
  636. ]]>
  637. </script>
  638. </button>
  639. <button id="btn_disconnect" class="btn4_letter7" visibility="visible" style="left:340px; top:141px; width:116px; height:22px; ">
  640. <caption>일괄 Mapping</caption>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. var total = 0;
  644. for(var i = grd_disconnectedlist.fixedRows ; i < grd_disconnectedlist.rows ; i++)
  645. {
  646. for(var j = grd_connectablelist.fixedRows ; j < grd_connectablelist.rows ; j++)
  647. {
  648. if( grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("etaxbillflag")) == grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("taxbillflag"))
  649. && grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("makedd")) == grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("genrdd"))
  650. && grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("custcd")) == grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("entrregno"))
  651. && grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("suplamt")) == grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("suplamt"))
  652. && grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("valaddtax")) == grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("valaddtax"))
  653. && grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("amt")) == grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("amt"))
  654. && grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("approvalno")) == "")
  655. {
  656. ++total;
  657. grd_connectablelist.rowStatus(j) = 2;
  658. grd_connectablelist.valueMatrix(j, grd_connectablelist.colRef("approvalno")) = grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("approvalno"));
  659. break;
  660. }
  661. }
  662. }
  663. var updtdata = getGridUpdateData(grd_connectablelist);
  664. if (updtdata != "")
  665. {
  666. model.setValue("/root/send/connectable/connectablelist", grd_connectablelist.getUpdateData());
  667. submit("TXRAT00312");
  668. messageBox("총" + total + "건이 Mapping 되었습니다.", "I000");
  669. btn_search.dispatch("DOMActivate");
  670. btn_search_1.dispatch("DOMActivate");
  671. }
  672. else
  673. {
  674. messageBox("일치하는 데이터가 없습니다.", "I000");
  675. }
  676. /*
  677. for(var i = grd_disconnectedlist.fixedRows ; i < grd_disconnectedlist.rows ; i++)
  678. {
  679. fAutoSearch(i);
  680. if(grd_connectablelist.rows == grd_connectablelist.fixedRows+ 1 )
  681. {
  682. grd_connectablelist.rowStatus(grd_connectablelist.fixedRows) = 2;
  683. grd_connectablelist.valueMatrix(grd_connectablelist.fixedRows, grd_connectablelist.colRef("approvalno")) = grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("approvalno"));
  684. model.setValue("/root/send/connectable/connectablelist", grd_connectablelist.getUpdateData());
  685. submit("TXRAT00312");
  686. }
  687. }
  688. */
  689. ]]>
  690. </script>
  691. </button>
  692. <group id="group4" style="left:598px; top:30px; width:595px; height:85px; vertical-align:top; ">
  693. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:595px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  694. <line id="line4" class="line_4" style="x1:514px; y1:29px; x2:514px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  695. <caption id="caption9" class="search_name" style="left:10px; top:35px; width:105px; height:17px; ">조 회 일 자 :</caption>
  696. <input id="ipt_fromdd_1" ref="/root/send/condition2/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:115px; top:34px; width:100px; height:19px; text-align:center; ">
  697. <script type="javascript" ev:event="xforms-value-changed">
  698. <![CDATA[
  699. model.setValue(rdo_reptkind_1.attribute("ref"), "");
  700. ]]>
  701. </script>
  702. </input>
  703. <caption id="caption10" style="left:217px; top:34px; width:15px; height:20px; ">~</caption>
  704. <button id="btn_search_1" class="btn1_letter2" navindex="4" style="left:530px; top:30px; width:56px; height:22px; text-align:left; ">
  705. <caption>조회</caption>
  706. <script type="javascript" ev:event="DOMActivate">
  707. <![CDATA[
  708. model.removeNodeset(grd_connectablelist.nodeset);
  709. grd_connectablelist.refresh();
  710. submit("TRRAT00312");
  711. ]]>
  712. </script>
  713. </button>
  714. <input id="ipt_todd_1" ref="/root/send/condition2/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:230px; top:34px; width:100px; height:19px; text-align:center; ">
  715. <script type="javascript" ev:event="xforms-value-changed">
  716. <![CDATA[
  717. model.setValue(rdo_reptkind_1.attribute("ref"), "");
  718. ]]>
  719. </script>
  720. </input>
  721. <select1 id="rdo_taxbillflag" ref="/root/send/condition2/taxbillflag" class="radio_search" disabled="false" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:115px; top:9px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  722. <choices>
  723. <itemset nodeset="/root/init/init_taxbillflag/item">
  724. <label ref="label"/>
  725. <value ref="value"/>
  726. </itemset>
  727. </choices>
  728. </select1>
  729. <caption id="caption13" class="search_name" style="left:10px; top:10px; width:109px; height:17px; ">계산서구분 :</caption>
  730. <caption id="caption7" class="search_name" style="left:10px; top:60px; width:104px; height:17px; ">사업자번호 :</caption>
  731. <input id="ipt_custnm" ref="/root/send/condition2/custnm" navindex="6" imemode="hangul" style="left:232px; top:59px; width:148px; height:19px; ">
  732. <script type="javascript" ev:event="onkeypress">
  733. <![CDATA[
  734. if(event.keyCode == 13)
  735. {
  736. racfCustValidCheck("entrregno,custnm", "name");
  737. }
  738. ]]>
  739. </script>
  740. <script type="javascript" ev:event="xforms-value-changed">
  741. <![CDATA[
  742. racfCustValidCheck("entrregno,custnm", "name");
  743. ]]>
  744. </script>
  745. </input>
  746. <button id="button2" class="icon_search" style="left:214px; top:59px; width:16px; height:16px; ">
  747. <caption/>
  748. <script type="javascript" ev:event="DOMActivate">
  749. <![CDATA[
  750. misfOpenPopUpList("14", ipt_entrregno, "", "entrregno,custnm");
  751. model.refresh();
  752. ]]>
  753. </script>
  754. </button>
  755. <input id="ipt_entrregno" ref="/root/send/condition2/entrregno" navindex="5" format="999-99-99999" style="left:115px; top:59px; width:95px; height:19px; text-align:center; ">
  756. <script type="javascript" ev:event="onkeypress">
  757. <![CDATA[
  758. if(event.keyCode == 13)
  759. {
  760. racfCustValidCheck("entrregno,custnm", "code");
  761. }
  762. ]]>
  763. </script>
  764. <script type="javascript" ev:event="xforms-value-changed">
  765. <![CDATA[
  766. racfCustValidCheck("entrregno,custnm", "code");
  767. ]]>
  768. </script>
  769. </input>
  770. <button id="button3" class="btn2_letter2" style="left:385px; top:59px; width:42px; height:19px; text-align:left; ">
  771. <caption>제거</caption>
  772. <script type="javascript" ev:event="DOMActivate">
  773. <![CDATA[
  774. model.setValue(ipt_entrregno.attribute("ref"), "");
  775. model.setValue(ipt_custnm.attribute("ref"), "");
  776. ipt_entrregno.refresh();
  777. ipt_custnm.refresh();
  778. ]]>
  779. </script>
  780. </button>
  781. </group>
  782. <datagrid id="grd_exceluploadlist" nodeset="/root/main/excel/excellist" visibility="hidden" backcoloralternate="#ffffff" caption="번호^작성일자^승인번호^발행일자^전송일자^공급자사업자등록번호^종사업장번호^상호^대표자명^공급받는자사업자등록번호^종사업장번호^상호^대표자명^합계금액^공급가액^세액^전자세금계산서분류^전자세금계산서종류^발행유형^비고^기타^계산서구분^계산서종류^기관코드" colsep="^" colwidth="100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:15px; top:300px; width:75px; height:20px; ">
  783. <col ref="no"/>
  784. <col ref="makedd"/>
  785. <col ref="approvalno"/>
  786. <col ref="issuedd"/>
  787. <col ref="senddd"/>
  788. <col ref="supcustcd"/>
  789. <col ref="supsubcustcd"/>
  790. <col ref="supcustnm"/>
  791. <col ref="supprsdnm"/>
  792. <col ref="demcustcd"/>
  793. <col ref="demsubcustcd"/>
  794. <col ref="demcustnm"/>
  795. <col ref="demprsdnm"/>
  796. <col ref="amt"/>
  797. <col ref="suplamt"/>
  798. <col ref="valaddtax"/>
  799. <col ref="modifyflag"/>
  800. <col ref="taxknd"/>
  801. <col ref="issueflag"/>
  802. <col ref="cmt"/>
  803. <col ref="etc"/>
  804. <col ref="etaxbillflag"/>
  805. <col ref="etaxbillkind"/>
  806. <col ref="instcd"/>
  807. </datagrid>
  808. <button id="btn_excelupload" class="btn2_letter4" style="left:457px; top:142px; width:64px; height:19px; text-align:left; ">
  809. <caption>엑셀입력</caption>
  810. <script type="javascript" ev:event="DOMActivate">
  811. <![CDATA[
  812. model.removeNodeset(grd_exceluploadlist.nodeset);
  813. grd_exceluploadlist.refresh();
  814. if(fInputExcel(grd_exceluploadlist))
  815. {
  816. if(grd_exceluploadlist.rows > grd_exceluploadlist.fixedRows)
  817. {
  818. for(var i = grd_exceluploadlist.fixedRows ; i < grd_exceluploadlist.rows ; i++)
  819. {
  820. grd_exceluploadlist.rowStatus(i) = 1;
  821. grd_exceluploadlist.valueMatrix(i, grd_exceluploadlist.colRef("etaxbillflag")) = model.getValue(rdo_billflag.attribute("ref"));
  822. grd_exceluploadlist.valueMatrix(i, grd_exceluploadlist.colRef("etaxbillkind")) = "4";
  823. grd_exceluploadlist.valueMatrix(i, grd_exceluploadlist.colRef("instcd")) = model.getValue("/root/send/condition2/instcd");
  824. }
  825. model.setValue("/root/send/excel/excellist", grd_exceluploadlist.getUpdateData());
  826. submit("TXRAT00311");
  827. }
  828. }
  829. ]]>
  830. </script>
  831. </button>
  832. <button id="btn_DTIapplicationNTS" class="btn4_letter10" visibility="visible" style="left:185px; top:141px; width:152px; height:22px; ">
  833. <caption>다큐빌 승인번호 적용</caption>
  834. <script type="javascript" ev:event="DOMActivate">
  835. <![CDATA[
  836. submit("TXRAT00313");
  837. ]]>
  838. </script>
  839. </button>
  840. <select1 id="rdo_reptkind" ref="/root/hidden/condition/reptkind" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:277px; top:120px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
  841. <choices>
  842. <itemset nodeset="/root/init/init_reptkind/item">
  843. <label ref="label"/>
  844. <value ref="value"/>
  845. </itemset>
  846. </choices>
  847. <script type="javascript" ev:event="xforms-value-changed">
  848. <![CDATA[
  849. fSetDate(ipt_fromdd.attribute("ref"), ipt_todd.attribute("ref"),rdo_reptkind.attribute("ref"));
  850. ]]>
  851. </script>
  852. </select1>
  853. <select1 id="rdo_reptkind_1" ref="/root/hidden/condition/reptkind_1" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:867px; top:119px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
  854. <choices>
  855. <itemset nodeset="/root/init/init_reptkind/item">
  856. <label ref="label"/>
  857. <value ref="value"/>
  858. </itemset>
  859. </choices>
  860. <script type="javascript" ev:event="xforms-value-changed">
  861. <![CDATA[
  862. fSetDate(ipt_fromdd_1.attribute("ref"), ipt_todd_1.attribute("ref"),rdo_reptkind_1.attribute("ref"));
  863. ]]>
  864. </script>
  865. </select1>
  866. <button id="button6" class="btn4_letter10" visibility="visible" style="left:5px; top:141px; width:152px; height:22px; ">
  867. <caption>nU 부가세 일괄 생성</caption>
  868. <script type="javascript" ev:event="DOMActivate">
  869. <![CDATA[
  870. /*
  871. for(var i = grd_disconnectedlist.fixedRows ; i < grd_disconnectedlist.rows ; i++)
  872. {
  873. if(grd_disconnectedlist.valueMatrix(i, grd_disconnectedlist.colRef("chk")) != "Y")
  874. {
  875. grd_disconnectedlist.removeStatus(i, "update");
  876. }
  877. }
  878. model.refresh();
  879. */
  880. var updtdata = getGridUpdateData(grd_disconnectedlist);
  881. if (updtdata != "")
  882. {
  883. dlgRslt = messageBox("nU 부가세 데이터를 생성하시겠습니까?", "Q000");
  884. if(dlgRslt == 6)
  885. {
  886. model.setValue("/root/send/disconnected/disconnectedlist", grd_disconnectedlist.getUpdateData());
  887. submit("TXRAT00314");
  888. btn_search.dispatch("DOMActivate");
  889. btn_search_1.dispatch("DOMActivate");
  890. }
  891. }
  892. ]]>
  893. </script>
  894. </button>
  895. <button id="button7" class="btn4_letter7" visibility="visible" style="left:600px; top:141px; width:152px; height:22px; ">
  896. <caption>일괄 matching</caption>
  897. <script type="javascript" ev:event="DOMActivate">
  898. <![CDATA[
  899. if(grd_disconnectedlist.rows > grd_disconnectedlist.fixedRows && grd_connectablelist.rows > grd_connectablelist.fixedRows)
  900. {
  901. for(var i = grd_disconnectedlist.fixedRows ; i < grd_disconnectedlist.rows ; i++)
  902. {
  903. fAutoSearch(i, "N");
  904. }
  905. model.refresh();
  906. }
  907. ]]>
  908. </script>
  909. </button>
  910. </group>
  911. </xhtml:body>
  912. </xhtml:html>