Beispiel #1
0
 private BankDetails ReadBankDetails( )
 {
     return(new BankDetails()
     {
         ID = -1,
         TranscationType = PaymentMode.GetPayModeId(CBTranscationType.Text),
         TranscationRef = TXTTranscationRef.Text,
         BankRef = TXTBankRef.Text,
         RefID = "Expenses",
         BankID = eVM.GetBankDetailsID(CBBankAccount.Text),
     });
 }
Beispiel #2
0
        /// <summary>
        /// Read Ui Fields from Forms and return in Expenses Object
        /// </summary>
        /// <returns></returns>
        protected Expenses ReadFields( )
        {
            Expenses exp = new Expenses()
            {
                Amount             = double.Parse(TXTAmount.Text),
                ApprovedBy         = CBApprovedBy.Text,
                ExpensesReason     = TXTReason.Text,
                ID                 = -1,
                PaymentModeID      = PaymentMode.GetPayModeId(CBPaymentMode.Text),
                BankDetailsID      = vBankDetailsID,
                ExpensesCategoryID = eVM.GetExpenseCategoryId(CBCategory.Text)
            };

            return(exp);
        }