コード例 #1
0
ファイル: Fnb.cs プロジェクト: Amilenge/BankStatement
        public BankSetup _getBankSetup()
        {
            if (_setup == null)
            {
                this._setup = base.loadBankSetup(this._name);
            }

            return(this._setup);
        }
コード例 #2
0
        public static string get(BankSetup _setup, string description)
        {
            description = description.ToUpper();

            if (_setup.Deposit.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.Deposit.ToString());
            }
            else if (_setup.PaymentMade.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PaymentMade.ToString());
            }
            else if (_setup.PaymentReceived.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PaymentReceived.ToString());
            }
            else if (_setup.PointOfSale.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PointOfSale.ToString());
            }
            else if (_setup.Withdrawal.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.Withdrawal.ToString());
            }
            else if (_setup.Purchase.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.OverseePurchase.ToString());
            }
            else if (_setup.Charges.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.TransactionCharges.ToString());
            }
            else if (_setup.PrepaidAirtime.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PrepaidAirtime.ToString());
            }
            else if (_setup.PrepaidElectricity.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PrepaidElectricity.ToString());
            }
            else if (_setup.Fee.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.Fee.ToString());
            }
            // Extend transaction type here
            else
            {
                return(Enumerators.TransactionType.Unknown.ToString());
            }
        }
コード例 #3
0
ファイル: Fnb.cs プロジェクト: Amilenge/BankStatement
 public Fnb()
 {
     this._setup = base.loadBankSetup(_name);
 }
コード例 #4
0
ファイル: Absa.cs プロジェクト: Amilenge/BankStatement
 public Absa()
 {
     this._setup = base.loadBankSetup(_name);
 }