123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLIF00300" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 800 500" titletext="MIS자산코드조회" onload="SMLIF00300_onload" onkeydown="SMLIF00300_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_fixasetcd" taborder="3" useinputpanel="false" position2="absolute l:0 w:796 t:98 h:376" positiontype="position2" binddataset="ds_fixasetcdlist" cellmovingtype="none" autofittype="none" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="gd_deptCodeList_oncelldblclick" onkeydown="gd_deptCodeList_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="120"/>
- <Column size="220"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="180"/>
- <Column size="100"/>
- <Column size="80"/>
- </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="사용부서"/>
- <Cell col="6" text="설치부서"/>
- <Cell col="7" text="대리점"/>
- <Cell col="8" text="대리점연락처"/>
- <Cell col="9" text="최초등록일"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:fixasetcd"/>
- <Cell col="2" style="align:left;padding:0 0 0 3;" text="bind:goodflaghngnm"/>
- <Cell col="3" style="align:left;" text="bind:goodspec"/>
- <Cell col="4" style="align:left;" text="bind:goodmodel"/>
- <Cell col="5" style="align:left;" text="bind:mngtdeptnm"/>
- <Cell col="6" style="align:left;" text="bind:installplcenm"/>
- <Cell col="7" style="align:left;" text="bind:agency"/>
- <Cell col="8" text="bind:agencycntctel"/>
- <Cell col="9" text="bind:fstrgstdd" mask="####-##-##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="bt_ok" taborder="4" text="확인" onclick="bt_ok_onclick" class="btn4" anchor="default" position="absolute 680 477 736 497" positiontype="position"/>
- <Button id="bt_cancel" taborder="5" text="취소" onclick="bt_cancel_onclick" class="btn4" anchor="default" position="absolute 739 477 795 497" positiontype="position"/>
- <Div id="div_search" taborder="7" class="div_SA" position="absolute 0 26 796 68">
- <Layouts>
- <Layout>
- <Static id="st_searchCondition" class="search_name" anchor="default" position="absolute 8 10 16 30" positiontype="position"/>
- <Combo id="cmb_deptflag" taborder="1" value="deptcd" text="부서코드" codecolumn="codecolumn" datacolumn="datacolumn" index="0" anchor="default" position="absolute 18 10 96 30" positiontype="position">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">사용부서</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">설치부서</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ipt_deptnm" taborder="2" onkeydown="div_search_ed_searchValue_onkeydown" anchor="default" position="absolute 99 10 213 30" imemode="alpha" enable="false" positiontype="position"/>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" anchor="default" position="absolute 726 10 782 30" onclick="div_search_btn_search_onclick" positiontype="position"/>
- <Static id="st_searchCondition00" text="고정자산명 : " class="search_name" position="absolute 498 10 589 30" anchor="default"/>
- <Edit id="ipt_goodflaghngnm" taborder="4" imemode="none" position="absolute 585 10 685 30" anchor="default" onkeydown="div_search_ipt_goodflaghngnm_onkeydown"/>
- <Button id="btn_deptsrch" taborder="5" class="icon_search" position="absolute 211 9 231 29" onclick="div_search_btn_deptsrch_onclick" anchor="default"/>
- <Button id="btn_eraser00" taborder="6" class="icon_eraser" position="absolute 235 6 261 32" tooltiptext="부서초기" onclick="div_search_btn_eraser00_onclick" anchor="default"/>
- <Shape id="line3" linetype="vertical" position="absolute 703 11 708 31" anchor="top right"/>
- <Static id="st_searchCondition01" text="고정자산규격 : " class="search_name" position="absolute 280 10 390 30"/>
- <Edit id="ipt_goodspec" taborder="7" onkeydown="div_search_ipt_goodflaghngnm_onkeydown" position="absolute 383 10 483 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="MIS자산코드조회" class="tit_1" position="absolute 0 0 137 26"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_fixasetcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="goodflaghngnm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- <Column id="goodmodel" type="STRING" size="256"/>
- <Column id="mngtdeptcd" type="STRING" size="256"/>
- <Column id="mngtdeptnm" type="STRING" size="256"/>
- <Column id="installplcecd" type="STRING" size="256"/>
- <Column id="installplcenm" type="STRING" size="256"/>
- <Column id="agency" type="STRING" size="256"/>
- <Column id="agencycntctel" type="STRING" size="256"/>
- <Column id="fstrgstdd" 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="deptflag" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="goodflaghngnm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="div_search.cmb_deptflag" propid="value" datasetid="ds_send" columnid="deptflag"/>
- <BindItem id="item0" compid="div_search.ipt_deptnm" propid="value" datasetid="ds_send" columnid="deptnm"/>
- <BindItem id="item2" compid="div_search.ipt_goodflaghngnm" propid="value" datasetid="ds_send" columnid="goodflaghngnm"/>
- <BindItem id="item3" compid="div_search.ipt_goodspec" propid="value" datasetid="ds_send" columnid="goodspec"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/************************************************************************************************
- * 파 일 명 : SMLIF00300_MIS자산코드조회.xfdl
- * 작 성 자 : 엄영만
- * 작 성 일 : 2020.01.17
- * 설 명 : MIS자산코드 정보 검색 팝업
- * 수 정 자 :
- * 수정이력 :
- ************************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- /************************************************************************************************
- ******************************** Form Event *****************************************************
- ************************************************************************************************/
- /********************************************************************************
- * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
- * 해당 컴포넌트에 입력하고 조회한다.
- * argument :
- ********************************************************************************/
- function SMLIF00300_onload(obj:Form, e:LoadEventInfo)
- {
-
- frmf_initForm(obj);
-
- grdf_initGrid(grd_fixasetcd);
- grdf_setToolTipBind(grd_fixasetcd);
-
- ds_send.setColumn(0, "deptflag", "M");
- ds_send.setColumn(0, "deptcd", sysf_getUserInfo("dutplcecd"));
- ds_send.setColumn(0, "deptnm", sysf_getUserInfo("dutplcenm"));
- }
- /********************************************************************************
- * 설 명 : 고정자산 코드 정보를 서버에서 가져온다.
- * argument :
- ********************************************************************************/
- function getFixasetCdList()
- {
- var oParam = {};
- oParam.id = "TRLIF00301";
- oParam.service = "diagtestbaseinfomngtapp.InterfaceTestBaseInfoMngt";
- oParam.method = "reqGetFixasetCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_fixasetcdlist=fixasetcdlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /********************************************************************************
- * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
- * argument :
- ********************************************************************************/
- function setFixasetCodeInfo(){
- var sFixasetCd = "";
- var sFixasetNm = "";
-
- if(ds_fixasetcdlist.rowposition >= 0) {
- sFixasetCd = ds_fixasetcdlist.getColumn(ds_fixasetcdlist.rowposition, "fixasetcd");
- sFixasetNm = ds_fixasetcdlist.getColumn(ds_fixasetcdlist.rowposition, "goodflaghngnm");
- }
-
- var objRetVal = new Object();
- objRetVal.fixasetcd = sFixasetCd;
- objRetVal.fixasetnm = sFixasetNm;
-
- this.close(objRetVal);
- }
- /********************************************************************************
- * 설 명 : 조회 - 코드목록을 조회한다.
- * argument :
- ********************************************************************************/
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- getFixasetCdList();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function gd_deptCodeList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- setFixasetCodeInfo();
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function bt_ok_onclick(obj:Button, e:ClickEventInfo)
- {
- setFixasetCodeInfo();
- }
- /********************************************************************************
- * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
- * argument :
- ********************************************************************************/
- function div_search_ipt_goodflaghngnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- getFixasetCdList();
- }
- }
- /********************************************************************************
- * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
- * argument :
- ********************************************************************************/
- function gd_deptCodeList_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- setFixasetCodeInfo();
- }
- }
- /********************************************************************************
- * 설 명 : 취소 - 팝업을 닫는다.
- * argument :
- ********************************************************************************/
- function bt_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function SMLIF00300_onkeydown(obj:Form, e:KeyEventInfo)
- {
- if(e.keycode == 27) this.close();
- }
- function div_search_btn_deptsrch_onclick(obj:Button, e:ClickEventInfo)
- {
- var sDeptCd = "";
- var sDeptNm = "";
- var sReturn = appf_openDeptCodeList("dutplceinstcd", sysf_getUserInfo("dutplceinstcd"), "deptnm", "", "", "", "", "deptcd depthngnm cntctel");
-
- sDeptCd = sReturn.deptcd;
- sDeptNm = sReturn.depthngnm;
-
- if(utlf_isNull(sDeptCd)) {
- return;
- }
-
- ds_send.setColumn(0, "deptcd", sDeptCd);
- ds_send.setColumn(0, "deptnm", sDeptNm);
- }
- function div_search_btn_eraser00_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send.setColumn(0, "deptcd", "");
- ds_send.setColumn(0, "deptnm", "");
- }
- ]]></Script>
- </Form>
- </FDL>
|