123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRIS00501" position="absolute 0 0 1180 772" titletext="은행 및 카드관리" onload="SMRIS00501_onload">
- <Layouts>
- <Layout>
- <Static id="caption10" class="tit_1" position="absolute 0 0 160 26" style="" text="연구자별 카드관리"/>
- <Static id="caption1" class="cell_1" position="absolute 160 32 223 52" style="" text="지정자명" anchor="left top"/>
- <Grid id="grd_bclist" binddataset="ds_result_cardinfo_cardlist" position="absolute 0 56 1180 770" style="" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="48"/>
- <Column size="115"/>
- <Column size="255"/>
- <Column size="172"/>
- <Column size="46"/>
- <Column size="66"/>
- <Column size="60"/>
- <Column size="52"/>
- <Column size="100"/>
- <Column size="142"/>
- <Column size="297"/>
- </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="카드구분"/>
- <Cell col="7" text="결재일"/>
- <Cell col="8" text="거래은행"/>
- <Cell col="9" text="결제계좌"/>
- <Cell col="10" text="비고"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="combo" style="align:center;" text="bind:instcd" combodataset="ds_grd_instcd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="1" style="align:left;" text="bind:issnm"/>
- <Cell col="2" style="align:left;" text="bind:cardnm"/>
- <Cell col="3" style="align:left;" text="bind:cardno"/>
- <Cell col="4" text="bind:emplno"/>
- <Cell col="5" text="bind:emplnm"/>
- <Cell col="6" text="bind:cardgbn"/>
- <Cell col="7" text="bind:apprday"/>
- <Cell col="8" style="align:left;" text="bind:dealbank"/>
- <Cell col="9" style="align:left;" text="bind:appracnt"/>
- <Cell col="10" style="align:left top;" text="bind:bigo" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_search" class="btn2" position="absolute 991 32 1033 51" style="" text="조회" onclick="btn_search_onclick" anchor="top right"/>
- <Button id="btn_insert" class="btn2" visible="false" position="absolute 1048 32 1090 51" style="" text="신규" onclick="btn_insert_onclick" anchor="top right"/>
- <Button id="btn_save" class="btn2" visible="false" position="absolute 1138 32 1180 51" style="" text="저장" onclick="btn_save_onclick" anchor="top right"/>
- <Button id="btn_delete" class="btn2" visible="false" position="absolute 1093 32 1135 51" style="" text="삭제" onclick="btn_delete_onclick" anchor="top right"/>
- <Edit id="ipt_user" position="absolute 225 33 516 52" style="" anchor="left top"/>
- <Static id="caption2" class="cell_1" position="absolute 0 32 40 52" style="" text="구분" anchor="left top"/>
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_instcd" position="absolute 45 32 145 51" style="" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">031</Col>
- <Col id="datacolumn">본원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">032</Col>
- <Col id="datacolumn">칠곡</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="input1" position="absolute 596 33 781 52" style="" anchor="left top"/>
- <Static id="caption3" class="cell_1" position="absolute 528 32 591 52" style="" text="카드번호" anchor="left top"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">032</Col>
- <Col id="cdnm">칠곡</Col>
- </Row>
- <Row>
- <Col id="cdid">031</Col>
- <Col id="cdnm">본원</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_result_cardinfo_cardlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cardlist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cardlist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="user" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="cardno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="user"/>
- <Col id="instcd"/>
- <Col id="cardno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rshinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_bcsetrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_user" propid="value" datasetid="ds_main_cond" columnid="user"/>
- <BindItem id="item1" compid="cmb_instcd" propid="value" datasetid="ds_main_cond" columnid="instcd"/>
- <BindItem id="item2" compid="input1" propid="value" datasetid="ds_main_cond" columnid="cardno"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-01-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-01-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMRIS00501_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(grd_bclist);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- }
- //저장부분은 버튼은 visible = true 하는 부분이 없어 개발하지 않음.
- function fInit(){
- cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- }
- function fGetUserlist(){
- var sUserGbn = sysf_getModelProperty("usergbn");
- ds_send.clearData();
- dsf_makeValue( ds_send_rshinfo, "userid", "string", ds_main_cond.getColumn(0, "userid"));
- dsf_makeValue( ds_send_rshinfo, "usrgbn", "string", sUserGbn);
- dsf_makeValue( ds_send_rshinfo, "frmdd", "string", ds_main_cond_stdycnfmdd.getColumn(0, "frmdd"));
- dsf_makeValue( ds_send_rshinfo, "todd", "string", ds_main_cond_stdycnfmdd.getColumn(0, "todd"));
- // submit("TRRIS00510"); // 화면별 연구책임자 조회.
- var oParam = {};
- oParam.id = "TRRIS00510";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetBankCardUserInfo";
- oParam.inds = "req=ds_send_rshinfo";
- oParam.outds = "ds_rshinfo=rshinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00510";
- tranf_submit(oParam);
- if (sUserGbn == "A"){
- frmf_addComboItem("cmb_member","전체","-","above");
- }
- }
- function fSearch() {
- var oParam = {};
- oParam.id = "TRRIS00501";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetCardList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_result_cardinfo_cardlist=cardlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00501";
- tranf_submit(oParam);
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fSearch();
- }
- function btn_insert_onclick(obj:Button, e:ClickEventInfo) {
- if (grd_bclist.rows > 1 ){
- grd_bclist.insertRow(1, "above");
- }else if (grd_bclist.rows == 1){
- grd_bclist.addRow();
- }
- //grd_bclist.refresh();
- var sProjcd = ds_main_cond_stdyinfo_stdylist.getColumn(grd_stdylist.row, "projcd");
- ds_main_cond_bnkcrdinfo.setColumn( 0, "bclist[1]_projcd", sProjcd);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 1 ; i < grd_bclist.rows ; i++ ){
- if (ds_main_cond_bnkcrdinfo_bclist.getColumn(i, "acntcd") == ""){
- sysf_messageBox("'카드_계좌번호'는 필수입력 사항입니다. 정보를","C001");
- return;
- }
- }
- ds_send_bclist.clearData();
- dsf_makeValue( ds_send, "bclist", "string", grd_bclist.getUpdateData());
- // if (submit("TXRIS00510")){
- var oParam = {};
- oParam.id = "TXRIS00520";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqDelResearcher";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_temp_bcsetrslt=rslt";
- oParam.async = false;
- //oParam.callback = "cf_TXRIS00520";
- tranf_submit(oParam);
- var sRtnValue = ds_temp_bcsetrslt.getColumn(0, "rtnvalue");
- if (sRtnValue > 0 ){
- sysf_messageBox("[ "+ sRtnValue + " ]건 처리","I002");
- }
- grd_stdylist.dispatch("ondblclick");
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo) {
- grd_bclist.addStatus(grd_bclist.row, "delete");
- }
- ]]></Script>
- </Form>
- </FDL>
|