Esempio n. 1
0
 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 FnSetUpData()
 {
     mSelectedRunnerId = Intent.GetIntExtra("selectedRunnerId", 0);
     mRunnersMultipayRecordsDataAccess = new RunnersMultipayRecordsDataAccess();
     mRunnersDataAccess = new RunnersDataAccess();
     mSelectedRunner    = mRunnersDataAccess.SelectRecord(mSelectedRunnerId)[0];
 }
 private void FnGetData()
 {
     mRunnersDataAccess = new RunnersDataAccess();
     mRunnersMultipayRecordsDataAccess = new RunnersMultipayRecordsDataAccess();
     mTransactionsDataAccess           = new TransactionsDataAccess();
     mIsInitialCall           = Intent.GetBooleanExtra("isInitialCall", true);
     mTotalSplitPaymentAmount = Intent.GetDoubleExtra("totalSplitPaymentsAmount", 0);
     mTotalSaleAmount         = Intent.GetDoubleExtra("totalSaleAmount", 0);
     mIsPaymentModeCash       = Intent.GetBooleanExtra("isPaymentModeCash", true);
     mRunnerId       = Intent.GetIntExtra("SelectedRunnerIdOnMultipay", 0);
     mTransactionIds = Intent.GetStringExtra("TransactionIds");
     mStartDate      = Intent.GetStringExtra("StartDate");
     mEndDate        = Intent.GetStringExtra("EndDate");
 }
Esempio n. 4
0
 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();
 }