コード例 #1
0
        public TransactionsViewModel(IRegionManager regionManager,
                                     SaleTransactionModel saleTransaction,
                                     PurchaseTransactionModel purchaseTransaction)
        {
            _saleTransaction     = saleTransaction;
            _purchaseTransaction = purchaseTransaction;

            FilterTxnHistory("0");

            DateFilterCmd = new DelegateCommand <string>(FilterTxnHistory);
        }
コード例 #2
0
        public AddPurchaseViewModel(IRegionManager regionManager,
                                    PurchaseTransactionModel purchaseTransaction,
                                    SupplierModel supplierModel,
                                    ProductModel products)
        {
            _purchaseTransaction = purchaseTransaction;
            _regionManager       = regionManager;
            _supplierModel       = supplierModel;
            _products            = products;

            SupplierList    = _supplierModel.GetSuppliers();
            UOMList         = _products.GetUoMCategories();
            TaxRateList     = _products.GetProductCategories();
            PaymentModeList = new List <string>()
            {
                "CASH", "CARD"
            };

            GoToViewCmd          = new DelegateCommand <string>(GoToView);
            PurchaseCmd          = new DelegateCommand(Purchase);
            SearchProductByIdCmd = new DelegateCommand <string>(SearchProductById);
            NotificationRequest  = new InteractionRequest <INotification>();
        }