SMRAT00360_국세청-nU Mapping Data 검증.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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>국세청-NU Mapping Data 일치여부 검증</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <different>
  11. <differentlist/>
  12. </different>
  13. </main>
  14. <send>
  15. <condition>
  16. <instcd/>
  17. <fromdd/>
  18. <todd/>
  19. <searchflag>error</searchflag>
  20. </condition>
  21. <different>
  22. <differentlist/>
  23. </different>
  24. </send>
  25. <temp/>
  26. <init>
  27. <init_taxbillkind>
  28. <item>
  29. <label>세금계산서</label>
  30. <value>4</value>
  31. </item>
  32. <item>
  33. <label>계산서</label>
  34. <value>5</value>
  35. </item>
  36. </init_taxbillkind>
  37. <init_taxbillflag>
  38. <item>
  39. <label>매입</label>
  40. <value>1</value>
  41. </item>
  42. <item>
  43. <label>매출</label>
  44. <value>2</value>
  45. </item>
  46. </init_taxbillflag>
  47. <init_reptkind>
  48. <item>
  49. <label>1기예정</label>
  50. <value>1</value>
  51. </item>
  52. <item>
  53. <label>1기확정</label>
  54. <value>2</value>
  55. </item>
  56. <item>
  57. <label>2기예정</label>
  58. <value>3</value>
  59. </item>
  60. <item>
  61. <label>2기확정</label>
  62. <value>4</value>
  63. </item>
  64. </init_reptkind>
  65. <init_flagcd>
  66. <item>
  67. <label>정규</label>
  68. <value>1</value>
  69. </item>
  70. <item>
  71. <label>예정신고누락분</label>
  72. <value>2</value>
  73. </item>
  74. </init_flagcd>
  75. <init_fixasetflag>
  76. <item>
  77. <label>일반 매입·출</label>
  78. <value>00</value>
  79. </item>
  80. <item>
  81. <label>건,구축물</label>
  82. <value>01</value>
  83. </item>
  84. <item>
  85. <label>기계장치</label>
  86. <value>02</value>
  87. </item>
  88. <item>
  89. <label>차량운반구</label>
  90. <value>03</value>
  91. </item>
  92. <item>
  93. <label>기타감가상각물</label>
  94. <value>04</value>
  95. </item>
  96. </init_fixasetflag>
  97. <R0364list>
  98. <R0364/>
  99. </R0364list>
  100. <Z0007list>
  101. <Z0007/>
  102. </Z0007list>
  103. </init>
  104. </root>
  105. </instance>
  106. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  110. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  111. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  112. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  113. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  114. <script type="javascript" ev:event="xforms-ready">
  115. <![CDATA[
  116. fInitialize();
  117. ]]>
  118. </script>
  119. <script type="javascript">
  120. <![CDATA[
  121. function fInitialize()
  122. {
  123. model.removeNodeset(grd_differentlist.nodeset);
  124. misfComboComCdListMulti("Z0007", "cmb_instcd");
  125. zbcfGetCodeList(new Array("R0364"), new Array("/root/init/R0364list"));
  126. zbcfGetCodeList(new Array("Z0007"), new Array("/root/init/Z0007list"));
  127. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  128. model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
  129. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  130. grd_differentlist.rowHeight(0) = 35;
  131. model.refresh();
  132. }
  133. ]]>
  134. </script>
  135. <bind id="bindSecPageCnt" ref="/root/send/printparams/secPageCnt" calculate="count(/root/main/printlist/secpage)"/>
  136. <bind id="bindAllEtcProf" ref="/root/send/printparams/allEtcProf" calculate="count(/root/main/list/etcproflist)"/>
  137. <bind id="bindAllCount" ref="/root/send/printparams/allCount" calculate="sum(/root/main/list/etcproflist/cnt)"/>
  138. <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/etcproflist/paytotamt)"/>
  139. <bind id="bindProfTax" ref="/root/send/printparams/profTax" calculate="sum(/root/main/list/etcproflist/proftax)"/>
  140. <bind id="bindIncmTax" ref="/root/send/printparams/incmTax" calculate="sum(/root/main/list/etcproflist/incmtax)"/>
  141. <bind id="bindResdnTax" ref="/root/send/printparams/resdnTax" calculate="sum(/root/main/list/etcproflist/resdntax)"/>
  142. <bind id="bindSumAmt" ref="/root/send/printparams/sumAmt" calculate="sum(/root/main/list/etcproflist/sumamt)"/>
  143. <bind id="bindPayAmt" ref="/root/send/printparams/payAmt" calculate="sum(/root/main/list/etcproflist/payamt)"/>
  144. <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/etcproflist[chk='Y']/chk)"/>
  145. <submission id="TRZBC00101" method="post" replace="instance"/>
  146. <submission id="TRRAT00361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/different"/>
  147. <submission id="TXRAT00351" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/different/differentlist" resultref="/root/temp"/>
  148. </model>
  149. </xhtml:head>
  150. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  151. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  152. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">국세청-NU Mapping Data 일치여부 검증</caption>
  153. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  154. </group>
  155. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
  156. <group id="grp_sea" style="left:0px; top:30px; width:1195px; height:35px; vertical-align:top; ">
  157. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  158. <line id="line5" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  159. <caption id="caption1" class="search_name" style="left:310px; top:9px; width:90px; height:17px; ">조회일자 :</caption>
  160. <input id="ipt_fromdd" ref="/root/send/condition/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:400px; top:8px; width:100px; height:19px; text-align:center; "/>
  161. <caption id="caption2" style="left:502px; top:11px; width:15px; height:20px; ">~</caption>
  162. <select1 id="cmb_instcd" ref="/root/send/condition/instcd" class="combo_s_essential" disabled="true" navindex="-1" appearance="minimal" style="left:99px; top:8px; width:176px; height:19px; ">
  163. <choices>
  164. <itemset>
  165. <label/>
  166. <value/>
  167. </itemset>
  168. </choices>
  169. </select1>
  170. <caption id="caption3" class="search_name" style="left:9px; top:9px; width:90px; height:17px; ">기관구분 :</caption>
  171. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; text-align:left; ">
  172. <caption>조회</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. model.removeNodeset(grd_differentlist.nodeset);
  176. grd_differentlist.refresh();
  177. submit("TRRAT00361");
  178. for(var i = grd_differentlist.fixedRows ; i < grd_differentlist.rows ; i++)
  179. {
  180. if(grd_differentlist.valueMatrix(i, grd_differentlist.colRef("eq_taxbillkind")) == "N")
  181. {
  182. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("taxbillkind_tax")) = "#ffff00";
  183. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("taxbillkind_nts")) = "#ffff00";
  184. }
  185. if(grd_differentlist.valueMatrix(i, grd_differentlist.colRef("eq_taxbillflag")) == "N")
  186. {
  187. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("taxbillflag_tax")) = "#ffff00";
  188. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("taxbillflag_nts")) = "#ffff00";
  189. }
  190. if(grd_differentlist.valueMatrix(i, grd_differentlist.colRef("eq_suplamt")) == "N")
  191. {
  192. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("suplamt_tax")) = "#ffff00";
  193. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("suplamt_nts")) = "#ffff00";
  194. }
  195. if(grd_differentlist.valueMatrix(i, grd_differentlist.colRef("eq_valaddtax")) == "N")
  196. {
  197. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("valaddtax_tax")) = "#ffff00";
  198. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("valaddtax_nts")) = "#ffff00";
  199. }
  200. if(grd_differentlist.valueMatrix(i, grd_differentlist.colRef("eq_amt")) == "N")
  201. {
  202. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("amt_tax")) = "#ffff00";
  203. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("amt_nts")) = "#ffff00";
  204. }
  205. if(grd_differentlist.valueMatrix(i, grd_differentlist.colRef("eq_genrdd")) == "N")
  206. {
  207. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("genrdd_tax")) = "#ffff00";
  208. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("genrdd_nts")) = "#ffff00";
  209. }
  210. if(grd_differentlist.valueMatrix(i, grd_differentlist.colRef("eq_entrregno")) == "N")
  211. {
  212. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("entrregno_tax")) = "#ffff00";
  213. grd_differentlist.cellStyle("background-color", i, grd_differentlist.colRef("entrregno_nts")) = "#ffff00";
  214. }
  215. }
  216. ]]>
  217. </script>
  218. </button>
  219. <input id="ipt_todd" ref="/root/send/condition/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:515px; top:8px; width:100px; height:19px; text-align:center; "/>
  220. <select1 id="rdo_retrkind" ref="/root/send/condition/searchflag" overflow="visible" appearance="full" cellspacing="15" cols="3" style="left:750px; top:10px; width:260px; height:16px; border-style:none; ">
  221. <choices>
  222. <item>
  223. <label>전체</label>
  224. <value>all</value>
  225. </item>
  226. <item>
  227. <label>오류</label>
  228. <value>error</value>
  229. </item>
  230. </choices>
  231. </select1>
  232. <caption id="caption9" class="search_name" style="left:660px; top:10px; width:97px; height:17px; ">조회구분 :</caption>
  233. </group>
  234. <line id="line3" class="line_1" style="x1:0px; y1:88px; x2:1195px; y2:88px; "/>
  235. <datagrid id="grd_differentlist" nodeset="/root/main/different/differentlist" backcoloralternate="#ffffff" caption="선택^기관코드^일련번호^계산서종류&#xA;TAX^계산서종류&#xA;NTS^계산서종류일치여부^계산서구분&#xA;TAX^계산서구분&#xA;NTS^계산서구분일치여부^공급가액&#xA;TAX^공급가액&#xA;NTS^공급가액일치여부^부가세액&#xA;TAX^부가세액&#xA;NTS^부가세액일치여부^합계&#xA;TAX^합계&#xA;NTS^합계일치여부^계산서일자&#xA;TAX^계산서일자&#xA;NTS^계산서일자일치여부^사업자번호&#xA;TAX^사업자번호&#xA;NTS^사업자번호일치여부^미결전표일자^미결전표번호^미결전표일련번호^전표구분^전송구분^DTI세금계산서번호" colsep="^" colwidth="50,0,0,90,90,0,80,80,0,100,100,0,100,100,0,100,100,0,80,80,0,80,80,0,80,80,80,100,80,80" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:93px; width:1195px; height:662px; ">
  236. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  237. <col ref="instcd"/>
  238. <col ref="seqno"/>
  239. <col disabled="true" ref="taxbillkind_tax" type="combo">
  240. <choices>
  241. <itemset nodeset="/root/init/init_taxbillkind/item">
  242. <label ref="label"/>
  243. <value ref="value"/>
  244. </itemset>
  245. </choices>
  246. </col>
  247. <col disabled="true" ref="taxbillkind_nts" type="combo">
  248. <choices>
  249. <itemset nodeset="/root/init/init_taxbillkind/item">
  250. <label ref="label"/>
  251. <value ref="value"/>
  252. </itemset>
  253. </choices>
  254. </col>
  255. <col ref="eq_taxbillkind"/>
  256. <col disabled="true" ref="taxbillflag_tax" type="combo">
  257. <choices>
  258. <itemset nodeset="/root/init/init_taxbillflag/item">
  259. <label ref="label"/>
  260. <value ref="value"/>
  261. </itemset>
  262. </choices>
  263. </col>
  264. <col disabled="true" ref="taxbillflag_nts" type="combo">
  265. <choices>
  266. <itemset nodeset="/root/init/init_taxbillflag/item">
  267. <label ref="label"/>
  268. <value ref="value"/>
  269. </itemset>
  270. </choices>
  271. </col>
  272. <col ref="eq_taxbillflag"/>
  273. <col ref="suplamt_tax"/>
  274. <col ref="suplamt_nts"/>
  275. <col ref="eq_suplamt"/>
  276. <col ref="valaddtax_tax"/>
  277. <col ref="valaddtax_nts"/>
  278. <col ref="eq_valaddtax"/>
  279. <col ref="amt_tax"/>
  280. <col ref="amt_nts"/>
  281. <col ref="eq_amt"/>
  282. <col ref="genrdd_tax"/>
  283. <col ref="genrdd_nts"/>
  284. <col ref="eq_genrdd"/>
  285. <col ref="entrregno_tax"/>
  286. <col ref="entrregno_nts"/>
  287. <col ref="eq_entrregno"/>
  288. <col ref="unsldd"/>
  289. <col ref="unslno"/>
  290. <col ref="unslseqno"/>
  291. <col ref="slipflag"/>
  292. <col ref="sanctyn"/>
  293. <col ref="inv_no"/>
  294. <script type="javascript" ev:event="xforms-value-changed">
  295. <![CDATA[
  296. if(grd_differentlist.valueMatrix(grd_differentlist.row, grd_differentlist.colRef("chk")) != "Y")
  297. {
  298. grd_differentlist.removeStatus(grd_differentlist.row, "update");
  299. }
  300. grd_differentlist.refresh();
  301. ]]>
  302. </script>
  303. </datagrid>
  304. <caption id="caption21" class="tit_2" style="left:5px; top:73px; width:310px; height:13px; ">국세청-NU Mapping Data 불일치 List</caption>
  305. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
  306. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  307. <button id="btn_print" class="btn4_letter2" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
  308. <caption>출력</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. ]]>
  312. </script>
  313. </button>
  314. </group>
  315. <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:67px; width:64px; height:19px; text-align:left; ">
  316. <caption>엑셀출력</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. 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);
  320. 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);
  321. var sTitle = "국세청-NU 데이터 불일치 " + sFromdd + " ~ " + sTodd;
  322. grd_differentlist.rebuild();
  323. misfSaveExcel(grd_differentlist, sTitle);
  324. ]]>
  325. </script>
  326. </button>
  327. <button id="btn_disconnect" class="btn4_letter4" visibility="visible" style="left:265px; top:65px; width:80px; height:22px; ">
  328. <caption>연결해제</caption>
  329. <script type="javascript" ev:event="DOMActivate">
  330. <![CDATA[
  331. var updtdata = getGridUpdateData(grd_differentlist);
  332. if (updtdata != "")
  333. {
  334. dlgRslt = messageBox("연결을 해제 하시겠습니까?", "Q000");
  335. if(dlgRslt == 6)
  336. {
  337. model.setValue("/root/send/different/differentlist", grd_differentlist.getUpdateData());
  338. submit("TXRAT00351");
  339. btn_search.dispatch("DOMActivate");
  340. }
  341. }
  342. ]]>
  343. </script>
  344. </button>
  345. </group>
  346. </xhtml:body>
  347. </xhtml:html>