public decimal? GetAmount(DE3_AccountType accountType, DE54_AmountTypeCode amountType) { DE54_AdditionalAmount entity = Get(accountType, amountType); if (entity != null) { return entity.Amount; } return 0; }
public void Put(DE54_AmountTypeCode amountType, DE3_AccountType accountType, Iso4217_CurrencyCode currencyCode, decimal? amount) { DE54_AdditionalAmount entry = new DE54_AdditionalAmount(); entry.AccountType = accountType; entry.AmountType = amountType; entry.CurrencyCode = currencyCode; entry.Amount = amount; Put(entry); }
public DE54_AdditionalAmount Get(DE3_AccountType accountType, DE54_AmountTypeCode amountType) { if (amountMap.ContainsKey(accountType)) { Dictionary<DE54_AmountTypeCode, DE54_AdditionalAmount> amounts = amountMap[accountType]; if (amounts.ContainsKey(amountType)) { return amounts[amountType]; } return null; } return null; }
public DE3_ProcessingCode FromByteArray(byte[] buffer) { StringParser sp = new StringParser(buffer); //TransactionType = sp.ReadStringConstant<DE3_TransactionType>(2); //FromAccount = sp.ReadStringConstant<DE3_AccountType>(2); //ToAccount = sp.ReadStringConstant<DE3_AccountType>(2); TransactionType = EnumConverter.FromMapping <DE3_TransactionType>(Target.NWS, sp.ReadString(2)); FromAccount = EnumConverter.FromMapping <DE3_AccountType>(Target.NWS, sp.ReadString(2)); ToAccount = EnumConverter.FromMapping <DE3_AccountType>(Target.NWS, sp.ReadString(2)); return(this); }