SMRAT00250_DTI자료Mapping.xrw 43 KB

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