Beispiel #1
0
        static void Main(string[] args)
        {
            //MonitorTest(args);
            //BankResponseTest();

            BankBalance bal = new BankBalance()
            {
                BankCode = "51",
                TransCode = "1001",
                Balance = "10001.01",
                BalanceDate = "20140121",
                CurrType = "USD",
                UsableBalance = "10001.02"
            };
            var val = bal.ToString();
        }
Beispiel #2
0
        private void BuildBankBalance()
        {
            listBankBalance = new List<BankBalance>();

            foreach (string str in listFinstaString)
            {
                finstaString = str;

                bankBalance = new BankBalance();

                SetBankCode4Response();

                SetAccountBalance4Response();

                listBankBalance.Add(bankBalance);
            }

            ListBankBalance = listBankBalance;
        }
Beispiel #3
0
        /// <summary>
        /// H1: Record Type
        /// H2: Company Name
        /// H3: Account Number
        /// H4: Currency Number
        /// H5: Account Type
        /// H6: Transaction Date
        /// H7: Opening Ledger Balance
        /// H8: Opening Availiable Balance
        /// H9: Interim Closing Ledger Balance
        /// H10: Interim Closing Availiable Balance
        /// H11: Statement Number
        /// </summary>
        protected override void BuildBankBalance()
        {
            listBankBalance = new List<BankBalance>();

            foreach (var header in listCsvHeader)
            {
                string[] headerArray = header.Split(new string[] { "," }, StringSplitOptions.None);
                if (headerArray.Length != 11)
                {
                    throw new InvalidBankReportException(ReportName, BankReportType.CSV);
                }
                bankBalance = new BankBalance();

                SetBankCode4Response(bankBalance);

                SetBankBalanceInfomation(headerArray);

                listBankBalance.Add(bankBalance);
            }

            ListBankBalance = listBankBalance;
        }
Beispiel #4
0
        private void ParseAccountBalance()
        {
            bankBalance = new BankBalance();

            bankBalance.AcctNo = AccountIdentification;

            AccountBalanceHeadInfo();

            AccountClosingBalance();

            AccountAvaliableBalance();

            listBankBalance.Add(bankBalance);
        }