123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSD00700" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 600 454" titletext="센터구성부서검색" onload="SPZSD00700_onload" class="frm_POP" onkeydown="SPZSD00700_onkeydown">
- <Layouts>
- <Layout>
- <Static id="stt_titleText" text="센터구성부서별검색" onclick="caption00_onclick" class="sta_POP_title" position="absolute 12 8 168 30"/>
- <Button id="btn_cancel" taborder="8" text="취소" class="btn4" position="absolute 532 422 588 442" anchor="right bottom" onclick="btn_cancel_onclick"/>
- <Button id="btn_confirm" taborder="9" text="확인" class="btn4" position="absolute 473 422 529 442" anchor="right bottom" onclick="btn_confirm_onclick"/>
- <Div id="div_search" anchor="left top right" taborder="11" style="align:center top;" class="div_SA" position="absolute 12 46 588 88">
- <Layouts>
- <Layout>
- <Button id="btn_sea" taborder="15" text="조회" onlbuttonup=""btn_sea_onlbuttonup"" class="btn1" position="absolute 508 10 564 30" anchor="top right"/>
- <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
- <Combo id="cb_condition" taborder="16" value="deptcd" text="부서코드" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 10 173 30" anchor="default" onitemchanged="div_search_cb_condition_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">deptcd</Col>
- <Col id="datacolumn">부서코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">deptnm</Col>
- <Col id="datacolumn">부서명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ed_searchValue" taborder="17" onkeydown="div_search_ed_searchValue_onkeydown" position="absolute 176 10 316 30" anchor="default" imemode="alpha"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_close" taborder="12" class="btn_POP_cls" position="absolute 574 12 588 25" anchor="top right" onclick="btn_close_onclick"/>
- <Static id="caption1" text="부서코드 목록" class="tit_2" position="absolute 12 98 135 118"/>
- <Grid id="gd_deptList" taborder="13" binddataset="ds_deptList" useinputpanel="false" cellsizingtype="col" cellsizebandtype="allband" onkeydown="gd_deptList_onkeydown" oncelldblclick="gd_deptList_oncelldblclick" position="absolute 12 118 588 419" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="150"/>
- <Column size="389"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="부서 코드"/>
- <Cell col="1" text="부서 이름"/>
- </Band>
- <Band id="body">
- <Cell text="bind:deptcd"/>
- <Cell col="1" style="align:left;padding:0 0 0 3;" text="bind:depthngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_deptList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/************************************************************************************************
- * 파 일 명 : SPZSD00700_센터구성부서검색팝업.xfdl
- * 작 성 자 : 임준호
- * 작 성 일 : 2014.02.14
- * 설 명 : 센터구성부서검색 팝업
- * return value - ()
- * 수 정 자 :
- * 수정이력 :
- ************************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- /************************************************************************************************
- ******************************** Form Variable **************************************************
- ************************************************************************************************/
- /************************************************************************************************
- ******************************** Form Function **************************************************
- ************************************************************************************************/
- /********************************************************************************
- * 설 명 : 부서정보를 서버에서 가져온다.
- * argument :
- ********************************************************************************/
- function lf_getDeptList(){
- var S_IN_DS_REQ = "ds_req";
-
- if(!utlf_isNull(this.objects["ds_req"])){
- ds_req.clear();
- }
-
- var objColInfo = new Array();
- objColInfo.push({col: "searchcondition", val: div_search.cb_condition.value});
- objColInfo.push({col: "searchterm", val: div_search.ed_searchValue.value});
- objColInfo.push({col: "instcd", val: plgv_sInstCd});
- objColInfo.push({col: "supdeptcolumn", val: plgv_sSupDeptColumn});
- dsf_createDsRow(S_IN_DS_REQ, objColInfo);
-
- tranf_submit({
- id: "tr_reqGetCntrDeptList"
- , service: "departmentcodeapp.DepartmentCodeAdmin"
- , method: "reqGetCntrDeptList"
- , inds : "req="+S_IN_DS_REQ
- , outds: "ds_deptList=cntrdeptlist"
- , async: true
- });
- }
- /********************************************************************************
- * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
- * argument :
- ********************************************************************************/
- function lf_setDeptInfo(){
-
- var sDeptcd = ds_deptList.getColumn(ds_deptList.rowposition, "deptcd");
- var sDepthngnm = ds_deptList.getColumn(ds_deptList.rowposition, "depthngnm");
-
- //eval("opener."+plgv_sReturnFuncNm+"('"+sDeptcd+"', '"+sDepthngnm+"')");
- var objRetVal = new Object();
- objRetVal.deptcd = sDeptcd;
- objRetVal.depthngnm = sDepthngnm;
-
- this.close(objRetVal);
- }
- /************************************************************************************************
- ******************************** Form Event *****************************************************
- ************************************************************************************************/
- /********************************************************************************
- * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
- * 해당 컴포넌트에 입력하고 조회한다.
- * argument :
- ********************************************************************************/
- function SPZSD00700_onload(obj:Form, e:LoadEventInfo)
- {
-
- frmf_initForm(obj);
-
- //div_search.cb_condition.index = 0;
- //div_search.ed_searchValue.value = "";
-
- if(!utlf_isNull(plgv_sSearchCondition)){
- div_search.cb_condition.value = plgv_sSearchCondition;
- }
-
- if(!utlf_isNull(plgv_sSearchTerm)){
- div_search.ed_searchValue.value = plgv_sSearchTerm;
- lf_getDeptList();
- }
-
- div_search.ed_searchValue.setFocus();
- setImemode(div_search.ed_searchValue, div_search.cb_condition.value);
- }
- /********************************************************************************
- * 설 명 : 조회 - 코드목록을 조회한다.
- * argument :
- ********************************************************************************/
- function bt_search_onclick(obj:Button, e:ClickEventInfo)
- {
- //trace("opener.arglgv_test="+opener.arglgv_test);
- lf_getDeptList();
- }
- /********************************************************************************
- * 설 명 : 취소 - 팝업을 닫는다.
- * argument :
- ********************************************************************************/
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function gd_deptList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_setDeptInfo();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setDeptInfo();
- }
- /********************************************************************************
- * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
- * argument :
- ********************************************************************************/
- function div_search_ed_searchValue_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- lf_getDeptList();
- }
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function gd_deptList_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- lf_setDeptInfo();
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function setImemode(objEdt:Edit, sValue){
-
- if(sValue == "deptcd"){
- objEdt.imemode = "alpha";
- }else if(sValue == "deptnm"){
- objEdt.imemode = "hangul";
- }
- }
- function div_search_cb_condition_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- div_search.ed_searchValue.value = "";
- div_search.ed_searchValue.setFocus();
- setImemode(div_search.ed_searchValue, e.postvalue);
- }
- function SPZSD00700_onkeydown(obj:Form, e:KeyEventInfo)
- {
- if(e.keycode == 27) this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|