public bool UserRoleApplyBatchAddRoleEntityPermissionInfos(T_SYS_ROLE EntRole, string StrTmpList, string StrAdduser) { using (RoleEntityMenuBLL bll = new RoleEntityMenuBLL()) { string keyString = "RoleEntityID" + EntRole.ROLEID; String KeyNewString = "GetRoleEntityIDListInfosByRoleIDNew" + EntRole.ROLEID;//修改后的视图的显示 string keyStringPermission = "GetPermissionByRoleIDSecond" + EntRole.ROLEID; //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.UserRoleApplyEntityMenuBatchAddInfosList(EntRole, StrTmpList, StrAdduser); //return bll.RoleEntityMenuBatchAddInfosList(StrTmpList, EntRole.ROLEID, StrAdduser); //return false; } }
public bool UserRoleApplyBatchAddRoleEntityPermissionInfos(T_SYS_ROLE EntRole, string StrTmpList, string StrAdduser) { Tracer.Debug("修改角色权限,传递的字符串:" + System.Environment.NewLine + StrTmpList); using (RoleEntityMenuBLL bll = new RoleEntityMenuBLL()) { string keyString = "RoleEntityID" + EntRole.ROLEID; String KeyNewString = "GetRoleEntityIDListInfosByRoleIDNew" + EntRole.ROLEID;//修改后的视图的显示 string keyStringPermission = "GetPermissionByRoleIDSecond" + EntRole.ROLEID; WCFCache.Current[keyString] = null; WCFCache.Current[KeyNewString] = null; WCFCache.Current[keyStringPermission] = null; return bll.UserRoleApplyEntityMenuBatchAddInfosList(EntRole, StrTmpList, StrAdduser); } }