SPRAD00110_계좌구분별이체계좌HELP.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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>계좌구분별 이체계좌HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <transacntinfo>
  12. <chk/>
  13. <data1/>
  14. <acntflagcd/>
  15. <acntflagnm/>
  16. <rcipntacntno/>
  17. <bankcd/>
  18. <banknm/>
  19. <depor/>
  20. </transacntinfo>
  21. </list>
  22. </main>
  23. <send>
  24. <data1>
  25. <instcd/>
  26. <acntflagcd/>
  27. <acntflagnm/>
  28. <acntflag/>
  29. <getcond/>
  30. <dutplceinstcd/>
  31. </data1>
  32. </send>
  33. <hidden>
  34. </hidden>
  35. <init>
  36. </init>
  37. <temp/>
  38. <target/>
  39. </root>
  40. </instance>
  41. <submission id="TRRAD00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/list"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. fOpenForm();
  45. //공통함수 호출(help명)
  46. misfMsterDetailSet(grd_transacntinfo, null, "TRRAD00110", "N");
  47. ]]>
  48. </script>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  54. <script type="javascript">
  55. <![CDATA[
  56. //========================================================================================
  57. //화면 로드시 초기화 함수
  58. //========================================================================================
  59. function fOpenForm()
  60. {
  61. misfComboComCdList("Z0007", cmb_dutplceinstcd, "Y");
  62. var instcd = model.getValue("/root/target/defaultvalue/instcd");
  63. var acntflag = model.getValue("/root/target/defaultvalue/acntflag");
  64. var acntflagcd = model.getValue("/root/target/defaultvalue/acntflagcd");
  65. var acntflagnm = model.getValue("/root/target/defaultvalue/acntflagnm");
  66. model.removenode("/root/main/list/transacntinfo");
  67. model.refresh()
  68. var sColWidth = "";
  69. if(acntflag == "4")
  70. {
  71. cap_acntsnm.value = "이 름";
  72. cap_acntscd.value = "사 번";
  73. cap_dutplceinstcd.visible = true;
  74. cmb_dutplceinstcd.visible = true;
  75. cap_title.value = "교직원 이체계좌 HELP";
  76. sColWidth = "36,100, 90,100,100,80,55,130,130,120";
  77. grd_transacntinfo.caption = "선택^근무지기관^사번^이름^근무부서^직위^은행코드^은행명^계좌번호^예금주"
  78. }
  79. else
  80. {
  81. if(acntflag == "1")
  82. {
  83. cap_acntsnm.value = "거 래 처 명";
  84. cap_acntscd.value = "사업자등록번호";
  85. cap_title.value = "거래처 이체계좌 HELP";
  86. grd_transacntinfo.caption = "선택^근무지기관^거래처명^사업자등록번호^근무부서^직위^은행코드^은행명^계좌번호^예금주"
  87. }
  88. else if(acntflag == "5")
  89. {
  90. cap_acntsnm.value = "이 름";
  91. cap_acntscd.value = "주민등록번호";
  92. cap_title.value = "소득자 이체계좌 HELP";
  93. grd_transacntinfo.caption = "선택^근무지기관^주민등록번호^이름^근무부서^직위^은행코드^은행명^계좌번호^예금주"
  94. }
  95. sColWidth = "36,0, 100,100,0,100,75,150,150,120";
  96. }
  97. var arrColWidth = sColWidth.split(",");
  98. for(var i = 1; i <= arrColWidth.length; i++)
  99. {
  100. grd_transacntinfo.colWidth(i) = parseFloat(arrColWidth[i-1]);
  101. }
  102. if(instance1.selectNodes("/root/target/defaultvalue").length != 0)
  103. {
  104. model.setValue("/root/send/data1/instcd",instcd);
  105. model.setValue("/root/send/data1/acntflag",acntflag);
  106. model.setValue("/root/send/data1/acntflagcd",acntflagcd);
  107. model.setValue("/root/send/data1/acntflagnm",acntflagnm);
  108. model.refresh();
  109. if (acntflagcd != "" || acntflagnm != "")
  110. {
  111. btn_search.dispatch("DOMActivate");
  112. }
  113. }
  114. }
  115. //========================================================================================
  116. //이체계좌 조회
  117. //========================================================================================
  118. function fGettransacnt()
  119. {
  120. // model.removenode("/root/main/list/transacntinfo");//조회시 기존 데이터 삭제
  121. // model.refresh()
  122. var sNm = model.getValue("/root/send/data1/acntflagnm");
  123. var sCd = model.getValue("/root/send/data1/acntflagcd");
  124. if(model.getValue("/root/target/defaultvalue/acntflag") == "4")
  125. {
  126. if(sNm == "" && sCd == "")
  127. {
  128. messageBox("코드 또는 명칭을", "C001");
  129. return;
  130. }
  131. }
  132. if(sNm != "")
  133. {
  134. model.setValue("/root/send/data1/getcond", "name");
  135. }
  136. else
  137. {
  138. model.setValue("/root/send/data1/getcond", "code");
  139. }
  140. submit("TRRAD00110");
  141. }
  142. ]]>
  143. </script>
  144. </xhtml:head>
  145. <xhtml:body pagewidth="930" pageheight="760" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  146. <group id="group4" scroll="auto" style="left:0px; top:13px; width:907px; height:35px; ">
  147. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:905px; height:35px; "/>
  148. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:832px; top:6px; width:56px; height:22px; text-align:left; ">
  149. <caption>조회</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. fGettransacnt();
  153. ]]>
  154. </script>
  155. </button>
  156. <caption id="cap_acntsnm" class="search_name" visibility="visible" style="left:32px; top:9px; width:102px; height:17px; ">계좌구분명 :</caption>
  157. <caption id="cap_acntscd" class="search_name" visibility="visible" style="left:300px; top:9px; width:132px; height:17px; ">계좌구분코드 :</caption>
  158. <line id="line5" class="line_4" style="x1:824px; y1:7px; x2:824px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  159. <input id="input1" ref="/root/send/data1/acntflagnm" class="input_s_essential" navindex="1" style="left:135px; top:8px; width:155px; height:19px; ">
  160. <script type="javascript" ev:event="onkeypress">
  161. <![CDATA[
  162. if (event.keyCode == "13") {
  163. model.setFocus("btn_search");
  164. }
  165. ]]>
  166. </script>
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. model.setValue("/root/send/data1/acntflagcd", "");
  170. model.setValue("/root/send/data1/getcond", "name");
  171. btn_search.dispatch("DOMActivate");
  172. ]]>
  173. </script>
  174. </input>
  175. <input id="input2" ref="/root/send/data1/acntflagcd" class="input_s_essential" navindex="2" style="left:418px; top:8px; width:150px; height:19px; ">
  176. <script type="javascript" ev:event="onkeypress">
  177. <![CDATA[
  178. if (event.keyCode == "13") {
  179. model.setFocus("btn_search");
  180. }
  181. ]]>
  182. </script>
  183. <script type="javascript" ev:event="xforms-value-changed">
  184. <![CDATA[
  185. model.setValue("/root/send/data1/acntflagnm", "");
  186. model.setValue("/root/send/data1/getcond", "code");
  187. btn_search.dispatch("DOMActivate");
  188. ]]>
  189. </script>
  190. </input>
  191. <select1 id="cmb_dutplceinstcd" ref="/root/send/data1/dutplceinstcd" class="combo_essential" disabled="false" navindex="-1" visibility="hidden" appearance="minimal" style="left:650px; top:8px; width:158px; height:19px; ">
  192. <choices>
  193. <itemset>
  194. <label/>
  195. <value/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. <caption id="cap_dutplceinstcd" class="search_name" visibility="hidden" style="left:575px; top:9px; width:132px; height:17px; ">기 관 :</caption>
  200. </group>
  201. <group id="group1" style="left:0px; top:0px; width:907px; height:13px; ">
  202. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">계좌구분별 이체계좌HELP</caption>
  203. </group>
  204. <group id="group3" scroll="auto" style="left:0px; top:50px; width:907px; height:654px; ">
  205. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:905px; y2:25px; "/>
  206. <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">기재사항 코드 목록</caption>
  207. <datagrid id="grd_transacntinfo" nodeset="/root/main/list/transacntinfo" caption="선택^근무지기관^계좌구분코드^계좌구분명^근무부서^직위^은행코드^은행명^계좌번호^예금주" colsep="^" colwidth="36, 0, 90, 100, 100, 80, 55, 130, 130, 120" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:905px; height:623px; ">
  208. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  209. <col ref="data1"/>
  210. <col ref="acntflagcd"/>
  211. <col ref="acntflagnm"/>
  212. <col ref="deptnm"/>
  213. <col ref="jobposnm"/>
  214. <col ref="bankcd"/>
  215. <col ref="banknm"/>
  216. <col ref="rcipntacntno"/>
  217. <col ref="depor"/>
  218. <script type="javascript" ev:event="ondblclick">
  219. <![CDATA[
  220. if( grd_transacntinfo.isCell(event.target) && grd_transacntinfo.row >= grd_transacntinfo.fixedRows )
  221. {
  222. misfPopUpListReturn(grd_transacntinfo);
  223. }
  224. ]]>
  225. </script>
  226. </datagrid>
  227. <output id="output1" ref="/root/send/data1/instcd" visibility="hidden" style="left:345px; top:5px; width:50px; height:19px; "/>
  228. <output id="output2" ref="/root/send/data1/acntflag" visibility="hidden" style="left:405px; top:5px; width:50px; height:19px; "/>
  229. <output id="output3" ref="/root/hidden/condition/unslno" visibility="hidden" style="left:465px; top:5px; width:50px; height:19px; "/>
  230. <caption id="caption2" class="tit_2" style="left:5px; top:7px; width:165px; height:14px; ">구분별 이체계좌내역</caption>
  231. </group>
  232. <group id="group2" scroll="auto" style="left:0px; top:704px; width:907px; height:27px; ">
  233. <button id="btn_confirm" class="btn4_letter2" style="left:789px; top:2px; width:56px; height:22px; ">
  234. <caption>확인</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. //misfPopUpListReturn(grd_transacntinfo);
  238. if(misfCountCheckedList(grd_transacntinfo, grd_transacntinfo.colRef("chk")) == 0)
  239. {
  240. window.close();
  241. }
  242. else
  243. {
  244. misfPopUpCheckedListReturn(grd_transacntinfo, grd_transacntinfo.colRef("chk"));
  245. }
  246. ]]>
  247. </script>
  248. </button>
  249. <button id="btn_cancel" class="btn4_letter2" style="left:846px; top:2px; width:56px; height:22px; ">
  250. <caption>취소</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. window.close();
  254. ]]>
  255. </script>
  256. </button>
  257. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:702px; y2:0px; "/>
  258. </group>
  259. </xhtml:body>
  260. </xhtml:html>