SPRAT01300_신용카드매출전표등발행금액집계표관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>신용카드매출전표등발행금액집계표관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <temp/>
  12. </list>
  13. <cardlist>
  14. <carddata>
  15. <instcd/>
  16. <addtaxyy/>
  17. <addtaxpnt/>
  18. <taxcrcard/>
  19. <taxrcpt/>
  20. <noncrcard/>
  21. <nonrcpt/>
  22. <svccrcard/>
  23. <svcrcpt/>
  24. <taxiss/>
  25. <stmntiss/>
  26. <chk/>
  27. </carddata>
  28. </cardlist>
  29. </main>
  30. <send>
  31. <instcd/>
  32. <addtaxyy/>
  33. <addtaxpnt/>
  34. <save>
  35. <carddata/>
  36. </save>
  37. <yyyy/>
  38. <reptkind/>
  39. </send>
  40. <target/>
  41. <init>
  42. <addtaxpnt>
  43. <item>
  44. <label>1기예정</label>
  45. <value>1</value>
  46. </item>
  47. <item>
  48. <label>1기확정</label>
  49. <value>2</value>
  50. </item>
  51. <item>
  52. <label>2기예정</label>
  53. <value>3</value>
  54. </item>
  55. <item>
  56. <label>2기확정</label>
  57. <value>4</value>
  58. </item>
  59. </addtaxpnt>
  60. </init>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fCheckAuth();
  66. fInitialize();
  67. ]]>
  68. </script>
  69. <submission id="TRRAT01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cardlist"/>
  70. <submission id="TXRAT01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/carddata" resultref="/root/main/list/temp"/>
  71. <submission id="TRRAT01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  77. <script type="javascript">
  78. <![CDATA[
  79. //========================================================================================
  80. //초기화
  81. //========================================================================================
  82. function fInitialize() {
  83. //ipt_yyyy.value = getCurrentDate().substr(0, 6);
  84. //ipt_yyyy.refresh();
  85. model.setValue("/root/send/addtaxyy", getCurrentDate().substr(0, 4));
  86. model.setValue("/root/send/addtaxpnt", "1");
  87. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  88. model.refresh();
  89. fRetrieve();
  90. }
  91. //========================================================================================
  92. //화면 권한 체크
  93. //========================================================================================
  94. function fCheckAuth() {
  95. //btn_search.disabled = !checkAuth("R") ;
  96. //btn_aprv.disabled = !checkAuth("X") ;
  97. //btn_delete.disabled = !checkAuth("X") ;
  98. //btn_prt.disabled = !checkAuth("P") ;
  99. }
  100. //========================================================================================
  101. //각종 코드 Help Open
  102. //========================================================================================
  103. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  104. {
  105. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  106. model.refresh();
  107. }
  108. //========================================================================================
  109. //코드 Validation Check
  110. //========================================================================================
  111. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
  112. {
  113. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  114. {
  115. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  116. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
  117. model.refresh();
  118. model.setFocus(pNextIndex);
  119. }
  120. }
  121. //========================================================================================
  122. // 조회
  123. //========================================================================================
  124. function fRetrieve()
  125. {
  126. // model.reset("/root/main/ndedlist/data1");
  127. // model.reset("/root/main/ndedlist/data2");
  128. model.reset("/root/main/cardlist/carddata");
  129. model.refresh();
  130. submit("TRRAT01301");
  131. // 등록된 데이타가 없는 경우 처리
  132. var rowcnt = datagrid1.rows;
  133. if ( rowcnt == 1 ) {
  134. misfGridIUD(datagrid1, "A");
  135. model.setValue("/root/main/cardlist/carddata/instcd", getUserInfo("dutplceinstcd"));
  136. model.setValue("/root/main/cardlist/carddata/addtaxyy", model.getValue("/root/send/addtaxyy"));
  137. model.setValue("/root/main/cardlist/carddata/addtaxpnt", model.getValue("/root/send/addtaxpnt"));
  138. }
  139. if (input5.value == '' && input4.value == '' && input8.value == '' && input7.value == '' && input10.value == '' && input9.value == '' && input12.value == '' && input13.value == ''){
  140. model.setValue("/root/main/cardlist/carddata/taxcrcard", "0");
  141. model.setValue("/root/main/cardlist/carddata/taxrcpt", "0");
  142. model.setValue("/root/main/cardlist/carddata/noncrcard", "0");
  143. model.setValue("/root/main/cardlist/carddata/nonrcpt", "0");
  144. model.setValue("/root/main/cardlist/carddata/svccrcard", "0");
  145. model.setValue("/root/main/cardlist/carddata/svcrcpt", "0");
  146. model.setValue("/root/main/cardlist/carddata/taxiss", "0");
  147. model.setValue("/root/main/cardlist/carddata/stmntiss", "0");
  148. model.refresh();
  149. fSave("s");
  150. }
  151. }
  152. //========================================================================================
  153. // 저장
  154. //========================================================================================
  155. function fSave( pram )
  156. {
  157. model.reset("/root/main/list/temp");
  158. model.reset("/root/send/save/carddata");
  159. var tmpstatus = model.getValue("/root/main/cardlist/carddata/chk");
  160. if ( tmpstatus == "s" && pram != "d") {
  161. datagrid1.rowStatus(1) = 2 ;
  162. }
  163. model.setValue("/root/send/save/carddata", datagrid1.getUpdateData());
  164. //model.refresh();
  165. misfSave("TXRAT01302");
  166. fRetrieve();
  167. }
  168. ]]>
  169. </script>
  170. </xhtml:head>
  171. <xhtml:body pagewidth="620" pageheight="430" guideline="1,1213;1,211;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  172. <group id="group3" scroll="auto" style="left:0px; top:20px; width:605px; height:385px; ">
  173. <group id="group4" style="left:10px; top:50px; width:585px; height:85px; vertical-align:top; ">
  174. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:575px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
  175. <line id="line10" class="line_4" style="x1:500px; y1:5px; x2:500px; y2:78px; "/>
  176. <caption id="caption3" class="search_name" style="left:10px; top:20px; width:101px; height:20px; ">년 도 :</caption>
  177. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:515px; top:20px; width:56px; height:22px; text-align:left; ">
  178. <caption>조회</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. fRetrieve();
  182. ]]>
  183. </script>
  184. </button>
  185. <caption id="caption9" class="search_name" style="left:10px; top:50px; width:106px; height:17px; ">신고 유형 :</caption>
  186. <select1 id="rdo_reptkind" ref="/root/send/addtaxpnt" class="radio_search" navindex="6" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:120px; top:50px; width:370px; height:20px; vertical-align:middle; border-style:none; ">
  187. <choices>
  188. <itemset nodeset="/root/init/addtaxpnt/item">
  189. <label ref="label"/>
  190. <value ref="value"/>
  191. </itemset>
  192. </choices>
  193. </select1>
  194. <button id="button3" class="icon_next" navindex="-1" style="left:204px; top:21px; width:13px; height:15px; ">
  195. <caption/>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  199. var vNum = parseInt(vYYYY, 10);
  200. if (vNum != 1)
  201. {
  202. vNum++;
  203. }
  204. else
  205. {
  206. return;
  207. }
  208. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  209. ipt_yyyy.refresh();
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="button4" class="icon_pre" navindex="-1" style="left:119px; top:21px; width:13px; height:15px; ">
  214. <caption/>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  218. var vNum = parseInt(vYYYY, 10);
  219. if (vNum != 1)
  220. {
  221. vNum--;
  222. }
  223. else
  224. {
  225. return;
  226. }
  227. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  228. ipt_yyyy.refresh();
  229. ]]>
  230. </script>
  231. </button>
  232. <input id="ipt_yyyy" ref="/root/send/addtaxyy" class="input_s_essential" navindex="6" maxlength="4" style="left:134px; top:20px; width:67px; height:19px; text-align:center; "/>
  233. </group>
  234. <group id="grp_4" scroll="auto" style="left:0px; top:10px; width:595px; height:35px; ">
  235. <line id="line3" class="line_6" style="x1:0px; y1:30px; x2:575px; y2:30px; "/>
  236. <button id="btn_print" class="btn6_letter2" navindex="1" style="left:10px; top:5px; width:56px; height:22px; ">
  237. <caption>출력</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. model.setValue("/root/send/yyyy", model.getValue("/root/send/addtaxyy"));
  241. model.setValue("/root/send/reptkind", model.getValue("/root/send/addtaxpnt"));
  242. submit("TRRAT01303");
  243. exeReportPreview("RPRAT01301", "XMLSTR");
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="button39" class="btn4_letter2" navindex="2" style="left:405px; top:5px; width:56px; height:22px; ">
  248. <caption>저장</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. //fInsAactcdprtlist();
  252. fSave("s");
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_del" class="btn4_letter2" navindex="3" style="left:465px; top:5px; width:56px; height:22px; ">
  257. <caption>삭제</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. misfGridIUD(datagrid1, "D");
  261. model.refresh();
  262. fSave("d");
  263. ]]>
  264. </script>
  265. </button>
  266. <button id="btn_close" class="btn4_letter2" navindex="4" style="left:525px; top:5px; width:56px; height:22px; ">
  267. <caption>닫기</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. window.close();
  271. ]]>
  272. </script>
  273. </button>
  274. </group>
  275. <line id="line2" class="line_6" style="x1:10px; y1:375px; x2:585px; y2:375px; "/>
  276. <input id="input7" ref="/root/main/cardlist/carddata/nonrcpt" class="input_default" disabled="false" navindex="11" editable="true" format="#,###" style="left:295px; top:235px; width:151px; height:19px; text-align:right; "/>
  277. <input id="input8" ref="/root/main/cardlist/carddata/noncrcard" class="input_default" disabled="false" navindex="10" editable="true" format="#,###" style="left:135px; top:235px; width:151px; height:19px; text-align:right; "/>
  278. <input id="input9" ref="/root/main/cardlist/carddata/svcrcpt" class="input_default" disabled="false" navindex="13" editable="true" format="#,###" style="left:295px; top:260px; width:151px; height:19px; text-align:right; "/>
  279. <caption id="caption20" class="cell_1" style="left:295px; top:345px; width:119px; height:19px; text-align:center; vertical-align:middle; ">계산서 교부금액</caption>
  280. <input id="input10" ref="/root/main/cardlist/carddata/svccrcard" class="input_default" disabled="false" navindex="12" editable="true" format="#,###" style="left:135px; top:260px; width:151px; height:19px; text-align:right; "/>
  281. <input id="input12" ref="/root/main/cardlist/carddata/taxiss" class="input_default" disabled="false" navindex="14" editable="true" format="#,###" style="left:135px; top:345px; width:151px; height:19px; text-align:right; "/>
  282. <caption id="caption11" class="cell_1" style="left:10px; top:210px; width:119px; height:19px; text-align:center; vertical-align:middle; ">과세 매출분</caption>
  283. <input id="input13" ref="/root/main/cardlist/carddata/stmntiss" class="input_default" disabled="false" navindex="15" editable="true" format="#,###" style="left:420px; top:345px; width:151px; height:19px; text-align:right; "/>
  284. <caption id="caption12" class="cell_1" style="left:10px; top:235px; width:119px; height:19px; text-align:center; vertical-align:middle; ">면세 매출분</caption>
  285. <caption id="caption13" class="cell_1" style="left:10px; top:260px; width:119px; height:19px; text-align:center; vertical-align:middle; ">봉 사 료</caption>
  286. <caption id="caption2" class="tit_2" style="left:15px; top:151px; width:227px; height:13px; ">신용카드매출전표 등 발행금액 현황</caption>
  287. <caption id="caption14" class="cell_1" style="left:10px; top:185px; width:119px; height:19px; text-align:center; vertical-align:middle; ">구 분</caption>
  288. <line id="line4" class="line_1" style="x1:5px; y1:170px; x2:580px; y2:169px; "/>
  289. <caption id="caption16" class="tit_2" style="left:15px; top:321px; width:397px; height:13px; ">신용카드매출전표 등 발행금액 중 세금계산서(계산서) 교부 내역</caption>
  290. <caption id="caption7" class="cell_1" style="left:135px; top:185px; width:151px; height:19px; text-align:center; vertical-align:middle; ">신용 직불 기명식 선불카드</caption>
  291. <line id="line5" class="line_1" style="x1:10px; y1:340px; x2:585px; y2:339px; "/>
  292. <caption id="caption8" class="cell_1" style="left:295px; top:185px; width:151px; height:19px; text-align:center; vertical-align:middle; ">현금 영수증</caption>
  293. <caption id="caption18" class="cell_1" style="left:10px; top:345px; width:119px; height:19px; text-align:center; vertical-align:middle; ">세금계산서 교부금액</caption>
  294. <input id="input4" ref="/root/main/cardlist/carddata/taxrcpt" class="input_default" disabled="false" navindex="9" editable="true" format="#,###" style="left:295px; top:210px; width:151px; height:19px; text-align:right; "/>
  295. <input id="input5" ref="/root/main/cardlist/carddata/taxcrcard" class="input_default" disabled="false" navindex="8" editable="true" format="#,###" style="left:135px; top:210px; width:151px; height:19px; text-align:right; "/>
  296. </group>
  297. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:255px; height:14px; vertical-align:middle; ">신용카드매출전표등발행금액집계표관리</caption>
  298. <datagrid id="datagrid1" nodeset="/root/main/cardlist/carddata" visibility="hidden" caption="1^2^3^caption1^caption2^4^5^6^7^8^9^10^11" colsep="^" colwidth="20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:460px; top:300px; width:130px; height:45px; ">
  299. <col ref="instcd"/>
  300. <col ref="addtaxyy"/>
  301. <col ref="addtaxpnt"/>
  302. <col ref="taxcrcard"/>
  303. <col ref="taxrcpt"/>
  304. <col ref="noncrcard"/>
  305. <col ref="nonrcpt"/>
  306. <col ref="svccrcard"/>
  307. <col ref="svcrcpt"/>
  308. <col ref="taxiss"/>
  309. <col ref="stmntiss"/>
  310. <col ref="chk"/>
  311. </datagrid>
  312. </xhtml:body>
  313. </xhtml:html>