Пример #1
0
        public TransferDataHolder(Transfer transfer)
        {
            this.k = transfer.K;
            this.amount = Math.Round(transfer.Amount,2);
            this.status = transfer.Status;
            this.dateTimeComplete = transfer.DateTimeComplete;
            this.method = transfer.Method;
			if (transfer.Method.Equals(Transfer.Methods.Card))
				this.referenceNumber = transfer.CardNumberEnd;
			else if (transfer.Method.Equals(Transfer.Methods.BankTransfer))
				this.referenceNumber = transfer.BankTransferReference;
			else if (transfer.Method.Equals(Transfer.Methods.Cheque))
			    this.referenceNumber = transfer.ChequeReferenceNumber;
			else
				this.referenceNumber = "";
        }
Пример #2
0
 public InvoiceTransferDataHolder(InvoiceTransfer invoiceTransfer)
 {
     this.invoiceK = invoiceTransfer.InvoiceK;
     this.transferK = invoiceTransfer.TransferK;
     this.amount = invoiceTransfer.Amount;
     Transfer transfer = new Transfer(invoiceTransfer.TransferK);
     this.type = transfer.Type;
     this.method = transfer.Method;
     this.status = transfer.Status;
     this.usrK = transfer.UsrK;
 }