public static bool IsExistPaymentFee(PaymentFeeKeys paymentFeeKeys) { if (DicPaymentFee.ContainsKey(paymentFeeKeys)) { return(true); } return(false); }
public static PaymentFee GetPaymentFee(PaymentFeeKeys paymentFeeKeys) { if (DicPaymentFee.ContainsKey(paymentFeeKeys)) { return(DicPaymentFee[paymentFeeKeys].Clone() as PaymentFee); } LogTo.Error("Not get PaymentFee by paymentFeeKeys = " + paymentFeeKeys); return(null); }
internal static void SetMemory(PaymentFee objectValue) { var key = new PaymentFeeKeys { IdFee = objectValue.IdFee, IdPayment = objectValue.IdPayment }; DicPaymentFee[key] = objectValue; }
internal static void RemoveMemory(PaymentFee objectValue) { var key = new PaymentFeeKeys { IdFee = objectValue.IdFee, IdPayment = objectValue.IdPayment }; if (DicPaymentFee.ContainsKey(key)) { DicPaymentFee.Remove(key); } }