SPRAD00103_현금영수증사용내역관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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. <cardexpsevdnc>
  12. <instcd/>
  13. <seqno/>
  14. <useflag>3</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" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  68. <script type="javascript">
  69. <![CDATA[
  70. function fInitialize()
  71. {
  72. model.removenode("/root/main/list/cardexpsevdnc");
  73. model.removenode("/root/send/list");
  74. model.refresh();
  75. model.setValue("/root/send/retrparams/instcd", model.getValue("/root/target/slipinfo/instcd"));
  76. model.setValue("/root/send/retrparams/seqno", model.getValue("/root/target/slipinfo/seqno"));
  77. model.setValue("/root/send/retrparams/useflag", model.getValue("/root/target/slipinfo/profflag"));
  78. misfMsterDetailSet(grd_cardexpsevdnc, null, "TRRAD00104", "Y");
  79. misfMsterDetailRetrieve();
  80. if(instance1.selectNodes("/root/send/list/cardexpsevdnc").length == 0)
  81. {
  82. misfGridIUD(grd_cardexpsevdnc, "A");
  83. model.setValue("/root/send/list/cardexpsevdnc/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
  84. model.setValue("/root/send/list/cardexpsevdnc/unslno", model.getValue("/root/target/slipinfo/unslno"));
  85. model.setValue("/root/send/list/cardexpsevdnc/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
  86. model.setValue("/root/send/list/cardexpsevdnc/useflag", model.getValue("/root/target/slipinfo/profflag"));
  87. }
  88. else
  89. {
  90. ipt_usedd.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/posspsn") == "")
  102. {
  103. if(checkOpener())
  104. {
  105. model.makeValue("/root/main/list/cardexpsevdnc/mainrec", model.getValue("/root/target/slipinfo/etcnotefact"));
  106. ipt_cmt.refresh();
  107. model.makeValue("/root/main/list/cardexpsevdnc/useamt", model.getValue("/root/target/slipinfo/amt"));
  108. ipt_amt.refresh();
  109. model.setValue("/root/main/list/cardexpsevdnc/posspsn", model.getValue("root/target/slipinfo/emplno"));
  110. ipt_posspsn.refresh();
  111. ipt_posspsn.dispatch("xforms-value-changed");
  112. }
  113. }
  114. model.setFocus("ipt_cardno");
  115. }
  116. function fSave()
  117. {
  118. if(model.getValue("/root/main/list/cardexpsevdnc/usedd") == "")
  119. {
  120. messageBox("사용일자는" ,"I003");
  121. model.setFocus("ipt_usedd");
  122. return;
  123. }
  124. misfGridRowStatusChange(grd_cardexpsevdnc, "/root/send/list", "/root/main/list");
  125. model.refresh();
  126. var aa = grd_cardexpsevdnc.getUpdateData();
  127. misfSave("TXRAD00104");
  128. var receiveref = model.getValue("/root/target/receiveref");
  129. if (checkOpener())
  130. {
  131. opener.model.setValue(receiveref + "/seqno", model.getValue("/root/temp/seqno/seqno"));
  132. opener.model.setValue(receiveref + "/amt", model.getValue("/root/send/list/cardexpsevdnc/useamt"));
  133. if(opener.model.getValue(receiveref + "/etcnotefact") == "")
  134. {
  135. opener.model.setValue(receiveref + "/etcnotefact", model.getValue("/root/send/list/cardexpsevdnc/mainrec"));
  136. }
  137. messageBox("저장이 " ,"I002");
  138. }
  139. else
  140. {
  141. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  142. }
  143. model.setValue("/root/main/list/cardexpsevdnc/seqno", model.getValue("/root/temp/seqno/seqno"));
  144. ipt_usedd.disabled = true;
  145. model.refresh();
  146. }
  147. function fDel()
  148. {
  149. misfGridRowStatusChange(grd_cardexpsevdnc, "/root/send/list", "/root/main/list");
  150. grd_cardexpsevdnc.addStatus(1, "delete");
  151. model.refresh();
  152. misfSave("TXRAD00104");
  153. model.removenode("/root/main/list/cardexpsevdnc");
  154. var receiveref = model.getValue("/root/target/receiveref");
  155. if (checkOpener())
  156. {
  157. opener.model.setValue(receiveref + "/seqno", "");
  158. }
  159. else
  160. {
  161. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  162. }
  163. misfGridIUD(grd_cardexpsevdnc, "A");
  164. model.copyNode("/root/main/list", "/root/send/list");
  165. model.makeValue("/root/main/list/cardexpsevdnc/dummy", "");
  166. model.setValue("/root/main/list/cardexpsevdnc/seqno", "");
  167. model.setValue("/root/main/list/cardexpsevdnc/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
  168. model.setValue("/root/main/list/cardexpsevdnc/unslno", model.getValue("/root/target/slipinfo/unslno"));
  169. model.setValue("/root/main/list/cardexpsevdnc/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
  170. model.setValue("/root/main/list/cardexpsevdnc/useflag", model.getValue("/root/target/slipinfo/profflag"));
  171. model.setValue("/root/main/list/cardexpsevdnc/entrregno", model.getValue("/root/target/slipinfo/custcd"));
  172. model.refresh();
  173. ipt_entrregno.dispatch("xforms-value-changed");
  174. ipt_usedd.disabled = false;
  175. model.setFocus("ipt_cardno");
  176. }
  177. ]]>
  178. </script>
  179. </xhtml:head>
  180. <xhtml:body pagewidth="560" pageheight="255" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  181. <group id="group1" style="left:0px; top:0px; width:544px; height:13px; ">
  182. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:316px; height:14px; ">현금영수증 사용내역 관리</caption>
  183. </group>
  184. <group id="group2" scroll="auto" style="left:0px; top:12px; width:543px; height:203px; ">
  185. <line id="line2" class="line_1" style="x1:0px; y1:7px; x2:543px; y2:7px; "/>
  186. <input id="ipt_usedd" ref="/root/main/list/cardexpsevdnc/usedd" class="input_essential" navindex="2" inputtype="date" style="left:103px; top:37px; width:182px; height:19px; ">
  187. <script type="javascript" ev:event="onkeypress">
  188. <![CDATA[
  189. if(event.keyCode == 13)
  190. {
  191. model.setFocus("ipt_amt");
  192. }
  193. ]]>
  194. </script>
  195. </input>
  196. <input id="ipt_cmt" ref="/root/main/list/cardexpsevdnc/mainrec" class="input_essential" navindex="4" style="left:103px; top:85px; width:347px; height:19px; ">
  197. <script type="javascript" ev:event="onkeypress">
  198. <![CDATA[
  199. if(event.keyCode == 13)
  200. {
  201. model.setFocus("btn_save");
  202. }
  203. ]]>
  204. </script>
  205. </input>
  206. <input id="ipt_amt" ref="/root/main/list/cardexpsevdnc/useamt" class="input_essential" navindex="3" format="(-)#,###" style="left:103px; top:61px; width:182px; height:19px; text-align:right; ">
  207. <script type="javascript" ev:event="onkeypress">
  208. <![CDATA[
  209. if(event.keyCode == 13)
  210. {
  211. model.setFocus("ipt_cmt");
  212. }
  213. ]]>
  214. </script>
  215. </input>
  216. <input id="ipt_posspsnnm" ref="/root/main/list/cardexpsevdnc/posspsnnm" class="input_essential" navindex="1" style="left:225px; top:13px; width:225px; height:19px; ">
  217. <script type="javascript" ev:event="xforms-value-changed">
  218. <![CDATA[
  219. misfValidationCheck("49", "", "posspsn,posspsnnm","","","name","");
  220. model.refresh();
  221. ]]>
  222. </script>
  223. <script type="javascript" ev:event="onkeypress">
  224. <![CDATA[
  225. if(event.keyCode == 13)
  226. {
  227. model.setFocus("ipt_usedd");
  228. }
  229. ]]>
  230. </script>
  231. </input>
  232. <button id="btn_userhelp" class="icon_search" navindex="-1" style="left:205px; top:14px; width:16px; height:16px; ">
  233. <caption/>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. misfOpenPopUpList("49", ipt_posspsn, "", "posspsn,posspsnnm");
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </button>
  241. <line id="line8" class="line_2" style="x1:0px; y1:178px; x2:543px; y2:178px; "/>
  242. <line id="line9" class="line_2" style="x1:0px; y1:154px; x2:543px; y2:154px; "/>
  243. <line id="line12" class="line_2" style="x1:0px; y1:130px; x2:543px; y2:130px; "/>
  244. <caption id="caption10" class="cell_1" style="left:0px; top:11px; width:100px; height:23px; vertical-align:middle; ">사용자</caption>
  245. <line id="line13" class="line_2" style="x1:0px; y1:202px; x2:543px; y2:202px; "/>
  246. <caption id="caption2" class="cell_1" style="left:30px; top:131px; width:70px; height:23px; vertical-align:middle; ">상호</caption>
  247. <caption id="caption11" class="cell_1" style="left:0px; top:107px; width:29px; height:96px; text-align:left; vertical-align:middle; ">가맹점</caption>
  248. <caption id="caption3" class="cell_1" style="left:0px; top:35px; width:100px; height:23px; vertical-align:middle; ">사용일자</caption>
  249. <caption id="caption5" class="cell_1" style="left:30px; top:155px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
  250. <caption id="caption14" class="cell_1" style="left:30px; top:107px; width:70px; height:23px; vertical-align:middle; ">사업자번호</caption>
  251. <caption id="caption15" class="cell_1" style="left:0px; top:83px; width:100px; height:23px; vertical-align:middle; ">적요</caption>
  252. <line id="line3" class="line_2" style="x1:0px; y1:82px; x2:543px; y2:82px; "/>
  253. <caption id="caption8" class="cell_1" style="left:0px; top:59px; width:100px; height:23px; vertical-align:middle; ">사용금액</caption>
  254. <caption id="caption9" class="cell_1" style="left:30px; top:179px; width:70px; height:23px; vertical-align:middle; ">전화번호</caption>
  255. <line id="line5" class="line_2" style="x1:0px; y1:34px; x2:543px; y2:34px; "/>
  256. <line id="line6" class="line_2" style="x1:0px; y1:58px; x2:543px; y2:58px; "/>
  257. <line id="line7" class="line_2" style="x1:0px; y1:106px; x2:543px; y2:106px; "/>
  258. <input id="ipt_custnm" ref="/root/main/list/cardexpsevdnc/custnm" class="input_default" navindex="-1" editable="false" style="left:103px; top:133px; width:222px; height:19px; ">
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. racfCustValidCheck("entrregno,custnm,dummy,cntctel,custaddr", "name");
  262. ]]>
  263. </script>
  264. </input>
  265. <input id="input1" ref="/root/main/list/cardexpsevdnc/custaddr" class="input_default" navindex="-1" editable="false" style="left:103px; top:156px; width:440px; height:19px; "/>
  266. <input id="input2" ref="/root/main/list/cardexpsevdnc/cntctel" class="input_default" navindex="-1" editable="false" style="left:103px; top:181px; width:222px; height:19px; "/>
  267. <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:109px; width:182px; height:19px; ">
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. racfCustValidCheck("entrregno,custnm,dummy,cntctel,custaddr", "code");
  271. ]]>
  272. </script>
  273. </input>
  274. <line id="line15" class="line_2" style="x1:29px; y1:106px; x2:29px; y2:203px; "/>
  275. <line id="line11" class="line_3" style="x1:0px; y1:202px; x2:543px; y2:202px; "/>
  276. <input id="ipt_posspsn" ref="/root/main/list/cardexpsevdnc/posspsn" class="input_essential" style="left:103px; top:13px; width:97px; height:19px; ">
  277. <script type="javascript" ev:event="xforms-value-changed">
  278. <![CDATA[
  279. misfValidationCheck("49", "", "posspsn,posspsnnm", "", "", "code","");
  280. model.refresh();
  281. ]]>
  282. </script>
  283. <script type="javascript" ev:event="onkeypress">
  284. <![CDATA[
  285. if(event.keyCode == 13)
  286. {
  287. model.setFocus("ipt_usedd");
  288. }
  289. ]]>
  290. </script>
  291. </input>
  292. <caption id="caption12" class="cell_1" style="left:305px; top:59px; width:100px; height:23px; vertical-align:middle; ">증빙매수</caption>
  293. <input id="ipt_profcnt" ref="/root/main/list/cardexpsevdnc/profcnt" class="input_essential" navindex="3" format="###" style="left:408px; top:61px; width:122px; height:19px; text-align:right; "/>
  294. </group>
  295. <group id="grp_btn" scroll="auto" style="left:0px; top:222px; width:544px; height:27px; ">
  296. <line id="line1" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
  297. <button id="btn_save" class="btn4_letter2" navindex="5" style="left:372px; top:4px; width:56px; height:22px; ">
  298. <caption>저장</caption>
  299. <script type="javascript" ev:event="onkeypress">
  300. <![CDATA[
  301. if(event.keyCode == 13)
  302. {
  303. fSave();
  304. model.setFocus("btn_close");
  305. }
  306. ]]>
  307. </script>
  308. <script type="javascript" ev:event="onclick">
  309. <![CDATA[
  310. fSave();
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_delete" class="btn4_letter2" navindex="7" style="left:430px; top:4px; width:56px; height:22px; ">
  315. <caption>삭제</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. fDel();
  319. ]]>
  320. </script>
  321. </button>
  322. <button id="btn_close" class="btn4_letter2" navindex="6" style="left:488px; top:4px; width:56px; height:22px; ">
  323. <caption>닫기</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. window.close();
  327. ]]>
  328. </script>
  329. </button>
  330. </group>
  331. <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:25px; top:228px; width:45px; height:17px; ">
  332. <col ref="instcd"/>
  333. <col ref="seqno"/>
  334. <col ref="useflag"/>
  335. <col ref="instcardseqno"/>
  336. <col ref="cardcmpycd"/>
  337. <col ref="posspsn"/>
  338. <col ref="posspsnnm"/>
  339. <col ref="possdeptcd"/>
  340. <col ref="possdeptnm"/>
  341. <col ref="usedd"/>
  342. <col ref="useamt"/>
  343. <col ref="mainrec"/>
  344. <col ref="entrregno"/>
  345. <col ref="custnm"/>
  346. <col ref="custaddr"/>
  347. <col ref="cntctel"/>
  348. <col ref="unsldd"/>
  349. <col ref="unslno"/>
  350. <col ref="undeciseqno"/>
  351. <col ref="profcnt"/>
  352. </datagrid>
  353. </xhtml:body>
  354. </xhtml:html>