/// <summary> /// 设置或者删除K_SysActionPermit记录 /// </summary> /// <param name="tranType">操作参数:DEL=删除,PUB=发布,TOP=置顶,NEW=置新,HOT=热,COMMEND=推荐</param> /// <param name="setValue">设置值</param> /// <param name="IDList">ID集合,多个用“,”分隔</param> /// <returns>返回大于0的数字操作正常,返回非数字表示操作错误,返回的是系统错误说明</returns> public string ActionPermitSet(string tranType, string setValue, string IDList) { string re; re = dal.ActionPermitSet(tranType, setValue, IDList); //更新缓存 KingTop.Common.AppCache.Remove("ModuleActionCache"); KingTop.BLL.SysManage.RightTool rtBll = new RightTool(); rtBll.GetModuleActionFromCache(); return(re); }
//从缓存中获取K_SysActionPermit表 //public DataTable GetActionPermitFromCache() //{ // if (AppCache.IsExist("ActionPermitCache")) // { // return (DataTable)AppCache.Get("ActionPermitCache"); // } // else // { // DataTable dt = GetList("Cache", Utils.getOneParams("")); // AppCache.Add("ActionPermitCache", dt, "K_SysActionPermit"); // return dt; // } //} #region 增、改K_SysActionPermit表 /// <summary> /// 增、改K_SysActionPermit表 /// </summary> /// <param name="tranType">操作类型,NEW=增,EDIT=改</param> /// <param name="AutModel"></param> /// <returns>返回大于0的数字操作正常,返回非数字表示操作错误,返回的是系统错误说明</returns> public string Save(string trantype, KingTop.Model.SysManage.ActionPermit ActionPermitModel) { string re; re = dal.Save(trantype, ActionPermitModel); //更新缓存 KingTop.Common.AppCache.Remove("ModuleActionCache"); KingTop.BLL.SysManage.RightTool rtBll = new RightTool(); rtBll.GetModuleActionFromCache(); return(re); }