SPPAO02400_통장계좌번호관리.xfdl 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPAO02400" position="absolute 0 0 289 200" titletext="통장계좌번호" onload="SPPAO02400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line1" class="line_1" position="absolute 0 31 280 37" style="strokepen:3 solid #33bbbbff;"/>
  8. <Static id="caption1" text="통장입금내역" class="tit_2" position="absolute 5 -69 113 15"/>
  9. <Grid id="datagrid1" taborder="1" binddataset="ds_main_onlnref" useinputpanel="false" position="absolute 0 35 280 160" oncellclick="datagrid1_oncellclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="21"/>
  14. <Column size="117"/>
  15. <Column size="140"/>
  16. </Columns>
  17. <Rows>
  18. <Row size="24" band="head"/>
  19. <Row size="24"/>
  20. </Rows>
  21. <Band id="head">
  22. <Cell/>
  23. <Cell col="1" text="계좌명"/>
  24. <Cell col="2" text="계좌번호"/>
  25. </Band>
  26. <Band id="body">
  27. <Cell displaytype="checkbox" edittype="checkbox" text="bind:appyn" expr="expr:(appyn == 'Y' || appyn == '1') ? 1 : 0"/>
  28. <Cell col="1" displaytype="text" edittype="text" text="bind:onlnnm" enable="false"/>
  29. <Cell col="2" displaytype="text" edittype="text" text="bind:onlnno" enable="false"/>
  30. </Band>
  31. </Format>
  32. </Formats>
  33. </Grid>
  34. <Static id="caption2" text="통장계좌번호" class="tit_2" position="absolute 5 13 104 29"/>
  35. <Button id="btn_confirm" taborder="2" text="저장" class="btn4" position="absolute 165 169 221 191" onclick="btn_confirm_onclick"/>
  36. <Button id="btn_cancel" taborder="3" text="종료" class="btn4" position="absolute 224 169 280 191" onclick="btn_cancel_onclick"/>
  37. </Layout>
  38. </Layouts>
  39. <Objects>
  40. <Dataset id="ds_main_onlnref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  41. <ColumnInfo>
  42. <Column id="appyn" type="STRING"/>
  43. <Column id="onlnnm" type="STRING"/>
  44. <Column id="onlnno" type="STRING"/>
  45. </ColumnInfo>
  46. </Dataset>
  47. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  48. <ColumnInfo>
  49. <Column id="cdgrupid" type="STRING" size="256"/>
  50. <Column id="onlnno" type="STRING" size="256"/>
  51. </ColumnInfo>
  52. </Dataset>
  53. </Objects>
  54. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  55. * System Name :
  56. * Job Name :
  57. * Creator :
  58. * Make Date : 2016-05-24
  59. * Description :
  60. *---------------------------------------------------------------------------------------
  61. * Modify Date Modifier Modify Description
  62. *---------------------------------------------------------------------------------------
  63. * 2016-05-24 Live Converter TF->XP
  64. *
  65. *---------------------------------------------------------------------------------------
  66. ****************************************************************************************/
  67. //=======================================================================================
  68. // Lib Include
  69. //---------------------------------------------------------------------------------------
  70. include 'com_commonxp::comm_main.xjs';
  71. //=======================================================================================
  72. // Events
  73. //---------------------------------------------------------------------------------------
  74. /****************************************************************************************
  75. * Argument :
  76. * Description : Local methods
  77. ****************************************************************************************/
  78. function fOnlnRef(){
  79. ds_send.setColumn(0, 'cdgrupid', 'P0011');
  80. ds_main_onlnref.clearData();
  81. ds_main_onlnref.addRow();
  82. var oParam = {};
  83. oParam.id = "TRPAO02401";
  84. oParam.service = "pamcomnapp.PamComn";
  85. oParam.method = "reqGetOnlnNoRef";
  86. oParam.inds = "req=ds_send";
  87. oParam.outds = "ds_main_onlnref=onln";
  88. oParam.async = false;
  89. //oParam.callback = "cf_TRPAO02401";
  90. tranf_submit(oParam);
  91. }
  92. //=======================================================================================
  93. // Events
  94. //---------------------------------------------------------------------------------------
  95. /****************************************************************************************
  96. * Argument :
  97. * Description : onload
  98. ****************************************************************************************/
  99. function SPPAO02400_onload(obj:Form, e:LoadEventInfo){
  100. // 폼 초기화
  101. frmf_initForm(obj);
  102. fOnlnRef();
  103. if(frmf_checkOpener()){
  104. frmf_setParameter('SPPAO02400_RTN', '');
  105. var onlnno = ds_send.getColumn(0, 'onlnno');
  106. if(!utlf_isNull(onlnno) && onlnno != ''){
  107. for(var i = 0; i < ds_main_onlnref.rowcount; i++){
  108. if(ds_main_onlnref.getColumn(i, 'onlnno') == onlnno){
  109. ds_main_onlnref.setColumn(i, 'appyn', 'Y');
  110. }
  111. }
  112. }
  113. }
  114. }
  115. /****************************************************************************************
  116. * Argument :
  117. * Description : 통장계좌번호 그리드 클릭 이벤트
  118. ****************************************************************************************/
  119. function datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo){
  120. if(obj.getCellProperty('body', e.col, 'text') == 'bind:bldc_ckbox'){
  121. ds_main_h_bldc.setColumn(e.row, 'appyn', obj.getCellText(e.row, e.col) == '1' ? 'Y' : 'N');
  122. }
  123. }
  124. /****************************************************************************************
  125. * Argument :
  126. * Description : 저장 버튼 클릭 이벤트
  127. ****************************************************************************************/
  128. function btn_confirm_onclick(obj:Button, e:ClickEventInfo){
  129. if(frmf_checkOpener()){
  130. var cnt = ds_main_onlnref.rowcount;
  131. var falg = 'N';
  132. var row = 0;
  133. var onlnno = '-';
  134. for(var i = 0; i < cnt; i++){
  135. if(ds_main_onlnref.getColumn(0, 'appyn') == 'Y'){
  136. if(flag == 'Y'){
  137. sysf_messageBox('중복으로 통장계좌번호를 선택하실 수 없습니다.', 'I999');
  138. return;
  139. }
  140. flag = 'Y';
  141. row = i;
  142. }
  143. }
  144. opener.frmf_setParameter('SPPAO02400_RTN', 'Y');
  145. if(flag == 'Y'){
  146. onlnno = ds_main_onlnref.getColumn(row, 'onlnno');
  147. opener.frmf_setParameter('SPPAO02400_onlnno', onlnno);
  148. }
  149. else{
  150. opener.frmf_setParameter('SPPAO02400_onlnno', '-');
  151. }
  152. ds_send.setColumn(0, 'onlnno', onlnno);
  153. var oParam = {};
  154. oParam.id = "TXPAO02401";
  155. oParam.service = "pamcomnapp.PamComn";
  156. oParam.method = "reqSetOnlnNoUpdt";
  157. oParam.inds = "req=ds_send";
  158. oParam.outds = "";
  159. oParam.async = false;
  160. //oParam.callback = "cf_TXPAO02401";
  161. tranf_submit(oParam);
  162. this.close();
  163. }
  164. }
  165. /****************************************************************************************
  166. * Argument :
  167. * Description : 종료 버튼 클릭 이벤트
  168. ****************************************************************************************/
  169. function btn_cancel_onclick(obj:Button, e:ClickEventInfo){
  170. opener.frmf_setParameter('SPPAO02400_RTN', 'N');
  171. this.close();
  172. }
  173. ]]></Script>
  174. </Form>
  175. </FDL>