模板,
结清证明权限
This commit is contained in:
parent
4f024ae08e
commit
d93cb798cb
@ -5,6 +5,8 @@
|
||||
<%
|
||||
String userid=CurUser.getUserID().substring(0,5);
|
||||
String userid1=CurUser.getUserID();
|
||||
String Jurisdiction="true";
|
||||
|
||||
/*
|
||||
Author: undefined 2018-07-16
|
||||
Content:
|
||||
@ -17,6 +19,7 @@ String userid1=CurUser.getUserID();
|
||||
List<BizObject> roleListObject = manager.createQuery("userid=:userid").setParameter("userid", userid1).getResultList(false);
|
||||
List<String> roleList = new ArrayList<String>();
|
||||
String roleid = "";
|
||||
|
||||
for(BizObject bo : roleListObject){
|
||||
roleid = bo.getAttribute("roleid").toString();
|
||||
roleList.add(roleid);
|
||||
@ -27,6 +30,7 @@ String userid1=CurUser.getUserID();
|
||||
//roleid:800R00000045 rolename: bccuishou
|
||||
//如果登录人属于bccuishou角色,可以看到北财下的所有的合同
|
||||
if(roleList.contains("800R00000045")){
|
||||
Jurisdiction="false";
|
||||
List<BizObject> userObjectList = manager.createQuery("roleid=:roleid").setParameter("roleid", roleId).getResultList(false);
|
||||
String userId = "";
|
||||
List<String> useridList = new ArrayList<String>();
|
||||
@ -41,6 +45,9 @@ String userid1=CurUser.getUserID();
|
||||
if(roleList.contains("401")){
|
||||
doTemp.appendJboWhere(" and O.project_manage='"+userid1+"'");
|
||||
}
|
||||
if(roleList.contains(roleId)){
|
||||
Jurisdiction="false";
|
||||
}
|
||||
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
@ -50,13 +57,7 @@ String userid1=CurUser.getUserID();
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
String userId = CurUser.getUserID();
|
||||
String Jurisdiction="";
|
||||
if(userId.indexOf("8006")>-1){
|
||||
Jurisdiction="false";
|
||||
|
||||
}else{
|
||||
Jurisdiction="true";
|
||||
}
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{Jurisdiction,"All","Button","结清证明","结清证明","saveRecord()","","","","btn_icon_save"},
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user