合同信息查询增加权限
This commit is contained in:
parent
f1f2fd0b51
commit
cf4b653dd7
@ -6,6 +6,7 @@
|
||||
|
||||
String InfoForType=CurPage.getParameter("InfoForType");
|
||||
String userid=CurUser.getUserID().substring(0,5);
|
||||
String userid1=CurUser.getUserID();
|
||||
String Orgid=CurUser.getOrgID();
|
||||
String Model="";
|
||||
String distributor_id="";
|
||||
@ -27,6 +28,13 @@
|
||||
/* String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract"); */
|
||||
doTemp.appendJboWhere(" and O.distributor_id='"+distributor_id+"'");
|
||||
}
|
||||
//合同信息查询加权限
|
||||
if("ContractInfoAllViewFroJXS".equals(Model)){
|
||||
if(!"administrator".equals(userid1)){
|
||||
doTemp.appendJboWhere(" and O.project_manage='"+userid1+"'");
|
||||
}
|
||||
}
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user