123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMZSA20600" classname="SMZSA20200_사용자그룹관리" inheritanceid="" position="absolute 0 0 1256 805" titletext="사용자메뉴권한조회" onload="SMZSA20600_onload" oninit="SMZSA20600_oninit">
- <Layouts>
- <Layout>
- <Div id="grp_sea" anchor="default" taborder="25" style="align:center top;" class="div_SA" position="absolute 0 24 343 88">
- <Layouts>
- <Layout>
- <Static id="caption1" class="search_name" position="absolute 12 10 107 30" anchor="default" text="메뉴권한그룹" positiontype="position"/>
- <Combo id="cb_searchauthgroup" taborder="1" value="usernm" innerdataset="ds_cb_authgroup" codecolumn="code" datacolumn="name" class="enabled" text="사용자명" index="0" anchor="default" position="absolute 119 10 238 30" positiontype="position" onitemchanged="grp_sea_cb_searchauthgroup_onitemchanged"/>
- <Edit id="ed_searchText" taborder="2" onkeydown="grp_sea_ed_searchText_onkeydown" position="absolute 119 34 239 54" imemode="hangul" positiontype="position" class="input_essential"/>
- <Button id="bt_search" taborder="3" text="조회" class="btn1" position="absolute 273 23 329 43" anchor="top right" onclick="grp_sea_bt_search_onclick" positiontype="position"/>
- <Shape id="Shape00" position="absolute 255 10 259 54" linetype="vertical"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption00" text="사용자 조회" onclick=""caption6_onclick"" class="tit_2" position="absolute 0 95 104 115" anchor="default" positiontype="position"/>
- <Static id="caption6" text="사용자 메뉴그룹 이력 조회" onclick=""caption6_onclick"" class="tit_1" position="absolute 0 0 206 25" anchor="default" positiontype="position"/>
- <Edit id="ed_authCode" taborder="27" style=":disabled {align:center middle;}" anchor="left top right" position="absolute 1083 63 1256 84" positiontype="position" readonly="true" class="output"/>
- <Static id="caption16" text="메뉴권한 그룹(명/코드)" class="cell_1" position="absolute 745 62 907 85"/>
- <Edit id="ed_authName" taborder="28" style=":disabled {align:center middle;}" anchor="default" position="absolute 911 63 1079 84" positiontype="position" readonly="true" class="output"/>
- <Static id="caption5" text="사용자명/사용자 ID" class="cell_1" position="absolute 352 62 474 85"/>
- <Static id="caption01" text="선택 메뉴권한" onclick=""caption6_onclick"" class="tit_2" position="absolute 352 40 464 60" anchor="default" positiontype="position"/>
- <Static id="caption02" text="메뉴 그룹" onclick=""caption6_onclick"" class="tit_2" position="absolute 440 95 625 115" anchor="default" positiontype="position" visible="true"/>
- <Static id="caption03" text="메뉴권한 리스트" onclick=""caption6_onclick"" class="tit_2" position="absolute 735 95 892 115" anchor="default" positiontype="position" visible="true"/>
- <Grid id="gd_menurightlist" taborder="29" binddataset="ds_menurightlist" scrollbars="autovert" useinputpanel="false" cellsizingtype="col" oncelldblclick="gd_menurightlist_oncelldblclick" position="absolute 440 113 729 797" anchor="left top bottom" autofittype="col" visible="true">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="160"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="메뉴권한그룹명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" text="bind:menugrupnm"/>
- <Cell col="1" displaytype="text" text="bind:menugrupcd"/>
- <Cell col="2" text="bind:menuauthcd"/>
- <Cell col="3" text="bind:menugrupnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="gd_menuauthlist" taborder="30" binddataset="ds_menuauthlist" scrollbars="autovert" useinputpanel="false" cellsizingtype="col" treeusecheckbox="false" ontextchange="tb_MenuAuth_tabpage1_gd_regiauthmenulist_ontextchange" ontextchanged="tb_MenuAuth_tabpage1_gd_regiauthmenulist_ontextchanged" anchor="all" position="absolute 735 113 1248 797" autofittype="col" treeuseimage="false" visible="true">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="259"/>
- <Column size="95"/>
- <Column size="83"/>
- <Column size="28"/>
- <Column size="28"/>
- <Column size="28"/>
- </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" edittype="checkbox">
- <Cell displaytype="text" text="R"/>
- </Cell>
- <Cell col="4" edittype="checkbox">
- <Cell displaytype="text" text="X"/>
- </Cell>
- <Cell col="5" edittype="checkbox">
- <Cell displaytype="text" text="P"/>
- </Cell>
- </Band>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" text="bind:menuitemnm" treestartlevel="1" treelevel="bind:menu_level"/>
- <Cell col="1" text="bind:menuitemcd"/>
- <Cell col="2" displaytype="text" text="bind:upmenuitemcd"/>
- <Cell col="3" displaytype="checkbox" edittype="none" style="controlbackground:silver;controlborder:1 solid #708090cc;" text="bind:r"/>
- <Cell col="4" displaytype="checkbox" edittype="none" style="controlbackground:silver;controlborder:1 solid #708090cc;" text="bind:x"/>
- <Cell col="5" displaytype="checkbox" edittype="none" style="controlbackground:silver;controlborder:1 solid #708090cc;" text="bind:p"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit id="ed_userName" taborder="32" style=":disabled {align:center middle;}" anchor="default" position="absolute 477 63 607 84" positiontype="position" readonly="true" class="output"/>
- <Edit id="ed_userID" taborder="33" style=":disabled {align:center middle;}" anchor="default" position="absolute 611 63 741 84" positiontype="position" readonly="true" class="output"/>
- <Shape id="Shape00" position="absolute 352 54 1256 66" class="line_10" anchor="left top right"/>
- <Shape id="Shape01" class="line_1" position="absolute 352 81 1256 93" anchor="left top right"/>
- <Grid id="gd_userlist" taborder="26" binddataset="ds_userlist" useinputpanel="false" cellsizingtype="col" oncelldblclick="gd_userlist_oncelldblclick" anchor="left top bottom" position="absolute 0 113 435 797">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="75"/>
- <Column size="113"/>
- <Column size="80"/>
- <Column size="77"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="권한부여자"/>
- <Cell col="6" text="부여일시"/>
- <Cell col="7" text="권한수정자"/>
- <Cell col="8" text="수정일시"/>
- </Band>
- <Band id="body">
- <Cell displaytype="normal" edittype="none" style="align:center middle;" text="bind:usernm"/>
- <Cell col="1" edittype="none" text="bind:userid"/>
- <Cell col="2" displaytype="normal" edittype="none" text="bind:depthngnm"/>
- <Cell col="3" displaytype="date" edittype="none" text="bind:fromdd"/>
- <Cell col="4" displaytype="date" edittype="none" text="bind:todd"/>
- <Cell col="5" displaytype="normal" text="bind:fstrgstrnm"/>
- <Cell col="6" displaytype="date" text="bind:fstrgstdt"/>
- <Cell col="7" displaytype="normal" text="bind:lastupdtrnm"/>
- <Cell col="8" displaytype="date" text="bind:lastupdtdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cb_authgroup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="code" type="STRING" size="256"/>
- <Column id="name" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="name">사용자명</Col>
- <Col id="code">usernm</Col>
- </Row>
- <Row>
- <Col id="name">사용자ID</Col>
- <Col id="code">userid</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- <Column id="dutplceinstcd" type="STRING" size="256"/>
- <Column id="dutplcecd" type="STRING" size="256"/>
- <Column id="jobkindcd" type="STRING" size="256"/>
- <Column id="jobrespcd" type="STRING" size="256"/>
- <Column id="dutinstcd" type="STRING" size="256"/>
- <Column id="orginstcd" type="STRING" size="256"/>
- <Column id="userkindcd" type="STRING" size="256"/>
- <Column id="jobposcd" type="STRING" size="256"/>
- <Column id="grupjoblncd" type="STRING" size="256"/>
- <Column id="prfshipflagcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="menuauthnm" type="STRING" size="256"/>
- <Column id="menuitemnm" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="fstrgstrnm" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="lastupdtrnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_menurightlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="menugrupnm" type="STRING" size="256"/>
- <Column id="menugrupcd" type="STRING" size="256"/>
- <Column id="menuauthcd" type="STRING" size="256"/>
- <Column id="menuauthnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_menugrupauthlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="menuauthnm" type="STRING" size="256"/>
- <Column id="menuauthcd" type="STRING" size="256"/>
- <Column id="allowyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_menuauthlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="num" type="STRING" size="256"/>
- <Column id="path" type="STRING" size="256"/>
- <Column id="menu_level" type="STRING" size="256"/>
- <Column id="menugrupcd" type="STRING" size="256"/>
- <Column id="menuitemcd" type="STRING" size="256"/>
- <Column id="menuitemnm" type="STRING" size="256"/>
- <Column id="upmenuitemcd" type="STRING" size="256"/>
- <Column id="searchseq" type="STRING" size="256"/>
- <Column id="basescrn" type="STRING" size="256"/>
- <Column id="scrnflag" type="STRING" size="256"/>
- <Column id="scrncd" type="STRING" size="256"/>
- <Column id="menuscrnflag" type="STRING" size="256"/>
- <Column id="scrnurl" type="STRING" size="256"/>
- <Column id="scrnpos" type="STRING" size="256"/>
- <Column id="scrnauth" type="STRING" size="256"/>
- <Column id="r" type="STRING" size="256"/>
- <Column id="x" type="STRING" size="256"/>
- <Column id="p" type="STRING" size="256"/>
- <Column id="menuauthcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/************************************************************************************************
- * 파 일 명 : SPZSA20200_사용자그룹관리.xfdl
- * 작 성 자 : 김상득
- * 작 성 일 : 2014.02.03
- * 설 명 : 사용자그룹관리
- * 수 정 자 :
- * 수정이력 :
- ************************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- /******************************* Form Variable *************************************************/
- /************************************************************************************************
- ******************************** Form Event ****************************************************
- ************************************************************************************************/
- function SMZSA20600_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 초기화
- lf_Init();
-
- }
- function grp_sea_ed_searchText_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if ( e.keycode == 13 ) {
- lf_SearchUser();
- }
- }
- function grp_sea_bt_search_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_SearchUser();
- }
- function gd_userlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ed_userName.value = ds_userlist.getColumn( ds_userlist.rowposition, "usernm" );
- ed_userID.value = ds_userlist.getColumn( ds_userlist.rowposition, "userid" );
-
- ed_authName.value = "";
- ed_authCode.value = ""
- ds_menuauthlist.clearData();
-
- lf_SearchMenuGroup();
- }
- /************************************************************************************************
- Form Function
- ************************************************************************************************/
-
-
- /********************************************************************************
- * 설 명 : 화면초기화 함수.
- * argument :
- ********************************************************************************/
- function lf_clearData()
- {
- ds_userlist.clearData();
- ds_menurightlist.clearData();
- ds_menugrupauthlist.clearData();
- ds_menuauthlist.clearData();
-
- ed_userName.value = "";
- ed_userID.value = "";
- ed_authName.value = "";
- ed_authCode.value = ""
-
- }
-
- /********************************************************************************
- * 설 명 : 초기화 함수.
- * argument :
- ********************************************************************************/
- function lf_Init()
- {
- /* 버튼 권한 설정 R : Readonly / X : Read Write / P : Print */
- grp_sea.bt_search.enable = frmf_checkAuth("X");
-
- // Combo값 Setting
- // zbcfGetCodeList( new Array("R3004", "R3008", "Z0007", "Z0016", "R3002", "R3003", "R3007"),
- var objParam = [{cdGrpId: "R3004", dsNm: "ds_code_1"} // 직종
- ,{cdGrpId: "R3007", dsNm: "ds_code_2"} // 직위
- ,{cdGrpId: "R3008", dsNm: "ds_code_3"} // 직책
- ,{cdGrpId: "Z0007", dsNm: "ds_code_4"}]; // 근무기관
- //frmf_getCodeList(objParam, true, true);
- appf_getCodeList(objParam, true);
-
- for(i=1; i <5; i++)
- {
- gd_userlist.setCellProperty( "body", i+2, "combocodecol" , "cdid" );
- gd_userlist.setCellProperty( "body", i+2, "combodatacol" , "cdnm" );
- gd_userlist.setCellProperty( "body", i+2, "combodataset" , "ds_code_"+i );
- }
- grp_sea.ed_searchText.setFocus();
- }
- /********************************************************************************
- * 설 명 : 사용자조회.
- * argument :
- ********************************************************************************/
- function lf_SearchUser()
- {
- if ( grp_sea.ed_searchText.value == "" ) {
- sysf_messageBox("조회 조건은", "I003");
- return ;
- }
- // 조회조건세팅
- var sInDsName = dsf_createDsRow("ds_search"
- , [{col: "flag", val: grp_sea.cb_searchauthgroup.value}
- , {col: "searchitem", val: grp_sea.ed_searchText.value}]);
- ds_userlist.clearData();
- ds_menurightlist.clearData();
- ds_menugrupauthlist.clearData();
- ds_menuauthlist.clearData();
-
-
- tranf_submit({
- id: "TRZSA20407"
- , service: "authinfoapp.AuthInfo"
- , method: "reqGetUserListHistory"
- , inds: "req=" + sInDsName
- , outds: "ds_userlist=userlist"
- });
- }
- /********************************************************************************
- * 설 명 : 메뉴조회.
- * argument :
- ********************************************************************************/
- function lf_SearchMenuGroup()
- {
- var sDutplce = ds_userlist.getColumn( ds_userlist.rowposition, "dutplceinstcd") +
- ds_userlist.getColumn( ds_userlist.rowposition, "dutplcecd" );
- // 조회조건세팅
- var sInDsName = dsf_createDsRow("ds_search"
- , [{col: "userid", val: ds_userlist.getColumn( ds_userlist.rowposition, "userid" )}
- , {col: "dutplceinstcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "dutplceinstcd" )}
- , {col: "dutplcecd", val: ds_userlist.getColumn( ds_userlist.rowposition, "dutplcecd" )}
- , {col: "dutplce", val: sDutplce }
- , {col: "jobkindcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "jobkindcd" )}
- , {col: "jobrespcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "jobrespcd" )}
- , {col: "dutinstcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "dutinstcd" )}
- , {col: "orginstcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "orginstcd" )}
- , {col: "userkindcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "userkindcd" )}
- , {col: "grupjoblncd", val: ds_userlist.getColumn( ds_userlist.rowposition, "grupjoblncd" )}
- , {col: "prfshipflagcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "prfshipflagcd" )}
- , {col: "jobposcd", val: ds_userlist.getColumn( ds_userlist.rowposition, "jobposcd" )}
- ]);
- ds_menurightlist.clearData();
- ds_menugrupauthlist.clearData();
-
- tranf_submit({
- id: "TRZSA20408"
- , service: "authinfoapp.AuthInfo"
- , method: "reqGetUserMenuRightList"
- , inds: "req=" + sInDsName
- , outds: "ds_menurightlist=menurightlist ds_menugrupauthlist=menugrupauthlist"
- });
- }
- function gd_menurightlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ed_authName.value = ds_menurightlist.getColumn( ds_menurightlist.rowposition, "menuauthnm" );
- ed_authCode.value = ds_menurightlist.getColumn( ds_menurightlist.rowposition, "menuauthcd" );
- lf_MenuAuthList();
- }
- /********************************************************************************
- * 설 명 : 메뉴권한리스트조회.
- * argument :
- ********************************************************************************/
- function lf_MenuAuthList()
- {
- // 조회조건세팅
- var sInDsName = dsf_createDsRow("ds_search"
- , [{col: "menugrupauthcd", val: ds_menurightlist.getColumn( ds_menurightlist.rowposition, "menugrupcd" ) }
- , {col: "optmenuauthcd", val: ed_authCode.value }
- ]);
- ds_menuauthlist.clearData();
-
- tranf_submit({
- id: "TRZSA20406"
- , service: "authinfoapp.AuthInfo"
- , method: "reqGetMenuGrupAuthList"
- , inds: "req=" + sInDsName
- , outds: "ds_menuauthlist=menuauthlist"
- });
- }
- function grp_sea_cb_searchauthgroup_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|