Exemple #1
0
 /// <summary>
 /// Gets the current receipt by terminal identifier.
 /// </summary>
 /// <param name="pTerminalId">The par terminal identifier.</param>
 /// <returns></returns>
 public ModelMID.IdReceipt GetCurrentReceiptByTerminalId(Guid pTerminalId)
 {
     if (!Receipts.ContainsKey(pTerminalId) || Receipts[pTerminalId] == null)
     {
         var idReceipt = Bl.GetNewIdReceipt(Global.GetIdWorkplaceByTerminalId(pTerminalId));
         Receipts[pTerminalId] = new ModelMID.Receipt(idReceipt);
         //Bl.AddReceipt(Receipts[pTerminalId]);
     }
     return(Receipts[pTerminalId]);
 }