/// <summary> /// 是否有操作权限 /// </summary> /// <param name="userno"></param> /// <param name="controller"></param> /// <param name="action"></param> /// <param name="btnKey"></param> /// <returns></returns> public bool IsOprPower(List <ActionPower> list, string userno, string controller, string action, string btnKey) { if (IsSupperUser(userno)) { return(true); } list = list.Where(ap => ap.Controller.ToLower() == controller.ToLower() && ap.Action.ToLower() == action.ToLower() && ap.BtnKey == btnKey).ToList(); if (list == null || list.Count == 0) { return(false); } return(dbManager.Execute(conn => DalPower.IsAccessPower(conn, userno, list[0].PKID))); }