123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSA20202" position="absolute 0 0 590 411" titletext="계정/부서조회" class="frm_POP" oninit="SPZSA20202_oninit">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="0" position="absolute 10 43 580 78" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption1" text="계정/부서조회 :" class="search_name" position="absolute 15 9 123 26" anchor="default"/>
- <Shape id="line1" linetype="vertical" position="absolute 484 7 490 29" anchor="default"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 501 7 557 29" anchor="default" onclick="grp_sea_btn_search_onclick"/>
- <Combo id="cmb_flag" taborder="2" innerdataset="ds_init_cmb_flag" codecolumn="value" datacolumn="lable" class="combo_search" enable="true" position="absolute 227 8 328 27" anchor="default"/>
- <Edit id="ipt_search_item" taborder="3" class="input_s_essential" position="absolute 331 8 476 27" anchor="default" onkeydown="grp_sea_ipt_search_item_onkeydown" style="bordertype:normal 0 0 ;align:center middle;"/>
- <Radio id="radio1" taborder="4" columncount="2" rowcount="0" innerdataset="ds_init_radio1" codecolumn="value" datacolumn="lable" position="absolute 127 10 212 26" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption9" text="계정/부서조회" class="tit_2" position="absolute 10 82 121 102"/>
- <Shape id="line12" linetype="vertical" class="line_1" position="absolute 0 112 584 113"/>
- <Static id="stt_titleText" text="권한사용자조회" onclick="stt_titleText_onclick" class="sta_POP_title" transparenthittest="true" position="absolute 12 8 161 28"/>
- <Button id="btn_close" taborder="1" onclick="btn_close_onclick" class="btn_POP_cls" position="absolute 560 12 574 25"/>
- <Grid id="grd_acntdeptlist" taborder="2" binddataset="ds_grd_acntdeptlist" useinputpanel="false" position="absolute 10 100 580 401" oncelldblclick="grd_acntdeptlist_oncelldblclick" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="270"/>
- </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="명"/>
- </Band>
- <Band id="body">
- <Cell text="bind:acntdepttype"/>
- <Cell col="1" text="bind:dutplceinstcd"/>
- <Cell col="2" text="bind:dutplceinstnm"/>
- <Cell col="3" text="bind:rgstcd"/>
- <Cell col="4" text="bind:dutplceinstnm"/>
- <Cell col="5" style="align:left;" text="bind:rgstnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lable" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lable">계정그룹</Col>
- <Col id="value">acntgrup</Col>
- </Row>
- <Row>
- <Col id="lable">근무지</Col>
- <Col id="value">dutplce</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_radio1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lable" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lable">명</Col>
- <Col id="value">nm</Col>
- </Row>
- <Row>
- <Col id="lable">코드</Col>
- <Col id="value">cd</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grd_acntdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acntdepttype" type="STRING" size="256"/>
- <Column id="dutplceinstcd" type="STRING" size="256"/>
- <Column id="dutplceinstnm" type="STRING" size="256"/>
- <Column id="rgstcd" type="STRING" size="256"/>
- <Column id="dutplceinstnm" type="STRING" size="256"/>
- <Column id="rgstnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-10-31
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-10-31 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function SPZSA20202_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
-
- var iProperties;
- if (frmf_checkOpener()) {
- iProperties = SPZSA20202_1;
- }
- fInitialize();
- if(iProperties==4)
- {
- grp_sea.cmb_flag.index = 0;
- }
- else
- {
- grp_sea.cmb_flag.index = 1;
- }
- // 화면 권한처리
- //grp_sea.btn_search.enable = frmf_checkAuth("R"); ========================> 테스트 끝나면 주석풀기
-
- grdf_setGridSort(grd_acntdeptlist);
- }
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- ds_grd_acntdeptlist.clearData();
- grp_sea.radio1.value = "nm";
- grp_sea.cmb_flag.index = 0;
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo){
- this.close();
- }
- function grp_sea_ipt_search_item_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- ///alert(grp_search.ipt_scrnnm.value);
- grp_sea.btn_search.click();
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fClicked("search", grd_acntdeptlist);
- }
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- //model.resetInstanceNode("/root/send");
- } else if ("init" == control){
- reload();
- } else {
- sysf_messageBox("처리를 수행","E002");
- }
- }
- function fSearchClick(grid,param){
- var isearchitem = grp_sea.ipt_search_item.value;
- ds_grd_acntdeptlist.clearData();
-
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [ {col: "searchitem", val: grp_sea.ipt_search_item.value}
- ,{col: "flag", val: grp_sea.cmb_flag.value}
- ,{col: "rdo_flag", val: grp_sea.radio1.value} ]);
- var oParam = {};
- oParam.id = "TRZSA20203";
- oParam.service = "authinfoapp.AuthInfo";
- oParam.method = "reqGetAcntDept";
- oParam.inds = "req="+sInDsName;
- oParam.outds = "ds_grd_acntdeptlist=acntdeptlist";
- oParam.async = false;
- oParam.callback = "cf_TRZSA20203";
- tranf_submit(oParam);
- }
- function cf_TRZSA20203(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function grd_acntdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = grd_acntdeptlist.currentrow
- var iParam="";
- //var iNode = "/root/main/list/acntdeptlist";
- var iParam_acntdepttype = ds_grd_acntdeptlist.getColumn(iRow, "acntdepttype");
- var iParam_dutplceinstcd = ds_grd_acntdeptlist.getColumn(iRow, "dutplceinstcd");
- var iParam_dutplceinstnm = ds_grd_acntdeptlist.getColumn(iRow, "dutplceinstnm");
- var iParam_rgstcd = ds_grd_acntdeptlist.getColumn(iRow, "rgstcd");
- var iParam_rgstnm = ds_grd_acntdeptlist.getColumn(iRow, "rgstnm");
- iParam = iParam_acntdepttype+"|"+iParam_rgstcd+"|"+iParam_rgstnm+"|"+iParam_dutplceinstcd+"|"+iParam_dutplceinstnm;
- if ( frmf_checkOpener() ) {
- close(iParam);
- } else {
- var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- }
-
- close(iParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|