SPRAT01320_공제받지 못할 매입세액 명세서 관리.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>공제받지 못할 매입세액 명세서 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ndedlist>
  11. <data1/>
  12. <data2/>
  13. <data3/>
  14. </ndedlist>
  15. <list>
  16. <temp/>
  17. </list>
  18. </main>
  19. <send>
  20. <instcd/>
  21. <addtaxyy/>
  22. <addtaxpnt/>
  23. <flagcd/>
  24. <save>
  25. <data1/>
  26. <data2/>
  27. <data3/>
  28. </save>
  29. <yyyy/>
  30. <reptkind/>
  31. </send>
  32. <target/>
  33. <init>
  34. <addtaxpnt>
  35. <item>
  36. <label>1기예정</label>
  37. <value>1</value>
  38. </item>
  39. <item>
  40. <label>1기확정</label>
  41. <value>2</value>
  42. </item>
  43. <item>
  44. <label>2기예정</label>
  45. <value>3</value>
  46. </item>
  47. <item>
  48. <label>2기확정</label>
  49. <value>4</value>
  50. </item>
  51. </addtaxpnt>
  52. </init>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. fCheckAuth();
  58. fInitialize();
  59. ]]>
  60. </script>
  61. <submission id="TXRAT01321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/data1" resultref="/root/main/temp"/>
  62. <submission id="TRRAT01322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ndedlist"/>
  63. <submission id="TXRAT01322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/data2" resultref="/root/main/list/temp"/>
  64. <submission id="TXRAT01323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/data3" resultref="/root/main/list/temp"/>
  65. <submission id="TRRAT01324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  71. <script type="javascript">
  72. <![CDATA[
  73. //========================================================================================
  74. //초기화
  75. //========================================================================================
  76. function fInitialize() {
  77. var sToday = getCurrentDate().toString();
  78. model.removenode("/root/main/ndedlist/data1");
  79. model.removenode("/root/main/ndedlist/data2");
  80. model.removenode("/root/main/ndedlist/data3");
  81. model.refresh();
  82. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  83. model.setValue("/root/send/addtaxyy", model.getValue("/root/target/yyyy"));
  84. model.setValue("/root/init/addtaxpnt", model.getValue("/root/target/reptkind"));
  85. model.setValue("/root/send/addtaxpnt", model.getValue("/root/target/reptkind"));
  86. model.refresh();
  87. datagrid1.rowheight(0) = 35;
  88. datagrid2.rowheight(0) = 35;
  89. datagrid3.rowheight(0) = 35;
  90. fRetrieve();
  91. }
  92. //========================================================================================
  93. //화면 권한 체크
  94. //========================================================================================
  95. function fCheckAuth() {
  96. //btn_search.disabled = !checkAuth("R") ;
  97. //btn_aprv.disabled = !checkAuth("X") ;
  98. //btn_delete.disabled = !checkAuth("X") ;
  99. //btn_prt.disabled = !checkAuth("P") ;
  100. }
  101. //========================================================================================
  102. //각종 코드 Help Open
  103. //========================================================================================
  104. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  105. {
  106. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  107. model.refresh();
  108. }
  109. //========================================================================================
  110. //코드 Validation Check
  111. //========================================================================================
  112. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
  113. {
  114. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  115. {
  116. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  117. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
  118. model.refresh();
  119. model.setFocus(pNextIndex);
  120. }
  121. }
  122. //========================================================================================
  123. // 조회
  124. //========================================================================================
  125. function fRetrieve()
  126. {
  127. // model.reset("/root/main/ndedlist/data1");
  128. // model.reset("/root/main/ndedlist/data2");
  129. // model.reset("/root/main/ndedlist/data3");
  130. // model.refresh();
  131. submit("TRRAT01322");
  132. }
  133. //========================================================================================
  134. // 저장
  135. //========================================================================================
  136. function fSave()
  137. {
  138. model.reset("/root/main/list/temp");
  139. model.reset("/root/send/save/data1");
  140. model.setValue("/root/send/save/data1", datagrid1.getUpdateData());
  141. model.refresh();
  142. misfSave("TXRAT01321");
  143. model.reset("/root/send/save/data2");
  144. model.setValue("/root/send/save/data2", datagrid2.getUpdateData());
  145. model.refresh();
  146. misfSave("TXRAT01322");
  147. model.reset("/root/send/save/data3");
  148. model.setValue("/root/send/save/data3", datagrid3.getUpdateData());
  149. model.refresh();
  150. misfSave("TXRAT01323");
  151. //submit("TXRAT01321");
  152. fRetrieve();
  153. }
  154. ]]>
  155. </script>
  156. </xhtml:head>
  157. <xhtml:body pagewidth="1185" pageheight="684" guideline="1,1213;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  158. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1163px; height:640px; ">
  159. <group id="group4" style="left:5px; top:50px; width:1150px; height:55px; vertical-align:top; ">
  160. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:1140px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
  161. <line id="line10" class="line_4" style="x1:1045px; y1:5px; x2:1045px; y2:53px; "/>
  162. <caption id="caption3" class="search_name" style="left:10px; top:20px; width:101px; height:20px; ">년 도 :</caption>
  163. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1060px; top:16px; width:56px; height:22px; text-align:left; ">
  164. <caption>조회</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. fRetrieve();
  168. ]]>
  169. </script>
  170. </button>
  171. <caption id="caption9" class="search_name" style="left:295px; top:20px; width:106px; height:20px; ">신고 유형 :</caption>
  172. <input id="ipt_yyyy" ref="/root/send/addtaxyy" class="input_s_essential" navindex="1" maxlength="4" style="left:115px; top:20px; width:135px; height:20px; text-align:center; "/>
  173. <select1 id="rdo_reptkind" ref="/root/send/addtaxpnt" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:400px; top:20px; width:455px; height:20px; vertical-align:middle; border-style:none; ">
  174. <choices>
  175. <itemset nodeset="/root/init/addtaxpnt/item">
  176. <label ref="label"/>
  177. <value ref="value"/>
  178. </itemset>
  179. </choices>
  180. </select1>
  181. </group>
  182. <caption id="caption35" class="tit_2" style="left:5px; top:124px; width:183px; height:13px; ">공통매입세액 안분계산 내역</caption>
  183. <group id="grp_4" scroll="auto" style="left:0px; top:10px; width:1158px; height:35px; ">
  184. <line id="line3" class="line_6" style="x1:0px; y1:30px; x2:1151px; y2:30px; "/>
  185. <button id="btn_print" class="btn6_letter2" style="left:10px; top:5px; width:56px; height:22px; ">
  186. <caption>출력</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. model.setValue("/root/send/yyyy", model.getValue("/root/send/addtaxyy"));
  190. model.setValue("/root/send/reptkind", model.getValue("/root/send/addtaxpnt"));
  191. submit("TRRAT01324");
  192. exeReportPreview("RPRAT01321", "XMLSTR");
  193. ]]>
  194. </script>
  195. </button>
  196. <button id="button39" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  197. <caption>저장</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. //fInsAactcdprtlist();
  201. fSave();
  202. ]]>
  203. </script>
  204. </button>
  205. </group>
  206. <button id="button1" class="btn2_letter3" style="left:445px; top:124px; width:53px; height:19px; ">
  207. <caption>행추가</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. misfGridIUD(datagrid1, "A");
  211. var rowid = datagrid1.row;
  212. datagrid1.valueMatrix(rowid, datagrid1.colRef("instcd")) = model.getValue("/root/send/instcd");
  213. datagrid1.valueMatrix(rowid, datagrid1.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
  214. datagrid1.valueMatrix(rowid, datagrid1.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
  215. datagrid1.valueMatrix(rowid, datagrid1.colRef("flagcd")) = "1";
  216. //model.setValue("/root/main/ndedlist/data1/instcd", model.getValue("/root/send/instcd"));
  217. //model.setValue("/root/main/ndedlist/data1/addtaxyy", model.getValue("/root/send/addtaxyy"));
  218. //model.setValue("/root/main/ndedlist/data1/addtaxpnt", model.getValue("/root/send/addtaxpnt"));
  219. //model.setValue("/root/main/ndedlist/data1/flagcd","1");
  220. //model.refresh();
  221. ]]>
  222. </script>
  223. </button>
  224. <button id="button18" class="btn2_letter3" style="left:499px; top:124px; width:53px; height:19px; ">
  225. <caption>행삭제</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. misfGridIUD(datagrid1, "D");
  229. model.refresh();
  230. ]]>
  231. </script>
  232. </button>
  233. <button id="button2" class="btn2_letter3" style="left:1040px; top:124px; width:53px; height:19px; ">
  234. <caption>행추가</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. misfGridIUD(datagrid2, "A");
  238. var rowid = datagrid2.row;
  239. datagrid2.valueMatrix(rowid, datagrid2.colRef("instcd")) = model.getValue("/root/send/instcd");
  240. datagrid2.valueMatrix(rowid, datagrid2.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
  241. datagrid2.valueMatrix(rowid, datagrid2.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
  242. datagrid2.valueMatrix(rowid, datagrid2.colRef("flagcd")) = "2";
  243. //model.setValue("/root/main/ndedlist/data2/instcd", model.getValue("/root/send/instcd"));
  244. //model.setValue("/root/main/ndedlist/data2/addtaxyy", model.getValue("/root/send/addtaxyy"));
  245. //model.setValue("/root/main/ndedlist/data2/addtaxpnt", model.getValue("/root/send/addtaxpnt"));
  246. //model.setValue("/root/main/ndedlist/data2/flagcd","2");
  247. //model.refresh();
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="button3" class="btn2_letter3" style="left:1094px; top:124px; width:53px; height:19px; ">
  252. <caption>행삭제</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. misfGridIUD(datagrid2, "D");
  256. model.refresh();
  257. ]]>
  258. </script>
  259. </button>
  260. <caption id="caption5" class="tit_2" style="left:595px; top:124px; width:183px; height:13px; ">공통매입세액의 정산 내역</caption>
  261. <line id="line4" class="line_1" style="x1:595px; y1:147px; x2:1150px; y2:148px; "/>
  262. <button id="button4" class="btn2_letter3" style="left:1040px; top:383px; width:53px; height:19px; ">
  263. <caption>행추가</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. misfGridIUD(datagrid3, "A");
  267. var rowid = datagrid3.row;
  268. datagrid3.valueMatrix(rowid, datagrid3.colRef("instcd")) = model.getValue("/root/send/instcd");
  269. datagrid3.valueMatrix(rowid, datagrid3.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
  270. datagrid3.valueMatrix(rowid, datagrid3.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
  271. datagrid3.valueMatrix(rowid, datagrid3.colRef("flagcd")) = "3";
  272. /*
  273. model.setValue("/root/main/ndedlist/data3/instcd", model.getValue("/root/send/instcd"));
  274. model.setValue("/root/main/ndedlist/data3/addtaxyy", model.getValue("/root/send/addtaxyy"));
  275. model.setValue("/root/main/ndedlist/data3/addtaxpnt", model.getValue("/root/send/addtaxpnt"));
  276. model.setValue("/root/main/ndedlist/data3/flagcd","3");
  277. model.refresh();
  278. */
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="button5" class="btn2_letter3" style="left:1094px; top:383px; width:53px; height:19px; ">
  283. <caption>행삭제</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. misfGridIUD(datagrid3, "D");
  287. model.refresh();
  288. ]]>
  289. </script>
  290. </button>
  291. <caption id="caption7" class="tit_2" style="left:595px; top:383px; width:237px; height:13px; ">납부세액 또는 환급 세액 재계산 내역</caption>
  292. <line id="line5" class="line_1" style="x1:595px; y1:405px; x2:1150px; y2:406px; "/>
  293. <datagrid id="datagrid3" nodeset="/root/main/ndedlist/data3" caption="기관코드^년도^기간^구분^일련번호^해당재화의 매입세액^경감률^증/감 면세공급가액비율^가산/공제 매입세액" colsep="^" colwidth="0,0,0,0, 61, 130, 74, 120, 120" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="30" rowsep="|" style="left:595px; top:410px; width:560px; height:215px; ">
  294. <col ref="instcd" visibility="hidden"/>
  295. <col ref="addtaxyy" visibility="hidden"/>
  296. <col ref="addtaxpnt" visibility="hidden"/>
  297. <col ref="flagcd" visibility="hidden"/>
  298. <col ref="seqid"/>
  299. <col ref="item1" type="input" format="(-)#,###" style="text-align:right; "/>
  300. <col ref="item2" type="input" format="(-)#,###" style="text-align:right; "/>
  301. <col ref="item3" type="input" format="(-)#,###" style="text-align:right; "/>
  302. <col ref="item4" type="input" format="(-)#,###" style="text-align:right; "/>
  303. <script type="javascript" ev:event="xforms-value-changed">
  304. <![CDATA[
  305. var intItem1 = 0;
  306. var intItem2 = 0;
  307. var intItem3 = 0;
  308. intItem1 = datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item1"));
  309. intItem2 = datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item2"));
  310. intItem3 = datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item3"));
  311. if ( intItem1 != 0 && intItem2 != 0 && intItem3 != 0 ) {
  312. datagrid3.valueMatrix(datagrid3.row, datagrid3.colRef("item4")) = intItem1 * intItem2/100 * intItem3/100;
  313. }
  314. ]]>
  315. </script>
  316. </datagrid>
  317. <datagrid id="datagrid2" nodeset="/root/main/ndedlist/data2" autoresize="true" autosizemouse="true" caption="기관코드^년도^기간^구분^일련번호^총공통매입세액^면세사업확정비율^불공제매입 세액 총액^기불공제매입세액^가산 또는 공제되는 매입세액" colsep="^" colwidth="0, 0, 0, 0, 59, 90, 74, 73, 100, 112" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="300" rowsep="|" style="left:595px; top:155px; width:560px; height:210px; ">
  318. <col ref="instcd" visibility="hidden"/>
  319. <col ref="addtaxyy" visibility="hidden"/>
  320. <col ref="addtaxpnt" visibility="hidden"/>
  321. <col ref="flagcd" visibility="hidden"/>
  322. <col ref="seqid"/>
  323. <col ref="item1" type="input" format="(-)#,###" style="text-align:right; "/>
  324. <col ref="item2" type="input" format="(-)#,###" style="text-align:right; "/>
  325. <col ref="item3" type="input" format="(-)#,###" style="text-align:right; "/>
  326. <col ref="item4" type="input" format="(-)#,###" style="text-align:right; "/>
  327. <col ref="item5" type="input" format="(-)#,###" style="text-align:right; "/>
  328. <script type="javascript" ev:event="xforms-value-changed">
  329. <![CDATA[
  330. var intItem1 = 0;
  331. var intItem2 = 0;
  332. var intItem3 = 0;
  333. var intItem4 = 0;
  334. intItem1 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item1"));
  335. intItem2 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item2"));
  336. if ( intItem1 != 0 && intItem2 != 0 ) {
  337. datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item3")) = intItem1 * intItem2/100;
  338. }
  339. intItem3 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item3"));
  340. intItem4 = datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item4"));
  341. if ( intItem3 != 0 ) {
  342. datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("item5")) = intItem3 - intItem4;
  343. }
  344. ]]>
  345. </script>
  346. </datagrid>
  347. <datagrid id="datagrid1" nodeset="/root/main/ndedlist/data1" caption="기관코드^년도^기간^구분^일련번호^공급가액^세액^총공급가액 등^면세공급가액 등^불공제 매입세액" colsep="^" colwidth="0,0,0,0, 55, 90, 90, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:6px; top:155px; width:560px; height:470px; ">
  348. <col ref="instcd" visibility="hidden"/>
  349. <col ref="addtaxyy" visibility="hidden"/>
  350. <col ref="addtaxpnt" visibility="hidden"/>
  351. <col ref="flagcd" visibility="hidden"/>
  352. <col ref="seqid"/>
  353. <col ref="item1" type="input" format="(-)#,###" style="text-align:right; "/>
  354. <col ref="item2" type="input" format="(-)#,###" style="text-align:right; "/>
  355. <col ref="item3" type="input" format="(-)#,###" style="text-align:right; "/>
  356. <col ref="item4" type="input" format="(-)#,###" style="text-align:right; "/>
  357. <col ref="item5" type="input" format="(-)#,###" style="text-align:right; "/>
  358. <script type="javascript" ev:event="xforms-value-changed">
  359. <![CDATA[
  360. var intItem2 = 0;
  361. var intItem3 = 0;
  362. var intItem4 = 0;
  363. intItem2 = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item2"));
  364. intItem3 = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item3"));
  365. intItem4 = datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item4"));
  366. if ( intItem2 != 0 && intItem3 != 0 && intItem4 != 0 ) {
  367. datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("item5")) = intItem2 * (intItem4/intItem3);
  368. }
  369. ]]>
  370. </script>
  371. </datagrid>
  372. <line id="line2" class="line_6" style="x1:10px; y1:635px; x2:1155px; y2:635px; "/>
  373. <line id="line1" class="line_1" style="x1:11px; y1:147px; x2:561px; y2:148px; "/>
  374. </group>
  375. <caption id="caption1" class="tit_1" style="left:90px; top:45px; width:255px; height:13px; vertical-align:middle; ">공제받지 못할 매입세액 내역</caption>
  376. </xhtml:body>
  377. </xhtml:html>