/// <summary> /// 获取模块的当前用户操作权限 /// </summary> /// <param name="managerId"></param> /// <param name="action"></param> /// <returns></returns> public List <GetPermissionCode> GetPermission(Int64 managerId, string action) { // 换用存储过程 //var permis = GetCurrentPermission(managerId, action); //定义存储过程入参 var sqlParas = new SqlParameter[1]; sqlParas[0] = new SqlParameter("@ManagerId", DbType.Int64) { Direction = ParameterDirection.Input }; sqlParas[1] = new SqlParameter("@Url", DbType.String) { Direction = ParameterDirection.Input }; IList <ChannelRightOperate> permis = ProcedureHelper.ExcuteDataSet <ChannelRightOperate>("getChannelRightOperateByManagerId", sqlParas); List <GetPermissionCode> rights = (from perm in permis select new GetPermissionCode { KeyCode = perm.RightId, IsValid = perm.IsValid }).ToList(); return(rights); }