private void FnGetData() { mSelectedTransactionId = Intent.GetIntExtra("selectedTransactionId", 0); mIsMultipay = Intent.GetBooleanExtra("isMultipay", false); mIsMultipayPreview = Intent.GetBooleanExtra("isMultipayPreview", false); mMultipayPreviewIdList = Intent.GetStringExtra("multipayPreviewIdList"); mSettingsDataAccess = new SettingsDataAccess(); mTransactionsDataAccess = new TransactionsDataAccess(); mTransactionItemsDataAccess = new TransactionItemsDataAccess(); mRunnersDataAccess = new RunnersDataAccess(); mCustomersDataAccess = new CustomersDataAccess(); mRunnersMultipayRecordsDataAccess = new RunnersMultipayRecordsDataAccess(); mReceiptSettings = mSettingsDataAccess.SelectTable()[0]; mSelectedTransaction = mIsMultipay ? null : mTransactionsDataAccess.SelectRecord(mSelectedTransactionId)[0]; //mSelectedMultipayRecord = mIsMultipay ? mRunnersMultipayRecordsDataAccess.SelectRecord(mSelectedTransactionId)[0] : null; mSelectedMultipayRecord = new RunnersMultipayRecordsModel() { Id = 1, CashierName = "Jepoy", TransactionDateTime = "2020-12-14 6:45", RunnerId = 1, SubTotalAmount = 45884, DiscountAmount = 0, PaymentCashAmount = 45884, PaymentCheckAmount = 0, TransactionIds = "#47, #46", StartDate = "2020-12-11 6:45", EndDate = "2020-12-14 12:45" }; }
private void FnGetData() { mTotalSaleAmount = Intent.GetDoubleExtra("TotalSaleAmount", 0); mCurrentSelectedRunner = GlobalVariables.mCurrentSelectedCustomerOnCheckout; //runner mCurrentSelectedRunnerId = GlobalVariables.mCurrentSelectedCustomerIdOrRunnerIdOnCheckout; mSelectedTransactionDatetime = DateTime.Now; mCurrentAccountBalance = 0; //not yet implemented SetSelectedDateNow(); mTransactionsDataAccess = new TransactionsDataAccess(); mTransactionItemsDataAccess = new TransactionItemsDataAccess(); }
private void FnSetUpData() { mParentProductsDataAccess = new ParentProductsDataAccess(); mParentProductsDataAccess.CreateTable(); mProductsDataAccess = new ProductsDataAccess(); mProductsDataAccess.CreateTable(); mCategoriesDataAccess = new CategoriesDataAccess(); mCategoriesDataAccess.CreateTable(); mSizesDataAccess = new SizesDataAccess(); mSizesDataAccess.CreateTable(); mTransactionsDataAccess = new TransactionsDataAccess(); mTransactionsDataAccess.CreateTable(); mTransactionItemsDataAccess = new TransactionItemsDataAccess(); mTransactionItemsDataAccess.CreateTable(); mSettingsDataAccess = new SettingsDataAccess(); mSettingsDataAccess.CreateTable(); mRunnersMultipayRecordsDataAccess = new RunnersMultipayRecordsDataAccess(); mRunnersMultipayRecordsDataAccess.CreateTable(); }
private void FnGetData() { mTransactionItemsDataAccess = new TransactionItemsDataAccess(); mSelectedTransactionId = ((TransactionsFragmentTransactionInfoActivity)this.Activity).DataToFragments(); mTransactionItemsList = mTransactionItemsDataAccess.SelectRecord(mSelectedTransactionId); }