예제 #1
0
 /// <summary>
 /// 获取数据
 /// </summary>
 public void GetDate()
 {
     try
     {
         List <SeatManage.ClassModel.AMS_Advertisement> modelList = SeatManage.Bll.AdvertisementOperation.GetAdList(null, SeatManage.EnumType.AdType.PrintReceiptAd);
         ReceiptList.Clear();
         foreach (SeatManage.ClassModel.AMS_Advertisement model in modelList)
         {
             SeatManage.ClassModel.PrintReceiptInfo view = SeatManage.ClassModel.PrintReceiptInfo.ToModel(model.AdContent);
             view.AdContent = model.AdContent;
             view.ID        = model.ID;
             ReceiptList.Add(view);
         }
     }
     catch (Exception ex)
     {
         ErrorMessage = ex.Message;
         SeatManage.SeatManageComm.WriteLog.Write("获取学校通知失败" + ex.Message);
     }
 }
예제 #2
0
 /// <summary>
 /// Holt alle Rechnungen aus der Config
 /// </summary>
 public void GetReceipt()
 {
     ReceiptList.Clear();
     ReceiptList = _configManager.GetReceipts();
 }