/// <summary> /// 获取有效的广告列表 /// </summary> /// <param name="isOverTime"></param> /// <param name="adType"></param> /// <returns></returns> public static List <SeatManage.ClassModel.AMS_Advertisement> GetAdList(bool?isOverTime, SeatManage.EnumType.AdType adType) { IWCFService.ISeatManageService seatService = new WcfServiceForSeatManage.SeatManageDateService(); try { return(seatService.GetAdList(isOverTime, adType)); } catch (FaultException ex) { SeatManageComm.WriteLog.Write("获取广告列表失败:" + ex.Message); return(new List <AMS_Advertisement>()); } }