SPRAD00102_개인신용카드사용내역관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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>개인 신용카드 사용 내역 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <cardexpsevdnc>
  12. <instcd/>
  13. <seqno/>
  14. <useflag>2</useflag>
  15. <instcardseqno/>
  16. <cardcmpycd/>
  17. <posspsn/>
  18. <posspsnnm/>
  19. <possdeptcd/>
  20. <possdeptnm/>
  21. <usedd/>
  22. <useamt/>
  23. <mainrec/>
  24. <entrregno/>
  25. <custnm/>
  26. <custaddr/>
  27. <cntctel/>
  28. <unsldd/>
  29. <unslno/>
  30. <undeciseqno/>
  31. <profcnt/>
  32. </cardexpsevdnc>
  33. </list>
  34. </main>
  35. <send>
  36. <retrparams>
  37. <instcd/>
  38. <seqno/>
  39. <useflag/>
  40. </retrparams>
  41. <list>
  42. <cardexpsevdnc>
  43. </cardexpsevdnc>
  44. </list>
  45. </send>
  46. <init/>
  47. <temp>
  48. <seqno>
  49. <seqno/>
  50. </seqno>
  51. </temp>
  52. <target/>
  53. </root>
  54. </instance>
  55. <submission id="TRRAD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/send/list"/>
  56. <submission id="TXRAD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list/cardexpsevdnc" resultref="/root/temp"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fInitialize();
  60. ]]>
  61. </script>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. function fInitialize()
  70. {
  71. model.removenode("/root/main/list/cardexpsevdnc");
  72. model.removenode("/root/send/list");
  73. model.refresh();
  74. model.setValue("/root/send/retrparams/instcd", model.getValue("/root/target/slipinfo/instcd"));
  75. model.setValue("/root/send/retrparams/seqno", model.getValue("/root/target/slipinfo/seqno"));
  76. model.setValue("/root/send/retrparams/useflag", model.getValue("/root/target/slipinfo/profflag"));
  77. misfMsterDetailSet(grd_cardexpsevdnc, null, "TRRAD00104", "Y");
  78. misfMsterDetailRetrieve();
  79. if(instance1.selectNodes("/root/send/list/cardexpsevdnc").length == 0)
  80. {
  81. misfGridIUD(grd_cardexpsevdnc, "A");
  82. model.setValue("/root/send/list/cardexpsevdnc/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
  83. model.setValue("/root/send/list/cardexpsevdnc/unslno", model.getValue("/root/target/slipinfo/unslno"));
  84. model.setValue("/root/send/list/cardexpsevdnc/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
  85. model.setValue("/root/send/list/cardexpsevdnc/useflag", model.getValue("/root/target/slipinfo/profflag"));
  86. }
  87. else
  88. {
  89. ipt_usedd.disabled = true;
  90. ipt_cardno.disabled = true;
  91. }
  92. model.copyNode("/root/main/list", "/root/send/list");
  93. model.makeValue("/root/main/list/cardexpsevdnc/dummy", "");
  94. model.makeNode("/root/main/list/cardexpsevdnc/profcnt");
  95. model.refresh();
  96. if (model.getValue("/root/main/list/cardexpsevdnc/entrregno") == "" && model.getValue("/root/target/slipinfo/custcd") != "") {
  97. model.setValue("/root/main/list/cardexpsevdnc/entrregno", model.getValue("/root/target/slipinfo/custcd"));
  98. model.refresh();
  99. ipt_entrregno.dispatch("xforms-value-changed");
  100. }
  101. if(model.getValue("/root/main/list/cardexpsevdnc/instcardseqno") == "")
  102. {
  103. model.makeValue("/root/main/list/cardexpsevdnc/useamt", model.getValue("/root/target/slipinfo/amt"));
  104. ipt_useamt.refresh();
  105. model.makeValue("/root/main/list/cardexpsevdnc/mainrec", model.getValue("/root/target/slipinfo/etcnotefact"));
  106. ipt_cmt.refresh();
  107. }
  108. model.setFocus("ipt_cardno");
  109. }
  110. function fSave()
  111. {
  112. if(model.getValue("/root/main/list/cardexpsevdnc/usedd") == "")
  113. {
  114. messageBox("사용일자는" ,"I003");
  115. model.setFocus("ipt_usedd");
  116. return;
  117. }
  118. misfGridRowStatusChange(grd_cardexpsevdnc, "/root/send/list", "/root/main/list");
  119. model.refresh();
  120. var aa = grd_cardexpsevdnc.getUpdateData();
  121. misfSave("TXRAD00104");
  122. var receiveref = model.getValue("/root/target/receiveref");
  123. if (checkOpener())
  124. {
  125. opener.model.setValue(receiveref + "/seqno", model.getValue("/root/temp/seqno/seqno"));
  126. opener.model.setValue(receiveref + "/amt", model.getValue("/root/send/list/cardexpsevdnc/useamt"));
  127. if(opener.model.getValue(receiveref + "/etcnotefact") == "")
  128. {
  129. opener.model.setValue(receiveref + "/etcnotefact", model.getValue("/root/send/list/cardexpsevdnc/mainrec"));
  130. }
  131. messageBox("저장이 " ,"I002");
  132. }
  133. else
  134. {
  135. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  136. }
  137. model.setValue("/root/main/list/cardexpsevdnc/seqno", model.getValue("/root/temp/seqno/seqno"));
  138. ipt_usedd.disabled = true;
  139. ipt_cardno.disabled = true;
  140. model.refresh();
  141. }
  142. function fDel()
  143. {
  144. misfGridRowStatusChange(grd_cardexpsevdnc, "/root/send/list", "/root/main/list");
  145. grd_cardexpsevdnc.addStatus(1, "delete");
  146. model.refresh();
  147. misfSave("TXRAD00104");
  148. model.removenode("/root/main/list/cardexpsevdnc");
  149. var receiveref = model.getValue("/root/target/receiveref");
  150. if (checkOpener())
  151. {
  152. opener.model.setValue(receiveref + "/seqno", "");
  153. }
  154. else
  155. {
  156. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  157. }
  158. misfGridIUD(grd_cardexpsevdnc, "A");
  159. model.copyNode("/root/main/list", "/root/send/list");
  160. model.makeValue("/root/main/list/cardexpsevdnc/dummy", "");
  161. model.setValue("/root/main/list/cardexpsevdnc/seqno", "");
  162. model.setValue("/root/main/list/cardexpsevdnc/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
  163. model.setValue("/root/main/list/cardexpsevdnc/unslno", model.getValue("/root/target/slipinfo/unslno"));
  164. model.setValue("/root/main/list/cardexpsevdnc/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
  165. model.setValue("/root/main/list/cardexpsevdnc/useflag", model.getValue("/root/target/slipinfo/profflag"));
  166. model.setValue("/root/main/list/cardexpsevdnc/entrregno", model.getValue("/root/target/slipinfo/custcd"));
  167. model.refresh();
  168. ipt_entrregno.dispatch("xforms-value-changed");
  169. ipt_usedd.disabled = false;
  170. ipt_cardno.disabled = false;
  171. model.setFocus("ipt_cardno");
  172. }
  173. ]]>
  174. </script>
  175. </xhtml:head>
  176. <xhtml:body pagewidth="560" pageheight="325" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  177. <group id="group1" style="left:0px; top:0px; width:544px; height:13px; ">
  178. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:316px; height:13px; ">개인 신용카드 사용 내역 관리</caption>
  179. </group>
  180. <group id="group2" scroll="auto" style="left:0px; top:12px; width:543px; height:277px; ">
  181. <line id="line2" class="line_1" style="x1:0px; y1:7px; x2:543px; y2:7px; "/>
  182. <input id="ipt_usedd" ref="/root/main/list/cardexpsevdnc/usedd" class="input_essential" navindex="5" inputtype="date" style="left:103px; top:85px; width:182px; height:19px; ">
  183. <script type="javascript" ev:event="onkeypress">
  184. <![CDATA[
  185. if(event.keyCode == 13)
  186. {
  187. model.setFocus("ipt_useamt");
  188. }
  189. ]]>
  190. </script>
  191. </input>
  192. <input id="ipt_cmt" ref="/root/main/list/cardexpsevdnc/mainrec" class="input_essential" navindex="7" style="left:103px; top:133px; width:347px; height:19px; ">
  193. <script type="javascript" ev:event="onkeypress">
  194. <![CDATA[
  195. if(event.keyCode == 13)
  196. {
  197. model.setFocus("btn_save");
  198. }
  199. ]]>
  200. </script>
  201. </input>
  202. <input id="ipt_cardno" ref="/root/main/list/cardexpsevdnc/instcardseqno" class="input_essential" navindex="1" format="9999-9999-9999-9999" showmask="true" style="left:103px; top:13px; width:182px; height:19px; ">
  203. <script type="javascript" ev:event="onkeypress">
  204. <![CDATA[
  205. if(event.keyCode == 13)
  206. {
  207. model.setFocus("cmb_cardcmpycd");
  208. }
  209. ]]>
  210. </script>
  211. </input>
  212. <button id="btn_userhelp" class="icon_search" navindex="-1" style="left:205px; top:62px; width:16px; height:16px; ">
  213. <caption/>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. misfOpenPopUpList("01", ipt_posspsn, "", "posspsn,posspsnnm");
  217. model.refresh();
  218. model.setFocus("ipt_usedd");
  219. ]]>
  220. </script>
  221. </button>
  222. <line id="line8" class="line_2" style="x1:0px; y1:226px; x2:543px; y2:226px; "/>
  223. <line id="line9" class="line_2" style="x1:0px; y1:202px; x2:543px; y2:202px; "/>
  224. <line id="line10" class="line_2" style="x1:0px; y1:58px; x2:543px; y2:58px; "/>
  225. <line id="line12" class="line_2" style="x1:0px; y1:178px; x2:543px; y2:178px; "/>
  226. <caption id="caption10" class="cell_1" style="left:0px; top:59px; width:100px; height:23px; vertical-align:middle; ">소유자</caption>
  227. <caption id="caption1" class="cell_1" style="left:0px; top:35px; width:100px; height:23px; vertical-align:middle; ">카드회사</caption>
  228. <line id="line13" class="line_2" style="x1:0px; y1:250px; x2:543px; y2:250px; "/>
  229. <caption id="caption2" class="cell_1" style="left:30px; top:179px; width:70px; height:23px; vertical-align:middle; ">상호</caption>
  230. <caption id="caption11" class="cell_1" style="left:0px; top:155px; width:29px; height:96px; text-align:left; vertical-align:middle; ">가맹점</caption>
  231. <caption id="caption3" class="cell_1" style="left:0px; top:83px; width:100px; height:23px; vertical-align:middle; ">사용일자</caption>
  232. <caption id="caption4" class="cell_1" style="left:0px; top:11px; width:100px; height:23px; vertical-align:middle; ">신용카드번호</caption>
  233. <caption id="caption5" class="cell_1" style="left:30px; top:203px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
  234. <caption id="caption14" class="cell_1" style="left:30px; top:155px; width:70px; height:23px; vertical-align:middle; ">사업자번호</caption>
  235. <caption id="caption15" class="cell_1" style="left:0px; top:131px; width:100px; height:23px; vertical-align:middle; ">적요</caption>
  236. <line id="line3" class="line_2" style="x1:0px; y1:130px; x2:543px; y2:130px; "/>
  237. <caption id="caption8" class="cell_1" style="left:0px; top:107px; width:100px; height:23px; vertical-align:middle; ">사용금액</caption>
  238. <line id="line4" class="line_2" style="x1:0px; y1:34px; x2:543px; y2:34px; "/>
  239. <caption id="caption9" class="cell_1" style="left:30px; top:227px; width:70px; height:23px; vertical-align:middle; ">전화번호</caption>
  240. <line id="line5" class="line_2" style="x1:0px; y1:82px; x2:543px; y2:82px; "/>
  241. <line id="line6" class="line_2" style="x1:0px; y1:106px; x2:543px; y2:106px; "/>
  242. <line id="line7" class="line_2" style="x1:0px; y1:154px; x2:543px; y2:154px; "/>
  243. <input id="ipt_custnm" ref="/root/main/list/cardexpsevdnc/custnm" class="input_default" navindex="-1" editable="false" style="left:103px; top:181px; width:222px; height:19px; ">
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. racfCustValidCheck("entrregno,custnm,dummy,cntctel,custaddr", "name");
  247. ]]>
  248. </script>
  249. </input>
  250. <input id="ipt_entrregno" ref="/root/main/list/cardexpsevdnc/entrregno" class="input_default" navindex="-1" editable="false" format="999-99-99999" style="left:103px; top:157px; width:182px; height:19px; ">
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. racfCustValidCheck("entrregno,custnm,dummy,cntctel,custaddr", "code");
  254. ]]>
  255. </script>
  256. </input>
  257. <line id="line15" class="line_2" style="x1:29px; y1:154px; x2:29px; y2:251px; "/>
  258. <select1 id="cmb_cardcmpycd" ref="/root/main/list/cardexpsevdnc/cardcmpycd" class="combo_default" disabled="false" navindex="2" appearance="minimal" style="left:103px; top:37px; width:222px; height:19px; ">
  259. <choices>
  260. <item>
  261. <label/>
  262. <value/>
  263. </item>
  264. <item>
  265. <label>국민카드</label>
  266. <value>01</value>
  267. </item>
  268. <item>
  269. <label>롯데카드</label>
  270. <value>02</value>
  271. </item>
  272. <item>
  273. <label>비씨카드</label>
  274. <value>03</value>
  275. </item>
  276. <item>
  277. <label>삼성카드</label>
  278. <value>04</value>
  279. </item>
  280. <item>
  281. <label>신한카드</label>
  282. <value>05</value>
  283. </item>
  284. <item>
  285. <label>씨티카드</label>
  286. <value>06</value>
  287. </item>
  288. <item>
  289. <label>엘지카드</label>
  290. <value>07</value>
  291. </item>
  292. <item>
  293. <label>외환카드</label>
  294. <value>08</value>
  295. </item>
  296. <item>
  297. <label>우리카드</label>
  298. <value>09</value>
  299. </item>
  300. <item>
  301. <label>조흥카드</label>
  302. <value>10</value>
  303. </item>
  304. <item>
  305. <label>현대카드</label>
  306. <value>11</value>
  307. </item>
  308. </choices>
  309. <script type="javascript" ev:event="onkeypress">
  310. <![CDATA[
  311. if(event.keyCode == 13)
  312. {
  313. model.setFocus("ipt_posspsnnm");
  314. }
  315. ]]>
  316. </script>
  317. </select1>
  318. <input id="ipt_posspsn" ref="/root/main/list/cardexpsevdnc/posspsn" class="input_essential" navindex="3" style="left:103px; top:61px; width:97px; height:19px; ">
  319. <script type="javascript" ev:event="onkeypress">
  320. <![CDATA[
  321. if(event.keyCode == 13)
  322. {
  323. model.setFocus("ipt_usedd");
  324. }
  325. ]]>
  326. </script>
  327. <script type="javascript" ev:event="xforms-value-changed">
  328. <![CDATA[
  329. misfValidationCheck("01-1", "", "posspsn,posspsnnm");
  330. model.refresh();
  331. ]]>
  332. </script>
  333. </input>
  334. <input id="ipt_posspsnnm" ref="/root/main/list/cardexpsevdnc/posspsnnm" class="input_essential" navindex="4" style="left:225px; top:61px; width:225px; height:19px; ">
  335. <script type="javascript" ev:event="onkeypress">
  336. <![CDATA[
  337. if(event.keyCode == 13)
  338. {
  339. model.setFocus("ipt_usedd");
  340. }
  341. ]]>
  342. </script>
  343. <script type="javascript" ev:event="xforms-value-changed">
  344. <![CDATA[
  345. misfValidationCheck("01-2", "", "posspsn,posspsnnm");
  346. model.refresh();
  347. ]]>
  348. </script>
  349. </input>
  350. <input id="ipt_useamt" ref="/root/main/list/cardexpsevdnc/useamt" class="input_essential" navindex="6" format="(-)#,###" style="left:103px; top:109px; width:182px; height:19px; text-align:right; ">
  351. <script type="javascript" ev:event="onkeypress">
  352. <![CDATA[
  353. if(event.keyCode == 13)
  354. {
  355. model.setFocus("ipt_cmt");
  356. }
  357. ]]>
  358. </script>
  359. </input>
  360. <input id="ipt_custaddr" ref="/root/main/list/cardexpsevdnc/custaddr" class="input_default" navindex="-1" editable="false" style="left:103px; top:204px; width:440px; height:19px; "/>
  361. <input id="ipt_cntctel" ref="/root/main/list/cardexpsevdnc/cntctel" class="input_default" navindex="-1" editable="false" style="left:103px; top:229px; width:222px; height:19px; "/>
  362. <caption id="caption12" class="cell_1" style="left:295px; top:107px; width:100px; height:23px; vertical-align:middle; ">증빙매수</caption>
  363. <input id="ipt_profcnt" ref="/root/main/list/cardexpsevdnc/profcnt" class="input_essential" navindex="3" format="###" style="left:398px; top:109px; width:122px; height:19px; text-align:right; "/>
  364. </group>
  365. <group id="grp_btn" scroll="auto" style="left:0px; top:292px; width:544px; height:27px; ">
  366. <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
  367. <button id="btn_save" class="btn4_letter2" navindex="8" style="left:372px; top:4px; width:56px; height:22px; ">
  368. <caption>저장</caption>
  369. <script type="javascript" ev:event="onkeypress">
  370. <![CDATA[
  371. if(event.keyCode == 13)
  372. {
  373. fSave();
  374. model.setFocus("btn_close");
  375. }
  376. ]]>
  377. </script>
  378. <script type="javascript" ev:event="onclick">
  379. <![CDATA[
  380. fSave();
  381. ]]>
  382. </script>
  383. </button>
  384. <button id="btn_delete" class="btn4_letter2" style="left:430px; top:4px; width:56px; height:22px; ">
  385. <caption>삭제</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. fDel();
  389. ]]>
  390. </script>
  391. </button>
  392. <button id="btn_close" class="btn4_letter2" navindex="9" style="left:488px; top:4px; width:56px; height:22px; ">
  393. <caption>닫기</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. window.close();
  397. ]]>
  398. </script>
  399. </button>
  400. </group>
  401. <datagrid id="grd_cardexpsevdnc" nodeset="/root/send/list/cardexpsevdnc" visibility="hidden" caption="기관코드^일련번호^사용구분^법인카드번호^카드사^소유자id^소유자명^소유부서코드^소유부서명^사용일자^사용금액^적요^사업자등록번호^업체명^주소^전화번호^미결전표일자^미결전표번호^미결일련번호" colwidth="30, 29, 26, 52, 37, 54, 26, 47, 43, 35, 35, 31, 50, 39, 38, 39, 50, 50, 50" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:15px; top:283px; width:45px; height:17px; ">
  402. <col ref="instcd"/>
  403. <col ref="seqno"/>
  404. <col ref="useflag"/>
  405. <col ref="instcardseqno"/>
  406. <col ref="cardcmpycd"/>
  407. <col ref="posspsn"/>
  408. <col ref="posspsnnm"/>
  409. <col ref="possdeptcd"/>
  410. <col ref="possdeptnm"/>
  411. <col ref="usedd"/>
  412. <col ref="useamt"/>
  413. <col ref="mainrec"/>
  414. <col ref="entrregno"/>
  415. <col ref="custnm"/>
  416. <col ref="custaddr"/>
  417. <col ref="cntctel"/>
  418. <col ref="unsldd"/>
  419. <col ref="unslno"/>
  420. <col ref="undeciseqno"/>
  421. <col ref="profcnt"/>
  422. </datagrid>
  423. </xhtml:body>
  424. </xhtml:html>