123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPAO01500" position="absolute 0 0 550 460" titletext="통장입금내역입력" onload="SPPAO01500_onload">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_1" position="absolute 10 140 540 146" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption1" text="통장입금내역" class="tit_2" position="absolute 10 123 118 139"/>
- <Static id="caption3" text="수납대상금액" class="cell_1" position="absolute 10 388 90 413" style="padding:0 0 0 4;"/>
- <Static id="caption4" text="통장입금총액" class="cell_1" position="absolute 190 388 270 413" style="padding:0 0 0 4;"/>
- <MaskEdit id="opt_rcptamt" taborder="1" readonly="true" mask="(-)#,###" position="absolute 91 388 181 413"/>
- <MaskEdit id="opt_onlineamt" taborder="2" readonly="true" mask="(-)#,###" position="absolute 271 388 361 413"/>
- <Grid id="datagrid1" taborder="3" binddataset="ds_main_h_onln" useinputpanel="false" position="absolute 10 145 540 385" autofittype="none" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="71"/>
- <Column size="154"/>
- <Column size="79"/>
- <Column size="60"/>
- <Column size="92"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="은행"/>
- <Cell col="1" text="계좌번호"/>
- <Cell col="2" text="입금일자"/>
- <Cell col="3" text="입금자명"/>
- <Cell col="4" text="입금금액"/>
- <Cell col="5" text="영수일자"/>
- <Cell col="6" text="caption1"/>
- <Cell col="7" text="caption2"/>
- <Cell col="8" text="caption3"/>
- <Cell col="9" text="caption4"/>
- <Cell col="10" text="caption5"/>
- <Cell col="11" text="caption6"/>
- <Cell col="12" text="caption7"/>
- <Cell col="13" text="caption8"/>
- <Cell col="14" text="caption9"/>
- <Cell col="15" text="caption10"/>
- <Cell col="16" text="caption11"/>
- <Cell col="17" text="caption12"/>
- <Cell col="18" text="caption13"/>
- <Cell col="19" text="caption14"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="combo" text="bind:onln_bankcd" combodataset="ds_init_P0011list" combocodecol="cdid" combodatacol="detldesc" enable="false"/>
- <Cell col="1" text="bind:onln_acntno"/>
- <Cell col="2" displaytype="date" style="align:center middle;" class="text_center" text="bind:onln_paydd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="3" style="align:center middle;" class="text_center" text="bind:onln_paypsnnm"/>
- <Cell col="4" displaytype="number" class="text_right" text="bind:onln_onlineamt" mask="@,@@@"/>
- <Cell col="5" displaytype="date" class="text_center" text="bind:onln_rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="6" text="bind:onln_pid"/>
- <Cell col="7" text="bind:onln_rcptno"/>
- <Cell col="8" text="bind:onln_rcptseqno"/>
- <Cell col="9" text="bind:onln_seqno"/>
- <Cell col="10" text="bind:onln_instcd"/>
- <Cell col="11" text="bind:onln_rcptstat"/>
- <Cell col="12" text="bind:onln_ordtype"/>
- <Cell col="13" text="bind:onln_rcptexecdd"/>
- <Cell col="14" text="bind:onln_rcpttm"/>
- <Cell col="15" text="bind:onln_rcptrid"/>
- <Cell col="16" text="bind:onln_fstrgstrid"/>
- <Cell col="17" text="bind:onln_fstrgstdt"/>
- <Cell col="18" text="bind:onln_lastupdtrid"/>
- <Cell col="19" text="bind:onln_lastupdtdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="기통장입금액" class="cell_1" position="absolute 370 388 450 413" style="padding:0 0 0 4;"/>
- <MaskEdit id="output1" taborder="4" readonly="true" mask="(-)#,###" position="absolute 451 388 541 413"/>
- <Static id="caption5" text="통장입금" class="tit_2" position="absolute 10 15 121 35"/>
- <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 10 62 540 68"/>
- <Shape id="line12" class="line_1" position="absolute 10 35 540 41" style="strokepen:3 solid #33bbbbff;"/>
- <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 10 88 540 94"/>
- <Shape id="line4" class="line_3" position="absolute 10 114 540 120"/>
- <Static id="caption6" text="입금은행/계좌번호" class="cell_1" position="absolute 10 40 123 63" style="padding:0 0 0 4;"/>
- <Static id="caption7" text="입금금액" class="cell_1" position="absolute 10 92 123 115" style="padding:0 0 0 4;"/>
- <Static id="caption8" text="입금일자/입금자명" class="cell_1" position="absolute 10 66 123 89" style="padding:0 0 0 4;"/>
- <Button id="btn_clear" taborder="5" text="초기화" class="btn2" position="absolute 357 10 410 35" onclick="btn_clear_onclick"/>
- <Button id="btn_onlineaprv" taborder="6" text="통장입금" class="btn2" position="absolute 411 10 475 35" onclick="btn_onlineaprv_onclick"/>
- <Button id="btn_onlinecncl" taborder="7" text="입금취소" class="btn2" position="absolute 476 10 540 35" onclick="btn_onlinecncl_onclick"/>
- <Combo id="cmb_bankcd" taborder="8" innerdataset="@ds_init_P0011list" codecolumn="cdid" datacolumn="detldesc" class="combo_default" position="absolute 124 40 248 63" onitemchanged="cmb_bankcd_onitemchanged"/>
- <Calendar id="ipt_paydd" taborder="9" class="input_default" position="absolute 124 66 248 89" dateformat="yyyy-MM-dd" value="null"/>
- <Edit id="ipt_paypsnnm" taborder="10" class="input_default" position="absolute 249 66 540 89" imemode="hangul" onkeydown="ipt_paypsnnm_onkeydown"/>
- <MaskEdit id="ipt_onlineamt" taborder="11" mask="@,@@@" class="input_default" position="absolute 124 92 248 115" autoselect="true"/>
- <Edit id="input1" taborder="12" position="absolute 249 40 540 63" onkeydown="input1_onkeydown"/>
- <Button id="btn_confirm" taborder="13" text="확인" class="btn4" position="absolute 426 425 482 450" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="14" text="취소" class="btn4" position="absolute 484 425 540 450" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_P0011list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="detldesc" type="STRING"/>
- <Column id="dispseq" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="remark" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_h_onln" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="onln_pid" type="STRING" size="256"/>
- <Column id="onln_rcptdd" type="STRING" size="256"/>
- <Column id="onln_rcptno" type="STRING" size="256"/>
- <Column id="onln_rcptseqno" type="STRING" size="256"/>
- <Column id="onln_seqno" type="STRING" size="256"/>
- <Column id="onln_instcd" type="STRING" size="256"/>
- <Column id="onln_rcptstat" type="STRING" size="256"/>
- <Column id="onln_ordtype" type="STRING" size="256"/>
- <Column id="onln_onlineamt" type="STRING" size="256"/>
- <Column id="onln_bankcd" type="STRING" size="256"/>
- <Column id="onln_acntno" type="STRING" size="256"/>
- <Column id="onln_paydd" type="STRING" size="256"/>
- <Column id="onln_paypsnnm" type="STRING" size="256"/>
- <Column id="onln_rcptexecdd" type="STRING" size="256"/>
- <Column id="onln_rcpttm" type="STRING" size="256"/>
- <Column id="onln_rcptrid" type="STRING" size="256"/>
- <Column id="onln_preamtyn" type="STRING" size="256"/>
- <Column id="onln_innrtretyn" type="STRING" size="256"/>
- <Column id="onln_remfact" type="STRING" size="256"/>
- <Column id="onln_fstrgstrid" type="STRING" size="256"/>
- <Column id="onln_fstrgstdt" type="STRING" size="256"/>
- <Column id="onln_lastupdtrid" type="STRING" size="256"/>
- <Column id="onln_lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_onln" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="totrcptamt" type="STRING" size="256"/>
- <Column id="totonlineamt" type="STRING" size="256"/>
- <Column id="orgonlineamt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_onln2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="onln_pid" type="STRING" size="256"/>
- <Column id="onln_rcptdd" type="STRING" size="256"/>
- <Column id="onln_rcptno" type="STRING" size="256"/>
- <Column id="onln_rcptseqno" type="STRING" size="256"/>
- <Column id="onln_seqno" type="STRING" size="256"/>
- <Column id="onln_instcd" type="STRING" size="256"/>
- <Column id="onln_rcptstat" type="STRING" size="256"/>
- <Column id="onln_ordtype" type="STRING" size="256"/>
- <Column id="onln_onlineamt" type="STRING" size="256"/>
- <Column id="onln_bankcd" type="STRING" size="256"/>
- <Column id="onln_acntno" type="STRING" size="256"/>
- <Column id="onln_paydd" type="STRING" size="256"/>
- <Column id="onln_paypsnnm" type="STRING" size="256"/>
- <Column id="onln_rcptexecdd" type="STRING" size="256"/>
- <Column id="onln_rcpttm" type="STRING" size="256"/>
- <Column id="onln_rcptrid" type="STRING" size="256"/>
- <Column id="onln_preamtyn" type="STRING" size="256"/>
- <Column id="onln_innrtretyn" type="STRING" size="256"/>
- <Column id="onln_remfact" type="STRING" size="256"/>
- <Column id="onln_fstrgstrid" type="STRING" size="256"/>
- <Column id="onln_fstrgstdt" type="STRING" size="256"/>
- <Column id="onln_lastupdtrid" type="STRING" size="256"/>
- <Column id="onln_lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="cmb_bankcd" propid="value" datasetid="ds_main_onln2" columnid="onln_bankcd"/>
- <BindItem id="item1" compid="input1" propid="value" datasetid="ds_main_onln2" columnid="onln_acntno"/>
- <BindItem id="item2" compid="ipt_paydd" propid="value" datasetid="ds_main_onln2" columnid="onln_paydd"/>
- <BindItem id="item3" compid="ipt_paypsnnm" propid="value" datasetid="ds_main_onln2" columnid="onln_paypsnnm"/>
- <BindItem id="item4" compid="ipt_onlineamt" propid="value" datasetid="ds_main_onln2" columnid="onln_onlineamt"/>
- <BindItem id="item5" compid="opt_rcptamt" propid="value" datasetid="ds_main_onln" columnid="totrcptamt"/>
- <BindItem id="item6" compid="opt_onlineamt" propid="value" datasetid="ds_main_onln" columnid="totonlineamt"/>
- <BindItem id="item7" compid="output1" propid="value" datasetid="ds_main_onln" columnid="orgonlineamt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM.xjs";
- include "pam_pamcomnxp::PAM001.xjs";
- include "pam_opatmngtxp::PMOCOM.xjs";
- var gTotrcptamt, strSend, strRcv,otptCnt, gOrgonlineamt;
- function fInit() {
- ds_main_onln.clearData();
- ds_main_onln.addRow();
- ds_main_onln2.clearData();
- ds_main_onln2.addRow();
- ds_main_onln.setColumn(0, "totrcptamt", "0");
- ds_main_onln.setColumn(0, "totonlineamt", "0");
- ds_main_onln.setColumn(0, "orgonlineamt", "0");
- ds_main_onln2.setColumn(0, "onln_paydd", PMO001_TODAY);
- ds_main_onln2.setColumn(0, "onln_onlineamt", "0");
- }
- function fInit2() {
- ds_main_onln2.clearData();
- ds_main_onln2.addRow();
- ds_main_onln2.setColumn(0, "onln_paydd", PMO001_TODAY);
- ds_main_onln2.setColumn(0, "onln_onlineamt", "0");
- cmb_bankcd.setFocus();
- }
- function fOnlineamtCalc() {
- var rowcnt = ds_main_h_onln.rowcount;
- if (rowcnt > 0) {
- var onln_onlineamt = 0;
- var totrcptamt = ds_main_onln.getColumn(0, "totrcptamt");
- for (var i = 0; i < rowcnt; i++) {
- if (ds_main_h_onln.getColumn(i, "onln_innrtretyn") != "Y") {
- onln_onlineamt += parseInt(utlf_transNullToEmpty(ds_main_h_onln.getColumn(i, "onln_onlineamt")));
- }
- if (ds_main_h_onln.getColumn(i, "onln_innrtretyn") == "Y") {
- gOrgonlineamt += parseInt(utlf_transNullToEmpty(ds_main_h_onln.getColumn(i, "onln_onlineamt")));
- }
- }
- ds_main_onln.setColumn(0, "orgonlineamt", gOrgonlineamt);
- ds_main_onln.setColumn(0, "totonlineamt", onln_onlineamt);
- } else {
- // 화면 로딩 시 이미 입금액이 존재했다면, 금액 * -1 처리
- var orgonlineamt = parseInt(utlf_transNullToEmpty(ds_main_onln.getColumn(0, "orgonlineamt")));
- if (orgonlineamt != 0) {
- ds_main_onln.setColumn(0, "totonlineamt", orgonlineamt * -1);
- } else {
- ds_main_onln.setColumn(0, "totonlineamt", "0");
- }
- }
- }
- function SPPAO01500_onload(obj:Form, e:LoadEventInfo) {
- // 폼 초기화
- frmf_initForm(obj);
- fInit();
- fGetUserInfosSampling(); // PMOCOM.xjs
- pamfGetCodeList([{ dsNm: "ds_init_P0011list", cdGrpId: "P0011" }]);
- if (frmf_checkOpener()) {
- opener.frmf_setParameter("SPPAO01500_RTN", "");
- var SPPAO01500_PARM = opener.frmf_getParameter("SPPAO01500_PARM");
- var params = String(SPPAO01500_PARM).split("▦");
- gTotrcptamt = params[0];
- strSend = params[1];
- strRcv = params[2];
- otptCnt = params[3];
- ds_main_onln.setColumn(0, "totrcptamt", gTotrcptamt);
- ds_main_h_onln.clearData();
- if (!utlf_isNull(strSend) && strSend != " " && strSend != "-") {
- // 2016.12.14 kimdo3
- // 강제로 설정함.
- if(strSend == "ds_main_h_onln") {
- ds_main_h_onln.copyData(opener.ds_main_h_onln);
- }
- else if(strSend == "SMPAI00100") {
- ds_main_h_onln.copyData(opener.ds_main_admi_info_onln);
- }
- fOnlineamtCalc();
- } else {
- try {
- ds_main_h_onln.copyData(arg_ds_send);
- } catch(e) {
- }
- fOnlineamtCalc();
- }
- opener.frmf_setParameter("SPPAO01500_PARM", ds_main_onln.getColumn(0, "totonlineamt"));
- } else {
- ds_main_onln.setColumn(0, "totrcptamt", gTotrcptamt);
- }
- }
- function btn_clear_onclick(obj:Button, e:ClickEventInfo){
- fInit2();
- }
- function btn_onlineaprv_onclick(obj:Button, e:ClickEventInfo) {
- // 수납자 마감여부 체크하여 처리
- if (isMagmAprv()) {
- // 마감결제 완료되어있으므로 더이상 진행하지 않음
- return false;
- }
- var onln_bankcd = ds_main_onln2.getColumn(0, "onln_bankcd");
- if (utlf_isNull(onln_bankcd) || onln_bankcd == " " || onln_bankcd == "-") {
- sysf_messageBox("입금은행을 정확히 선택해 주십시요!", "E999");
- return;
- }
- var onln_acntno = ds_main_onln2.getColumn(0, "onln_acntno");
- if (utlf_isNull(onln_acntno) || onln_acntno == " " || onln_acntno == "-") {
- sysf_messageBox("계좌번호을 정확히 입력해 주십시요!", "E999");
- return;
- }
- var onln_paydd = ds_main_onln2.getColumn(0, "onln_paydd");
- if (utlf_isNull(onln_paydd) || onln_paydd == " " || onln_paydd == "-") {
- sysf_messageBox("입금일자를 정확히 입력해 주십시요!", "E999");
- return;
- }
- var onln_paypsnnm = ds_main_onln2.getColumn(0, "onln_paypsnnm");
- if (utlf_isNull(onln_paypsnnm) || onln_paypsnnm == " " || onln_paypsnnm == "-") {
- sysf_messageBox("입금자명을 정확히 입력해 주십시요!", "E999");
- return;
- }
- var onln_onlineamt = ds_main_onln2.getColumn(0, "onln_onlineamt");
- if (utlf_isNull(onln_onlineamt) || onln_onlineamt == " " || onln_onlineamt == "-") {
- sysf_messageBox("입금금액을 정확히 입력해 주십시요!", "E999");
- return;
- }
- if (otptCnt > 1 && ds_main_h_onln.rowcount > 0) {
- sysf_messageBox("외래멀티수납시 복수건에 통장입력을 할수가 없습니다!", "E999");
- return;
- }
-
- if (ds_main_h_onln.rowcount < 1) {
- ds_main_h_onln.copyData(ds_main_onln2);
- } else {
- var idx = ds_main_h_onln.addRow();
- ds_main_h_onln.copyRow(idx, ds_main_onln2, 0);
- }
- fOnlineamtCalc();
- fInit2();
- }
- function btn_onlinecncl_onclick(obj:Button, e:ClickEventInfo) {
- // 수납자 마감여부 체크하여 처리
- if (isMagmAprv()) {
- // 마감결제 완료되어있으므로 더이상 진행하지 않음
- return false;
- }
- var currow = datagrid1.currentrow;
- if (currow < 0) {
- sysf_messageBox("먼저 삭제할 내역을 선택하십시요!", "E999");
- return;
- }
- ds_main_h_onln.deleteRow(currow);
- fOnlineamtCalc();
- }
- /****************************************************************************************
- * Argument :
- * Description : 입금은행 콤보 아이템 변경 이벤트
- 선택된 은행에 따라 계좌번호 display
- ****************************************************************************************/
- function cmb_bankcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- ds_main_onln2.setColumn(0, "onln_acntno", ds_init_P0011list.lookup("cdid", e.postvalue, "cdnm"));
- }
- /****************************************************************************************
- * Argument :
- * Description : 계좌번호 키보드 입력 이벤트
- ****************************************************************************************/
- function input1_onkeydown(obj:Edit, e:KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
- ipt_paypsnnm.setFocus();
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 입금자명 키보드 입력 이벤트
- ****************************************************************************************/
- function ipt_paypsnnm_onkeydown(obj:Edit, e:KeyEventInfo){
- if (e.keycode == 13) {
- obj.updateToDataset();
- ipt_onlineamt.setFocus();
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 확인 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_confirm_onclick(obj: Button, e: ClickEventInfo) {
- if (frmf_checkOpener()) {
- opener.frmf_setParameter("SPPAO01500_RTN", "Y");
- opener.frmf_setParameter("SPPAO01500_TotOnlineAmt", ds_main_onln.getColumn(0, "totonlineamt"));
- if (!utlf_isNull(strRcv) && strRcv != " " && strRcv != "-") {
- if (strRcv == "ds_main_h_onln") {
- // 강제로 설정함.
- // 2016.12.14 kimdo3
- opener.ds_main_h_onln.copyData(ds_main_h_onln);
- } else if (strRcv == "SMPAI00100") {
- opener.ds_main_admi_info_onln.copyData(ds_main_h_onln);
- } else if (!utlf_isNull(strRcv)) {
- var openerDs = opener.objects[strRcv];
- if (!utlf_isNull(openerDs)) {
- openerDs.copyData(ds_main_h_onln);
- }
- }
- }
- try {
- if (!utlf_isNull(arg_ds_rcv)) {
- arg_ds_rcv.copyData(ds_main_h_onln);
- }
- } catch(e) {
- }
- this.close();
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 취소 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- if (frmf_checkOpener()) {
- opener.frmf_setParameter("SPPAO01500_RTN", "N");
- this.close();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|