123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPAO02400" position="absolute 0 0 289 200" titletext="통장계좌번호" onload="SPPAO02400_onload">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_1" position="absolute 0 31 280 37" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption1" text="통장입금내역" class="tit_2" position="absolute 5 -69 113 15"/>
- <Grid id="datagrid1" taborder="1" binddataset="ds_main_onlnref" useinputpanel="false" position="absolute 0 35 280 160" oncellclick="datagrid1_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="117"/>
- <Column size="140"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="계좌명"/>
- <Cell col="2" text="계좌번호"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:appyn" expr="expr:(appyn == 'Y' || appyn == '1') ? 1 : 0"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:onlnnm" enable="false"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:onlnno" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="통장계좌번호" class="tit_2" position="absolute 5 13 104 29"/>
- <Button id="btn_confirm" taborder="2" text="저장" class="btn4" position="absolute 165 169 221 191" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="3" text="종료" class="btn4" position="absolute 224 169 280 191" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_onlnref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appyn" type="STRING"/>
- <Column id="onlnnm" type="STRING"/>
- <Column id="onlnno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="onlnno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : Local methods
- ****************************************************************************************/
- function fOnlnRef(){
- ds_send.setColumn(0, 'cdgrupid', 'P0011');
-
- ds_main_onlnref.clearData();
- ds_main_onlnref.addRow();
-
- var oParam = {};
- oParam.id = "TRPAO02401";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetOnlnNoRef";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_onlnref=onln";
- oParam.async = false;
- //oParam.callback = "cf_TRPAO02401";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : onload
- ****************************************************************************************/
- function SPPAO02400_onload(obj:Form, e:LoadEventInfo){
- // 폼 초기화
- frmf_initForm(obj);
-
- fOnlnRef();
-
- if(frmf_checkOpener()){
- frmf_setParameter('SPPAO02400_RTN', '');
-
- var onlnno = ds_send.getColumn(0, 'onlnno');
-
- if(!utlf_isNull(onlnno) && onlnno != ''){
- for(var i = 0; i < ds_main_onlnref.rowcount; i++){
- if(ds_main_onlnref.getColumn(i, 'onlnno') == onlnno){
- ds_main_onlnref.setColumn(i, 'appyn', 'Y');
- }
- }
- }
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 통장계좌번호 그리드 클릭 이벤트
- ****************************************************************************************/
- function datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo){
- if(obj.getCellProperty('body', e.col, 'text') == 'bind:bldc_ckbox'){
- ds_main_h_bldc.setColumn(e.row, 'appyn', obj.getCellText(e.row, e.col) == '1' ? 'Y' : 'N');
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 저장 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo){
- if(frmf_checkOpener()){
- var cnt = ds_main_onlnref.rowcount;
- var falg = 'N';
- var row = 0;
- var onlnno = '-';
-
- for(var i = 0; i < cnt; i++){
- if(ds_main_onlnref.getColumn(0, 'appyn') == 'Y'){
- if(flag == 'Y'){
- sysf_messageBox('중복으로 통장계좌번호를 선택하실 수 없습니다.', 'I999');
- return;
- }
- flag = 'Y';
- row = i;
- }
- }
-
- opener.frmf_setParameter('SPPAO02400_RTN', 'Y');
- if(flag == 'Y'){
- onlnno = ds_main_onlnref.getColumn(row, 'onlnno');
- opener.frmf_setParameter('SPPAO02400_onlnno', onlnno);
- }
- else{
- opener.frmf_setParameter('SPPAO02400_onlnno', '-');
- }
-
- ds_send.setColumn(0, 'onlnno', onlnno);
-
- var oParam = {};
- oParam.id = "TXPAO02401";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqSetOnlnNoUpdt";
- oParam.inds = "req=ds_send";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXPAO02401";
- tranf_submit(oParam);
-
- this.close();
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 종료 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo){
- opener.frmf_setParameter('SPPAO02400_RTN', 'N');
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|