SPPMC06200_가상계좌기관코드관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPMC06200_가상계좌기관코드관리.xrw
  4. * 설 명 : 가상계좌기관코드관리
  5. * 설 계 자 : JHP
  6. * 작 성 자 : JHP
  7. * 작 성 일 : 2008.12.22
  8. -->
  9. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  10. <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">
  11. <xhtml:head>
  12. <xhtml:title>가상계좌기관코드관리</xhtml:title>
  13. <model id="model1">
  14. <instance id="instance1">
  15. <root xmlns="">
  16. <main>
  17. <grid>
  18. <vainstlist>
  19. <vainst/>
  20. </vainstlist>
  21. </grid>
  22. </main>
  23. <send>
  24. <vainstref>
  25. <vainstnm/>
  26. <vainstcd/>
  27. </vainstref>
  28. <savevainst>
  29. <vainstcd/>
  30. <vainstnm/>
  31. <remfact/>
  32. <saveflag/>
  33. </savevainst>
  34. </send>
  35. <hidden>
  36. <savecnt>
  37. <setcnt/>
  38. <msg/>
  39. </savecnt>
  40. <transvainstcd>
  41. <vainstcd/>
  42. </transvainstcd>
  43. </hidden>
  44. <init/>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fInitialize();
  50. ]]>
  51. </script>
  52. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  53. <submission id="TRPMC06200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/vainstref" resultref="/root/main/grid/vainstlist"/>
  54. <submission id="TXPMC06200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savevainst" resultref="/root/hidden/savecnt"/>
  55. <submission id="TXPMB02000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/updateData/grdGroupData"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript">
  64. <![CDATA[
  65. function fInitialize()
  66. {
  67. // var saveflag = ipt_saveflag.value;
  68. // if(saveflag == 'I' || saveflag == ''){
  69. // ipt_savevainstcd.disabled= false;
  70. // }else{
  71. // ipt_savevainstcd.disabled=true;
  72. // }
  73. }
  74. // 저장
  75. function fSaveVainstcd(){
  76. model.resetInstanceNode("/root/hidden/savecnt");
  77. var vainstcd = ipt_savevainstcd.value;
  78. var vainstnm = ipt_savevainstnm.value;
  79. var remfact = ipt_saveremfact.value;
  80. //if(vainstcd == "" || vainstnm == ""){
  81. if(vainstnm == ""){
  82. messageBox("저장내용을 ","C001");
  83. return false;
  84. }else{
  85. var message = messageBox("입력하신 가상계좌기관코드를 저장 ","Q004");
  86. if(message == '6'){
  87. var saveflag1 = model.getValue("/root/send/savevainst/saveflag");
  88. if(saveflag1 == ""){
  89. model.setValue("/root/send/savevainst/saveflag","I");
  90. model.refreshpart("/root/send/savevainst/saveflag");
  91. }
  92. submit("TXPMC06200");
  93. }else{
  94. messageBox("저장/수정 ", "E009");
  95. }
  96. }
  97. }
  98. // 저장 / 수정
  99. function fDelVainstcd(){
  100. model.resetInstanceNode("/root/hidden/savecnt");
  101. var vainstcd = ipt_savevainstcd.value;
  102. var vainstnm = ipt_savevainstnm.value;
  103. var remfact = ipt_saveremfact.value;
  104. if(vainstcd == ""){
  105. messageBox("삭제내용을 ","C001");
  106. return false;
  107. }else{
  108. var message = messageBox("입력하신 가상계좌기관코드를 ","Q001");
  109. if(message == '6'){
  110. model.setValue("/root/send/savevainst/saveflag","D");
  111. submit("TXPMC06200");
  112. }else{
  113. messageBox("삭제를 ", "E009");
  114. }
  115. }
  116. }
  117. // 재조회
  118. function fReRef(){
  119. var cnt = model.getValue("/root/hidden/savecnt/setcnt");
  120. var msg = model.getValue("/root/hidden/savecnt/msg");
  121. if(msg != ""){
  122. alert(msg);
  123. }
  124. submit("TRPMC06200");
  125. }
  126. ]]>
  127. </script>
  128. </xhtml:head>
  129. <xhtml:body pagewidth="660" pageheight="550" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  130. <group id="group2" scroll="auto" style="left:5px; top:54px; width:650px; height:465px; ">
  131. <datagrid id="datagrid2" nodeset="/root/main/grid/vainstlist/vainst" visibility="visible" caption="가상계좌기관코드^가상계좌기관명^비고^최초등록자^최초등록일시^최종수정자^최종수정일시" colsep="^" colwidth="110, 192, 323, 98, 150, 94, 153" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="10" style="left:2px; top:109px; width:648px; height:352px; ">
  132. <col ref="vainstcd" style="text-align:center; "/>
  133. <col ref="vainstnm" style="text-align:center; "/>
  134. <col ref="remfact" style="text-align:left; "/>
  135. <col ref="fstrgstrid" style="text-align:left; "/>
  136. <col ref="fstrgstdt" style="text-align:right; "/>
  137. <col ref="lastupdtrid" style="text-align:center; "/>
  138. <col ref="lastupdtdt" style="text-align:center; "/>
  139. <script type="javascript" ev:event="onclick">
  140. <![CDATA[
  141. ipt_savevainstcd.disabled=true;
  142. var row = datagrid2.row;
  143. if(row > 0){
  144. model.copyNode("/root/send/savevainst","/root/main/grid/vainstlist/vainst[" + row + "]");
  145. model.makeNode("/root/send/savevainst/saveflag");
  146. model.setValue("/root/send/savevainst/saveflag","U");
  147. model.refresh();
  148. }
  149. ]]>
  150. </script>
  151. <script type="javascript" ev:event="ondblclick">
  152. <![CDATA[
  153. var vainstcd = model.getValue("/root/main/grid/vainstlist/vainst[" + datagrid2.row + "]/vainstcd");
  154. model.setValue("/root/hidden/transvainstcd/vainstcd",vainstcd);
  155. if ( checkOpener() ) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  156. model.setValue(opener.root.send.send_pid.pid, vainstcd); // 심사자여부
  157. model.refreshpart(opener.root.send.send_pid.pid);
  158. opener.javascript.fPatInfo();
  159. } else {
  160. messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
  161. }
  162. window.close();
  163. ]]>
  164. </script>
  165. </datagrid>
  166. <button id="btn_save" class="btn2_letter2" navindex="8" style="left:561px; top:6px; width:42px; height:19px; ">
  167. <caption>저장</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. fSaveVainstcd();
  171. fReRef();
  172. ]]>
  173. </script>
  174. </button>
  175. <caption id="caption9" class="tit_2" style="left:4px; top:89px; width:135px; height:13px; ">상세 코드 조회</caption>
  176. <line id="line5" class="line_1" style="x1:0px; y1:104px; x2:650px; y2:104px; "/>
  177. <input id="ipt_saveremfact" ref="/root/send/savevainst/remfact" navindex="7" autonext="false" style="left:121px; top:56px; width:526px; height:19px; "/>
  178. <caption id="caption13" class="cell_1" style="left:4px; top:28px; width:116px; height:23px; ">가상계좌기관코드</caption>
  179. <caption id="caption14" class="cell_1" style="left:228px; top:28px; width:116px; height:23px; ">가상계좌 기관명</caption>
  180. <input id="ipt_savevainstnm" ref="/root/send/savevainst/vainstnm" navindex="6" autonext="false" style="left:344px; top:30px; width:303px; height:19px; "/>
  181. <caption id="caption16" class="cell_1" style="left:4px; top:54px; width:116px; height:23px; ">비 고</caption>
  182. <input id="ipt_savevainstcd" ref="/root/send/savevainst/vainstcd" disabled="true" navindex="5" autonext="false" style="left:120px; top:30px; width:105px; height:19px; "/>
  183. <line id="line12" class="line_2" style="x1:0px; y1:78px; x2:650px; y2:78px; "/>
  184. <line id="line1" class="line_2" style="x1:0px; y1:26px; x2:650px; y2:26px; "/>
  185. <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:650px; y2:52px; "/>
  186. <button id="btn_del" class="btn5_letter2" navindex="9" style="left:604px; top:6px; width:42px; height:19px; ">
  187. <caption>삭제</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. fDelVainstcd();
  191. fReRef();
  192. ]]>
  193. </script>
  194. </button>
  195. <input id="ipt_saveflag" ref="/root/send/savevainst/saveflag" disabled="true" navindex="4" visibility="hidden" autonext="false" style="left:5px; top:5px; width:15px; height:19px; "/>
  196. </group>
  197. <group id="group1" style="left:6px; top:3px; width:650px; height:13px; ">
  198. <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">가상계좌 기관코드관리</caption>
  199. </group>
  200. <group id="group5" style="left:5px; top:521px; width:650px; height:27px; vertical-align:top; ">
  201. <button id="button3" class="btn4_letter3" navindex="11" style="left:580px; top:2px; width:68px; height:22px; text-align:left; ">
  202. <caption>초기화</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. model.reset();
  206. fInitialize();
  207. ]]>
  208. </script>
  209. </button>
  210. </group>
  211. <group id="group3" style="left:5px; top:18px; width:650px; height:35px; vertical-align:top; ">
  212. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:650px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  213. <caption id="caption1" class="search_name" style="left:5px; top:8px; width:75px; height:17px; ">기관명 :</caption>
  214. <caption id="caption2" class="search_name" style="left:295px; top:8px; width:90px; height:17px; vertical-align:middle; ">기관코드 :</caption>
  215. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:588px; top:8px; width:56px; height:22px; ">
  216. <caption>조회</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. submit("TRPMC06200");
  220. model.refresh();
  221. ]]>
  222. </script>
  223. </button>
  224. <input id="ipt_vainstnm" ref="/root/send/vainstref/vainstnm" navindex="1" style="left:80px; top:7px; width:205px; height:19px; ">
  225. <script type="javascript" ev:event="onkeypress">
  226. <![CDATA[
  227. inputEnterKey("btn_search", "DOMActivate");
  228. ]]>
  229. </script>
  230. </input>
  231. <input id="ipt_vainstcd" ref="/root/send/vainstref/vainstcd" navindex="2" maxlength="14" style="left:385px; top:7px; width:105px; height:19px; ">
  232. <script type="javascript" ev:event="onkeypress">
  233. <![CDATA[
  234. inputEnterKey("btn_search", "DOMActivate");
  235. ]]>
  236. </script>
  237. </input>
  238. <line id="line4" class="line_4" style="x1:579px; y1:8px; x2:579px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  239. </group>
  240. </xhtml:body>
  241. </xhtml:html>