示例#1
0
 public bool BatchAddRoleEntityPermissionInfos(string StrTmpList, string StrAdduser, string StrRoleID)
 {
     using (RoleEntityMenuBLL bll = new RoleEntityMenuBLL())
     {
         string keyString = "RoleEntityID" + StrRoleID;
         String KeyNewString ="GetRoleEntityIDListInfosByRoleIDNew" + StrRoleID;//修改后的视图的显示
         string keyStringPermission = "GetPermissionByRoleIDSecond" + StrRoleID;
         //WCFCache.Current.Remove(WCFCache.Current[keyString]);
         WCFCache.Current[keyString] = null;
         WCFCache.Current[KeyNewString] = null;
         //WCFCache.Current.Remove(WCFCache.Current[keyStringPermission]);
         WCFCache.Current[keyStringPermission] = null;
         return bll.RoleEntityMenuBatchAddInfosList(StrTmpList, StrRoleID, StrAdduser);
         //return false;
     }
 }
示例#2
0
 public bool BatchAddRoleEntityPermissionInfos(string StrTmpList, string StrAdduser, string StrRoleID)
 {
     Tracer.Debug("修改角色权限,传递的字符串:" + System.Environment.NewLine + StrTmpList);
     using (RoleEntityMenuBLL bll = new RoleEntityMenuBLL())
     {
         string keyString = "RoleEntityID" + StrRoleID;
         String KeyNewString ="GetRoleEntityIDListInfosByRoleIDNew" + StrRoleID;//修改后的视图的显示
         string keyStringPermission = "GetPermissionByRoleIDSecond" + StrRoleID;
         WCFCache.Current[keyString] = null;
         WCFCache.Current[KeyNewString] = null;
         WCFCache.Current[keyStringPermission] = null;
         return bll.RoleEntityMenuBatchAddInfosList(StrTmpList, StrRoleID, StrAdduser);
         //return false;
     }
 }