123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLIF00600" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 551 500" titletext="MIS거래처조회" onload="SMLIF00600_onload" onkeydown="SMLIF00600_onkeydown">
- <Layouts>
- <Layout>
- <Static id="st_codeList" text="거래처 목록" position2="absolute l:0 w:132 t:78 h:20" positiontype="position2" class="tit_2"/>
- <Grid id="grd_custcdlist" taborder="3" useinputpanel="false" position2="absolute l:0 w:550 t:98 h:376" positiontype="position2" binddataset="ds_custcdlist" cellmovingtype="none" autofittype="col" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="grd_custcdlist_oncelldblclick" onkeydown="grd_custcdlist_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="65"/>
- <Column size="200"/>
- <Column size="60"/>
- <Column size="90"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="코드" autosizecol="limitmin"/>
- <Cell col="2" text="거래처명"/>
- <Cell col="3" text="대표자"/>
- <Cell col="4" text="전화번호"/>
- <Cell col="5" text="핸드폰번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" style="align:center;" text="bind:custcd"/>
- <Cell col="2" style="align:left;padding:0 0 0 3;" text="bind:custnm"/>
- <Cell col="3" style="align:center;" text="bind:prsdnm"/>
- <Cell col="4" style="align:left;" text="bind:cntctel"/>
- <Cell col="5" style="align:left;" text="bind:acntchrgtelno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="bt_ok" taborder="4" text="확인" onclick="bt_ok_onclick" class="btn4" anchor="default" position="absolute 435 477 491 497" positiontype="position"/>
- <Button id="bt_cancel" taborder="5" text="취소" onclick="bt_cancel_onclick" class="btn4" anchor="default" position="absolute 494 477 550 497" positiontype="position"/>
- <Div id="div_search" taborder="7" class="div_SA" position="absolute 0 26 550 68">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" anchor="default" position="absolute 482 10 538 30" onclick="div_search_btn_search_onclick" positiontype="position"/>
- <Static id="ipt_searchCondition00" text="거래처명 : " class="search_name" position="absolute 24 10 115 30" anchor="default"/>
- <Edit id="ipt_custnm" taborder="4" imemode="none" position="absolute 103 10 228 30" anchor="default" onkeydown="div_search_ipt_custnm_onkeydown"/>
- <Shape id="line3" linetype="vertical" position="absolute 459 11 464 31" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="MIS거래처조회" class="tit_1" position="absolute 0 0 137 26"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_custcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="custcd" type="STRING" size="256"/>
- <Column id="custnm" type="STRING" size="256"/>
- <Column id="prsdnm" type="STRING" size="256"/>
- <Column id="cntctel" type="STRING" size="256"/>
- <Column id="acntchrgtelno" type="STRING" size="256"/>
- </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="custnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item2" compid="div_search.ipt_custnm" propid="value" datasetid="ds_send" columnid="custnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/************************************************************************************************
- * 파 일 명 : SMLIF00600_MIS거래처조회.xfdl
- * 작 성 자 : 엄영만
- * 작 성 일 : 2020.01.17
- * 설 명 : MIS 거래처 정보 검색 팝업
- * 수 정 자 :
- * 수정이력 :
- ************************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- /************************************************************************************************
- ******************************** Form Event *****************************************************
- ************************************************************************************************/
- /********************************************************************************
- * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
- * 해당 컴포넌트에 입력하고 조회한다.
- * argument :
- ********************************************************************************/
- function SMLIF00600_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- grdf_initGrid(grd_custcdlist);
- grdf_setToolTipBind(grd_custcdlist);
-
- div_search.ipt_custnm.setFocus();
- }
- /********************************************************************************
- * 설 명 : 거래처 코드 정보를 서버에서 가져온다.
- * argument :
- ********************************************************************************/
- function getCustCdList()
- {
- var oParam = {};
- oParam.id = "TRLIF00301";
- oParam.service = "diagtestbaseinfomngtapp.InterfaceTestBaseInfoMngt";
- oParam.method = "reqGetCustCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_custcdlist=custcdlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /********************************************************************************
- * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
- * argument :
- ********************************************************************************/
- function setCustCodeInfo(){
- var sCustCd = "";
- var sCustNm = "";
-
- if(ds_custcdlist.rowposition >= 0) {
- sCustCd = ds_custcdlist.getColumn(ds_custcdlist.rowposition, "custcd");
- sCustNm = ds_custcdlist.getColumn(ds_custcdlist.rowposition, "custnm");
- }
-
- var objRetVal = new Object();
- objRetVal.custcd = sCustCd;
- objRetVal.custnm = sCustNm;
-
- this.close(objRetVal);
- }
- /********************************************************************************
- * 설 명 : 조회 - 코드목록을 조회한다.
- * argument :
- ********************************************************************************/
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- getCustCdList();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function grd_custcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- setCustCodeInfo();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function bt_ok_onclick(obj:Button, e:ClickEventInfo)
- {
- setCustCodeInfo();
- }
- /********************************************************************************
- * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
- * argument :
- ********************************************************************************/
- function div_search_ipt_custnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- getCustCdList();
- }
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function grd_custcdlist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- setCustCodeInfo();
- }
- }
- /********************************************************************************
- * 설 명 : 취소 - 팝업을 닫는다.
- * argument :
- ********************************************************************************/
- function bt_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function SMLIF00600_onkeydown(obj:Form, e:KeyEventInfo)
- {
- if(e.keycode == 27) this.close();
- }]]></Script>
- </Form>
- </FDL>
|