123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSD00300" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 600 454" titletext="전기관부서정보검색팝업" onload="SPZSD00200_onload" class="frm_POP" onkeydown="SPZSD00300_onkeydown">
- <Layouts>
- <Layout>
- <Grid id="gd_deptCodeList" taborder="3" useinputpanel="false" binddataset="ds_deptCodeList" cellmovingtype="none" autofittype="none" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="gd_deptCodeList_oncelldblclick" onkeydown="gd_deptCodeList_onkeydown" anchor="all" position="absolute 12 118 588 419" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="60"/>
- <Column size="160"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="160"/>
- <Column size="90"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="90"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </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="인터넷예약구분"/>
- <Cell col="11" text="전화번호"/>
- <Cell col="12" text="근무지사용여부"/>
- <Cell col="13" text="청구권한부서"/>
- </Band>
- <Band id="body">
- <Cell text="bind:deptcd"/>
- <Cell col="1" style="align:left;padding:0 0 0 3;" text="bind:depthngnm"/>
- <Cell col="2" text="bind:deptengnm"/>
- <Cell col="3" text="bind:deptchinm"/>
- <Cell col="4" style="align:left;padding:0 0 0 3;" text="bind:depthngabbr"/>
- <Cell col="5" style="align:left;padding:0 0 0 3;" text="bind:deptengabbr"/>
- <Cell col="6" text="bind:reqfild"/>
- <Cell col="7" text="bind:reqdeptno"/>
- <Cell col="8" text="bind:nextplceyn"/>
- <Cell col="9" text="bind:nextplceprity"/>
- <Cell col="10" text="bind:inetrsrvyn"/>
- <Cell col="11" text="bind:cntctel"/>
- <Cell col="12" text="bind:dutplceuseyn"/>
- <Cell col="13" text="bind:reqauthdeptyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="부서코드 목록" class="tit_2" position="absolute 12 98 135 118"/>
- <Div id="div_search" anchor="left top right" taborder="9" style="align:center top;" class="div_SA" position="absolute 12 46 588 88">
- <Layouts>
- <Layout>
- <Button id="btn_sea" taborder="9" text="조회" class="btn1" position="absolute 508 10 564 30" anchor="top right" onclick="bt_search_onclick"/>
- <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
- <Combo id="cb_condition" taborder="10" value="deptcd" text="부서코드" codecolumn="codecolumn" datacolumn="datacolumn" index="0" anchor="default" position="absolute 82 10 173 30" positiontype="position" 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="11" onkeydown="div_search_ed_searchValue_onkeydown" anchor="default" position="absolute 176 10 316 30" positiontype="position" imemode="alpha"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cancel" taborder="10" text="취소" class="btn4" position="absolute 532 422 588 442" anchor="right bottom" onclick="btn_cancel_onclick"/>
- <Button id="btn_confirm" taborder="11" text="확인" class="btn4" position="absolute 473 422 529 442" anchor="right bottom" onclick="btn_confirm_onclick"/>
- <Static id="stt_titleText" text="전기관부서정보검색" class="sta_POP_title" position="absolute 12 8 159 31" onclick="caption00_onclick"/>
- <Button id="btn_close" taborder="12" class="btn_POP_cls" position="absolute 574 12 588 25" anchor="top right" onclick="btn_close_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_deptCodeList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- <Column id="deptengnm" type="STRING" size="256"/>
- <Column id="deptchinm" type="STRING" size="256"/>
- <Column id="deptplce" type="STRING" size="256"/>
- <Column id="deptengabbr" type="STRING" size="256"/>
- <Column id="depthngabbr" type="STRING" size="256"/>
- <Column id="reqfild" type="STRING" size="256"/>
- <Column id="orddeptflag" type="STRING" size="256"/>
- <Column id="reqdeptno" type="STRING" size="256"/>
- <Column id="nextplceyn" type="STRING" size="256"/>
- <Column id="nextplceprity" type="STRING" size="256"/>
- <Column id="inetrsrvyn" type="STRING" size="256"/>
- <Column id="cntctel" type="STRING" size="256"/>
- <Column id="dutplceuseyn" type="STRING" size="256"/>
- <Column id="reqauthdeptyn" type="STRING" size="256"/>
- <Column id="planuseyn" type="STRING" size="256"/>
- <Column id="plansupdeptcd" type="STRING" size="256"/>
- <Column id="plandispseq" type="STRING" size="256"/>
- <Column id="orduseyn" type="STRING" size="256"/>
- <Column id="ordsupdeptcd" type="STRING" size="256"/>
- <Column id="orddispseq" type="STRING" size="256"/>
- <Column id="psnworkuseyn" type="STRING" size="256"/>
- <Column id="psnworksupdeptcd" type="STRING" size="256"/>
- <Column id="psnworkdispseq" type="STRING" size="256"/>
- <Column id="purcuseyn" type="STRING" size="256"/>
- <Column id="purcsupdeptcd" type="STRING" size="256"/>
- <Column id="purcdispseq" type="STRING" size="256"/>
- <Column id="fnworkuseyn" type="STRING" size="256"/>
- <Column id="fnworksupdeptcd" type="STRING" size="256"/>
- <Column id="fnworkdispseq" type="STRING" size="256"/>
- <Column id="careuseyn" type="STRING" size="256"/>
- <Column id="caresupdeptcd" type="STRING" size="256"/>
- <Column id="caredispseq" type="STRING" size="256"/>
- <Column id="gafruseyn" type="STRING" size="256"/>
- <Column id="gafrsupdeptcd" type="STRING" size="256"/>
- <Column id="gafrdispseq" type="STRING" size="256"/>
- <Column id="rcptuseyn" type="STRING" size="256"/>
- <Column id="rcptsupdeptcd" type="STRING" size="256"/>
- <Column id="rcptdispseq" type="STRING" size="256"/>
- <Column id="pamuseyn" type="STRING" size="256"/>
- <Column id="pamsupdeptcd" type="STRING" size="256"/>
- <Column id="pamdispseq" type="STRING" size="256"/>
- <Column id="healcareinfouseyn" type="STRING" size="256"/>
- <Column id="healcareinfosupdeptcd" type="STRING" size="256"/>
- <Column id="healcareinfodispseq" type="STRING" size="256"/>
- <Column id="insuuseyn" type="STRING" size="256"/>
- <Column id="insusupdeptcd" type="STRING" size="256"/>
- <Column id="insudispseq" type="STRING" size="256"/>
- <Column id="dgenuseyn" type="STRING" size="256"/>
- <Column id="dgensupdeptcd" type="STRING" size="256"/>
- <Column id="dgendispseq" type="STRING" size="256"/>
- <Column id="homecareuseyn" type="STRING" size="256"/>
- <Column id="homecaresupdeptcd" type="STRING" size="256"/>
- <Column id="homecaredispseq" type="STRING" size="256"/>
- <Column id="clssupdeptcd" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="valitodd" type="STRING" size="256"/>
- <Column id="valifromdd" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- <Column id="orddeptkind" type="STRING" size="256"/>
- <Column id="ordclsdeptflag" type="STRING" size="256"/>
- <Column id="indepthngnm" type="STRING" size="256"/>
- <Column id="inorddeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/************************************************************************************************
- * 파 일 명 : SPZSD00300_전기관부서정보검색팝업.xfdl
- * 작 성 자 : 임준호
- * 작 성 일 : 2014.02.05
- * 설 명 : 전기관부서정보검색 팝업
- * return value - (cdid:코드ID, cdnm:코드명)
- * 수 정 자 :
- * 수정이력 :
- ************************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- /************************************************************************************************
- ******************************** Form Variable **************************************************
- ************************************************************************************************/
-
-
- /************************************************************************************************
- ******************************** Form Function **************************************************
- ************************************************************************************************/
- /********************************************************************************
- * 설 명 : 부서 코드 정보를 서버에서 가져온다.
- * argument :
- ********************************************************************************/
- function lf_getDeptCodeList(){
- var S_IN_DS_REQ = "ds_req";
-
- if(!utlf_isNull(this.objects["ds_req"])){
- ds_req.clear();
- }
-
- var objColInfo = new Array();
- //objColInfo.push({col: "containhistory", val: });
- objColInfo.push({col: "insttype", val: plgv_sInstType});
- objColInfo.push({col: "instcd", val: plgv_sInstCode});
- objColInfo.push({col: "searchcondition", val: div_search.cb_condition.value});
- objColInfo.push({col: "searchterm", val: div_search.ed_searchValue.value});
- if(!utlf_isNull(plgv_sStandardYn)) objColInfo.push({col: "standardyn", val: plgv_sStandardYn});
- if(!utlf_isNull(plgv_sOrdDeptflag)) objColInfo.push({col: "orddeptflag", val: plgv_sOrdDeptflag});
- if(!utlf_isNull(plgv_sStandardSupdeptcd)) objColInfo.push({col: "standardsupdeptcd", val: plgv_sStandardSupdeptcd});
- objColInfo.push({col: "basedd", val: plgv_sBasedd});
- dsf_createDsRow(S_IN_DS_REQ, objColInfo);
-
- tranf_submit({
- id: "tr_reqGetDepartmentCodeList"
- , service: "departmentcodeapp.DepartmentCodeUser"
- , method: "reqGetDepartmentCodeList"
- , inds : "req="+S_IN_DS_REQ
- , outds: "ds_deptCodeList=dept"
- , async: true
- });
- }
- /********************************************************************************
- * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
- * argument : sCdid - 코드 ID
- * sCdnm - 코드명
- ********************************************************************************/
- function lf_setDeptCodeInfo(){
-
- var sDeptcd = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptcd");
- var sDepthngnm = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "depthngnm");
-
- var sDeptengnm = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptengnm");
- var sDeptchinm = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptchinm");
- var sDepthngabbr = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "depthngabbr");
- var sDeptengabbr = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptengabbr");
- var sReqfild = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "reqfild");
- var sReqdeptno = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "reqdeptno");
- var sNextplceyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "nextplceyn");
- var sNextplceprity = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "nextplceprity");
- var sInetrsrvyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "inetrsrvyn");
- var sCntctel = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "cntctel");
- var sDutplceuseyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "dutplceuseyn");
- var sReqauthdeptyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "reqauthdeptyn");
-
- var sDetail = utlf_transNullToEmpty(sDeptcd)
- + "|" + utlf_transNullToEmpty(sDepthngnm)
- + "|" + utlf_transNullToEmpty(sDeptengnm)
- + "|" + utlf_transNullToEmpty(sDeptchinm)
- + "|" + utlf_transNullToEmpty(sDepthngabbr)
- + "|" + utlf_transNullToEmpty(sDeptengabbr)
- + "|" + utlf_transNullToEmpty(sReqfild)
- + "|" + utlf_transNullToEmpty(sReqdeptno)
- + "|" + utlf_transNullToEmpty(sNextplceyn)
- + "|" + utlf_transNullToEmpty(sNextplceprity)
- + "|" + utlf_transNullToEmpty(sInetrsrvyn)
- + "|" + utlf_transNullToEmpty(sCntctel)
- + "|" + utlf_transNullToEmpty(sDutplceuseyn)
- + "|" + utlf_transNullToEmpty(sReqauthdeptyn);
-
- //eval("opener."+plgv_sReturnFuncNm+"('"+sDeptcd+"', '"+sDepthngnm+"', '"+sDetail+"')");
- var objRetVal = new Object();
- objRetVal.deptcd = sDeptcd;
- objRetVal.depthngnm = sDepthngnm;
- objRetVal.detail = sDetail;
-
- this.close(objRetVal);
- }
- /************************************************************************************************
- ******************************** Form Event *****************************************************
- ************************************************************************************************/
- /********************************************************************************
- * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
- * 해당 컴포넌트에 입력하고 조회한다.
- * argument :
- ********************************************************************************/
- function SPZSD00200_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_getDeptCodeList();
- }
-
- div_search.ed_searchValue.setFocus();
- setImemode(div_search.ed_searchValue, div_search.cb_condition.value);
-
- /*
- 컬럼 visible 설정
- 0 deptcd 60
- 1 depthngnm 160
- 2 deptengnm 110
- 3 deptchinm 110
- 4 depthngabbr 160
- 5 deptengabbr 90
- 6 reqfild 60
- 7 reqdeptno 80
- 8 nextplceyn 100
- 9 nextplceprity 120
- 10 inetrsrvyn 90
- 11 cntctel 110
- 12 dutplceuseyn 100
- 13 reqauthdeptyn 90
- */
- var arrColSize = new Array();
- var arrVisibleCol = plgv_sVisibleColumns.split(" ");
-
- arrColSize.push({col: "deptcd", size: "60"});
- arrColSize.push({col: "depthngnm", size: "160"});
- arrColSize.push({col: "deptengnm", size: "110"});
- arrColSize.push({col: "deptchinm", size: "110"});
- arrColSize.push({col: "depthngabbr", size: "160"});
- arrColSize.push({col: "deptengabbr", size: "90"});
- arrColSize.push({col: "reqfild", size: "60"});
- arrColSize.push({col: "reqdeptno", size: "80"});
- arrColSize.push({col: "nextplceyn", size: "100"});
- arrColSize.push({col: "nextplceprity", size: "120"});
- arrColSize.push({col: "inetrsrvyn", size: "90"});
- arrColSize.push({col: "cntctel", size: "110"});
- arrColSize.push({col: "dutplceuseyn", size: "100"});
- arrColSize.push({col: "reqauthdeptyn", size: "90"});
-
- for(var i in arrColSize){
- gd_deptCodeList.setFormatColProperty(i,"size", 0);
- }
-
- for(var i in arrVisibleCol){
- trace("arrVisibleCol-"+i+"="+arrVisibleCol[i]);
- for(var j in arrColSize){
- if(arrVisibleCol[i] === arrColSize[j].col){
- gd_deptCodeList.setFormatColProperty(j,"size", arrColSize[j].size);
- }
- }
- }
- }
- /********************************************************************************
- * 설 명 : 조회 - 코드목록을 조회한다.
- * argument :
- ********************************************************************************/
- function bt_search_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_getDeptCodeList();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function gd_deptCodeList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_setDeptCodeInfo();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setDeptCodeInfo();
- }
- /********************************************************************************
- * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
- * argument :
- ********************************************************************************/
- function div_search_ed_searchValue_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- lf_getDeptCodeList();
- }
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function gd_deptCodeList_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- lf_setDeptCodeInfo();
- }
- }
- /********************************************************************************
- * 설 명 : 취소 - 팝업을 닫는다.
- * argument :
- ********************************************************************************/
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- 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 SPZSD00300_onkeydown(obj:Form, e:KeyEventInfo)
- {
- if(e.keycode == 27) this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|