예제 #1
0
 private void ProcessProperty(PaymentCard obj, ICashDataReader reader)
 {
     switch (reader.FieldName)
     {
         case "Смена":
             obj.ShiftNo = reader.FieldValueAsInt32;
             break;
         case "Чек":
             obj.ReceiptNo = reader.FieldValueAsInt32;
             break;
         case "Карта":
             obj.CardId = reader.FieldValue;
             break;
         case "Сумма":
             obj.Amount = reader.FieldValueAsDecimal;
             break;
     }
 }
예제 #2
0
 /// <summary>
 /// Добавляет новую платежную карту
 /// </summary>
 /// <param name="card">Платежная карта</param>
 public void NewCard(PaymentCard card)
 {
     _cards.Add(card.CardId, card);
 }