123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRAR03300" position="absolute 0 0 1206 760" titletext="가수금 입금 확인자 관리" oninit="SMRAR03300_oninit" onload="SMRAR03300_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="가수금 입금 확인자 관리" class="tit_1" position="absolute 0 0 215 25"/>
- <Shape id="line1" class="line_6" position="absolute 0 46 1195 52" anchor="left top right"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1139 25 1195 47" onclick="btn_save_onclick"/>
- <Div id="grp_sea" taborder="2" position="absolute 0 50 1195 90" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption2" text="기관코드" class="search_name" position="absolute 80 10 156 27"/>
- <Combo id="cmb_instcd" taborder="1" class="combo_default" enable="false" position="absolute 160 10 305 29"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 335 9 341 29"/>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 358 8 414 30" onclick="grp_sea_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_insert" taborder="3" text="행추가" class="btn2" position="absolute 1086 104 1139 123" onclick="btn_insert_onclick"/>
- <Button id="btn_delete" taborder="4" text="행삭제" class="btn2" position="absolute 1141 104 1194 123" onclick="btn_delete_onclick"/>
- <Static id="caption6" text="입금 확인자별 계좌 목록" class="tit_2" position="absolute 0 107 178 129"/>
- <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 0 123 1195 129" anchor="left top right"/>
- <Grid id="grd_grntpsn" taborder="5" binddataset="ds_main_grnt_grntlist" useinputpanel="false" position="absolute 0 128 1195 732" autoenter="select" cellsizingtype="col" anchor="all" onexpanddown="grd_grntpsn_onexpanddown" onkeyup="grd_grntpsn_onkeyup" oncelldblclick="grd_grntpsn_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="101"/>
- <Column size="107"/>
- <Column size="96"/>
- <Column size="180"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="사원번호"/>
- <Cell col="2" text="성명"/>
- <Cell col="3" text="계좌코드"/>
- <Cell col="4" text="계좌번호"/>
- <Cell col="5" text="기관코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" text="bind:emplno" expandshow="show"/>
- <Cell col="2" text="bind:emplnm"/>
- <Cell col="3" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" text="bind:aactcd" expandshow="show"/>
- <Cell col="4" text="bind:aactno"/>
- <Cell col="5" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" text="※ 사원번호나 계좌코드를 변경하시려면, 삭제 후 다시 등록하시기 바랍니다." position="absolute 5 737 419 757" anchor="left bottom" style="color:#800000ff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_paydedu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_grnt_grntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사원번호."/>
- <Column id="emplnm" type="STRING" size="256" sumtext="사원명"/>
- <Column id="aactcd" type="STRING" size="256" sumtext="계좌코드"/>
- <Column id="aactno" type="STRING" size="256" sumtext="계좌번호"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send_paydedu" columnid="instcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- function SMRAR03300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRAR03300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_grntpsn);
- grdf_setRowTypeIcon(grd_grntpsn, 0);
-
- misfGridInit(grd_grntpsn);
-
- //misfMsterDetailSet(grd_grntpsn,null, "TRRAR03301" ,"Y");
-
- misfComboInstCdListMulti("grp_sea.cmb_instcd",utlf_getCurrentDate(),"","N");
- grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- grp_sea.btn_search.click();
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRRAR03301";
- oParam.service = "accountinginfoapp.AccountingInfo";
- oParam.method = "reqGetAactMngtList";
- oParam.inds = "req=ds_send_paydedu";
- oParam.outds = "ds_main_grnt_grntlist=grntlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRAR03301";
- tranf_submit(oParam);
- }
- function grd_grntpsn_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- if(ds_main_grnt_grntlist.getRowType(ds_main_grnt_grntlist.rowposition) == 1 || ds_main_grnt_grntlist.getRowType(ds_main_grnt_grntlist.rowposition) == 4)
- {
- return;
- }
- if (e.cell == obj.getBindCellIndex("Body", "emplno"))
- {
- var recv_list3 = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_grntpsn, recv_list3,"","N");
- }
- else if (e.cell == obj.getBindCellIndex("Body", "aactcd"))
- {
- var recv_list3 = "aactcd,aactno";
- rpbfOpenPopUpList("SPRAR03300", grd_grntpsn, recv_list3,"","N");
- }
- }
- function grd_grntpsn_onkeyup(obj:Grid, e:KeyEventInfo)
- {
- if (obj.currentcell == obj.getBindCellIndex("Body", "emplno"))
- {
- if ( e.keycode == 13)
- {
- if (!utlf_isNull(ds_main_grnt_grntlist.getColumn(ds_main_grnt_grntlist.rowposition, "emplnm") ))
- {
- ds_main_grnt_grntlist.setColumn(ds_main_grnt_grntlist.rowposition, "emplnm", "");
- }
- }
- }
- else if (obj.currentcell == obj.getBindCellIndex("Body", "aactcd"))
- {
- if ( e.keycode == 13)
- {
- if (!utlf_isNull(ds_main_grnt_grntlist.getColumn(ds_main_grnt_grntlist.rowposition, "aactno") ))
- {
- ds_main_grnt_grntlist.setColumn(ds_main_grnt_grntlist.rowposition, "aactno", "");
- }
- }
- }
- }
- function btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_grntpsn, "A");
-
- ds_main_grnt_grntlist.setColumn(ds_main_grnt_grntlist.rowposition, "instcd", ds_send_paydedu.getColumn(0, "instcd"));
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- var status = ds_main_grnt_grntlist.getRowType(ds_main_grnt_grntlist.rowposition);
- if(status == 1)
- {
- ds_main_grnt_grntlist.updatecontrol = false;
- ds_main_grnt_grntlist.setRowType(ds_main_grnt_grntlist.rowposition, "d");
- ds_main_grnt_grntlist.updatecontrol = true;
- }
- else if(status == 2)
- {
- ds_main_grnt_grntlist.deleteRow(ds_main_grnt_grntlist.rowposition);
- }
- else if(status == 4)
- {
- ds_main_grnt_grntlist.updatecontrol = false;
- ds_main_grnt_grntlist.setRowType(ds_main_grnt_grntlist.rowposition, "u");
- ds_main_grnt_grntlist.updatecontrol = true;
- }
- else if(status == 8)
- {
- ds_main_grnt_grntlist.updatecontrol = false;
- ds_main_grnt_grntlist.setRowType(ds_main_grnt_grntlist.rowposition, "");
- ds_main_grnt_grntlist.updatecontrol = true;
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- for (var i = 0; i < ds_main_grnt_grntlist.rowcount; i++)
- {
- if (utlf_isNull(ds_main_grnt_grntlist.getColumn(i, "emplno")))
- {
- sysf_messageBox(parseInt(i +1)+ "번째 사원번호는 필수입력사항입니다.", "E999", "");
- return;
- }
- if (utlf_isNull(ds_main_grnt_grntlist.getColumn(i, "aactcd")))
- {
- sysf_messageBox(parseInt(i +1)+ "번째 계좌코드 필수입력사항입니다.", "E999", "");
- return;
- }
- }
-
- var oParam = {};
- oParam.id = "TXRAR03301";
- oParam.service = "accountinginfoapp.AccountingInfo";
- oParam.method = "reqExeAactMngtList";
- oParam.inds = "req=ds_main_grnt_grntlist:u";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRAR03301";
- tranf_submit(oParam);
- }
- function cf_TXRAR03301(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- grp_sea.btn_search.click();
- }
- }]]></Script>
- </Form>
- </FDL>
|