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), }); }
/// <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); }