servlet
public EiInfo query ( EiInfo inInfo) {
String loginName = UserSession . getLoginName ( ) ;
Map < String , String > userOrg123 = UserBelong . queryOrg123 ( loginName) ;
String orgName = userOrg123. get ( "orgName" ) ;
String orgCode = userOrg123. get ( "orgCode" ) ;
String dep1Ename = userOrg123. get ( "dep1Ename" ) ;
String dep1Cname = userOrg123. get ( "dep1Cname" ) ;
String dep2Ename = userOrg123. get ( "dep2Ename" ) ;
String dep2Cname = userOrg123. get ( "dep2Cname" ) ;
String dep3Ename = userOrg123. get ( "dep3Ename" ) ;
String dep3Cname = userOrg123. get ( "dep3Cname" ) ;
if ( ! UserBelong . isAdmin ( inInfo) ) {
Integer queryPower = UserBelong . getRoleQuery ( loginName, "AQFG0401" ) ;
if ( queryPower == null ) {
inInfo. addBlock ( "result" ) ;
return inInfo;
} else {
if ( OtherConstants . ringAndBelow. equals ( queryPower) ) {
inInfo. set ( "inqu_status-0-queryPower" , OtherConstants . ringAndBelow + "" ) ;
}
if ( OtherConstants . cnmpanyAndBelow. equals ( queryPower) ) {
inInfo. set ( "inqu_status-0-queryPower" , OtherConstants . cnmpanyAndBelow + "" ) ;
}
if ( OtherConstants . depAndBelow. equals ( queryPower) ) {
inInfo. set ( "inqu_status-0-queryPower" , OtherConstants . depAndBelow + "" ) ;
inInfo. set ( "inqu_status-0-queryDep" , orgCode) ;
}
if ( OtherConstants . rankAndBelow. equals ( queryPower) ) {
inInfo. set ( "inqu_status-0-queryPower" , OtherConstants . rankAndBelow + "" ) ;
inInfo. set ( "inqu_status-0-queryDep" , orgCode) ;
}
if ( OtherConstants . rank. equals ( queryPower) ) {
inInfo. set ( "inqu_status-0-queryPower" , OtherConstants . rank + "" ) ;
inInfo. set ( "inqu_status-0-queryDep" , orgCode) ;
}
}
}
return super . query ( inInfo, "AQFG04.query" ) ;
}
xml
< isEqual prepend = " AND " property = " queryPower" compareValue = " 400" >
APPRASIE_UNITID LIKE #queryDep# || '%'
</ isEqual>
< isEqual prepend = " AND " property = " queryPower" compareValue = " 300" >
APPRASIE_UNITID LIKE #queryDep# || '%'
</ isEqual>
< isEqual prepend = " AND " property = " queryPower" compareValue = " 200" >
APPRASIE_UNITID = #queryDep#
</ isEqual>
机构树初始化
public EiInfo initLoad ( EiInfo inInfo) {
inInfo = UserBelong . getRootNode ( inInfo, "AQJL0101" ) ;
return inInfo;
}
相关组织树形下拉
jsp
< EF : EFTreeInput ename= "inqu_status-0-apprasieUnit" cname= "评价单位"
serviceName= "AQTS0201" methodName= "querydepartmenttree"
valueField= "orgEname" textField= "orgCname" onlyLeaf= "true" hasChildren= "leaf" readonly= "true" >
< / EF : EFTreeInput>
js
IPLAT . EFTreeInput. enable ( $ ( "#inqu_status-0-wrritenUnit" ) , __eiInfo. get ( "ifEdited" ) ) ;
if ( __eiInfo. get ( "ifEdited" ) == false ) {
IPLAT . EFTreeInput. setAllFields ( $ ( "#inqu_status-0-wrritenUnit" ) , __eiInfo. get ( "rootNodeEname" ) , __eiInfo. get ( "rootNodeCname" ) ) ;
}
IPLATUI . EFTreeInput = {
"inqu_status-0-wrritenUnit" : {
ROOT : {
orgEname: __eiInfo. get ( "rootNodeEname" ) ,
orgCname: __eiInfo. get ( "rootNodeCname" ) ,
leaf: true ,
icon: "folder" ,
expanded: true
} ,
backFill : function ( e ) {
IPLAT . EFTreeInput. setAllFields ( $ ( "#inqu_status-0-wrritenUnit" ) , e. node. orgEname, e. node. orgCname) ;
} ,
}
} ;