public void PutinAllPop() { //AllPop.AllPopList.Add(new Population { PopList=p.PopList}); PopList.Clear(); for (int i = 0; i < TempPop.Count; i++) { PopList.Add(TempPop[i]); } TempPop.Clear(); }
/// <summary> /// 获取数据 /// </summary> public void GetDate() { try { List <SeatManage.ClassModel.AMS_Advertisement> modelList = SeatManage.Bll.AdvertisementOperation.GetAdList(null, SeatManage.EnumType.AdType.PopAd); PopList.Clear(); foreach (SeatManage.ClassModel.AMS_Advertisement model in modelList) { SeatManage.ClassModel.PopAdvertInfo view = SeatManage.ClassModel.PopAdvertInfo.ToModel(model.AdContent); view.AdContent = model.AdContent; view.ID = model.ID; PopList.Add(view); } } catch (Exception ex) { ErrorMessage = ex.Message; SeatManage.SeatManageComm.WriteLog.Write("获取学校通知失败" + ex.Message); } }