예제 #1
0
        private void SetDeactiveCustomerOrderQueryCallback(SQLQueryResult queryResult)
        {
            if (queryResult.MesResult == MessageQueryResult.Done)
            {
                App.Current.ShowApplicationMessageBox("Xóa hóa đơn thành công!",
                                                      HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                                      HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Success,
                                                      OwnerWindow.MainScreen,
                                                      "Thông báo!!");

                if (PageHost.PreviousePageSource != PageSource.NONE)
                {
                    PageHost.UpdateCurrentPageSource(PageHost.PreviousePageSource);
                }
                else
                {
                    PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_TRANSACTION_HISTORY_PAGE);
                }
            }
            else
            {
                App.Current.ShowApplicationMessageBox("Lỗi xóa hóa đơn!",
                                                      HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                                      HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Error,
                                                      OwnerWindow.MainScreen,
                                                      "Thông báo!!");
            }

            CBPViewModel.ButtonCommandOV.IsSaveButtonRunning = false;
        }
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();
            DataGrid ctrl = DataTransfer[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentModifiedSupplier = SMPViewModel.SupplierItemSource[ctrl.SelectedIndex];
            PageHost.UpdateCurrentPageSource(PageSource.SUPPLIER_IMPORT_HISTORY_PAGE);
        }
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();
            DataGrid ctrl = DataTransfer[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentModifiedMedicine = MMPViewModel.MedicineItemSource[ctrl.SelectedIndex];
            PageHost.UpdateCurrentPageSource(PageSource.MODIFY_MEDICINE_PAGE);
        }
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();
            DataGrid ctrl = DataTransfer[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentSelectedCustomerOrder = CDPViewModel.OrderItemSource.Where(o => o.OrderID == CDPViewModel.DebtItemSource[ctrl.SelectedIndex].OrderID).FirstOrDefault();
            PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_BILL_PAGE);
        }
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();

            DataGrid ctrl = DataTransfer[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentSelectedOtherPayment = OPMPViewModel.OtherPaymentItemSource[ctrl.SelectedIndex];
            PageHost.UpdateCurrentPageSource(PageSource.MODIFY_OTHER_PAYMENT_PAGE);
        }
예제 #6
0
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();

            DataGrid ctrl = DataTransfer[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentModifiedUser = UMPViewModel.UserItemSource[ctrl.SelectedIndex];
            PageHost.UpdateCurrentPageSource(PageSource.USER_MODIFICATION_PAGE);
        }
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();

            DataGrid ctrl = DataTransfer[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentModifiedCustomer = ctrl.SelectedItem as tblCustomer;
            PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_MODIFICATION_PAGE);
        }
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();
            object[] param = DataTransfer[0] as object[];
            DataGrid ctrl  = param[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentModifiedMedicine = MMPViewModel.MedicineItemSource[ctrl.SelectedIndex];
            PageHost.UpdateCurrentPageSource(PageSource.SHOW_MEDICINE_INFO_PAGE);
            return;
        }
        protected override void ExecuteCommand()
        {
            base.ExecuteCommand();
            DataGrid ctrl = DataTransfer[0] as DataGrid;

            MSW_DataFlowHost.Current.CurrentModifiedWarehouseImport = WHMPViewModel.LstWarehouseImport[ctrl.SelectedIndex];
            PageHost.UpdateCurrentPageSource(PageSource.MODIFY_WAREHOUSE_IMPORT_PAGE);

            return;
        }
        protected override void ExecuteCommand()
        {
            if (CBPViewModel.IsOrderModified)
            {
                var x = App.Current.ShowApplicationMessageBox("Vui lòng lưu các thay đổi hoặc hoàn tác trước khi rời khỏi trang này!",
                                                              HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                                              HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Error,
                                                              OwnerWindow.MainScreen,
                                                              "Thông báo!");
            }
            else
            {
                PageHost.UpdateCurrentPageSource(PageHost.PreviousePageSource);
            }

            return;
        }
        protected override void ExecuteCommand()
        {
            if (CTHPViewModel.CurrentSelectedOrder == null)
            {
                App.Current.ShowApplicationMessageBox("Vui lòng chọn 1 giao dịch để xem hóa đơn",
                                                      HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                                      HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Info,
                                                      OwnerWindow.MainScreen,
                                                      "Thông báo!");
                return;
            }

            MSW_DataFlowHost.Current.CurrentSelectedCustomerOrder = CTHPViewModel.CurrentSelectedOrder;
            PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_BILL_PAGE);

            return;
        }
예제 #12
0
 private void SQLQueryCallback(SQLQueryResult queryResult)
 {
     if (queryResult.MesResult == MessageQueryResult.Done)
     {
         App.Current.ShowApplicationMessageBox("Cập nhật thông tin thành công!",
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Success,
                                               OwnerWindow.MainScreen,
                                               "Thông báo!");
         PageHost.UpdateCurrentPageSource(PageSource.HOME_PAGE);
     }
     else
     {
         App.Current.ShowApplicationMessageBox("Lỗi cập nhật thông tin!");
     }
     PIPViewModel.ButtonCommandOV.IsSaveButtonRunning = false;
 }
예제 #13
0
 private void SQLQueryCallback(SQLQueryResult queryResult)
 {
     if (queryResult.MesResult == MessageQueryResult.Done)
     {
         App.Current.ShowApplicationMessageBox("Thêm thanh toán thành công",
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Success,
                                               OwnerWindow.MainScreen,
                                               "Thông báo!");
     }
     else
     {
         App.Current.ShowApplicationMessageBox("Lỗi thêm thanh toán. Vui lòng liên hệ CSKH để biết thêm thông tin!",
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Error,
                                               OwnerWindow.MainScreen,
                                               "Thông báo!");
     }
     AOPPViewModel.ButtonCommandOV.IsSaveButtonRunning = false;
     PageHost.UpdateCurrentPageSource(PageSource.OTHER_PAYMENT_MANAGEMENT_PAGE);
 }
 private void SQLQueryCallback(SQLQueryResult queryResult)
 {
     if (queryResult.MesResult == MessageQueryResult.Done)
     {
         App.Current.ShowApplicationMessageBox("Chỉnh sửa thông tin nhập kho thành công",
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Success,
                                               OwnerWindow.MainScreen,
                                               "Thông báo!");
     }
     else
     {
         App.Current.ShowApplicationMessageBox("Lỗi thêm thông tin nhập kho. Vui lòng liên hệ CSKH để biết thêm thông tin!",
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageBoxType.Default,
                                               HPSolutionCCDevPackage.netFramework.AnubisMessageImage.Error,
                                               OwnerWindow.MainScreen,
                                               "Thông báo!");
     }
     MWIPViewModel.ButtonCommandOV.IsAddWarehouseImportButtonRunning = false;
     PageHost.UpdateCurrentPageSource(PageSource.WAREHOUSE_MANAGEMENT_PAGE);
 }
예제 #15
0
 protected override void ExecuteCommand()
 {
     DbManager.Instance.RollBack();
     PageHost.UpdateCurrentPageSource(PageSource.HOME_PAGE);
 }
예제 #16
0
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.ADD_WAREHOUSE_IMPORT_PAGE);
 }
예제 #17
0
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_TRANSACTION_HISTORY_PAGE);
 }
예제 #18
0
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.OTHER_PAYMENT_MANAGEMENT_PAGE);
 }
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.WAREHOUSE_MANAGEMENT_PAGE);
 }
예제 #20
0
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.SUPPLIER_IMPORT_HISTORY_PAGE);
 }
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.HOME_PAGE);
 }
예제 #22
0
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.PERSONAL_INFO_PAGE);
 }
예제 #23
0
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.SUPPLIER_DEBT_PAGE);
 }
예제 #24
0
 protected override void ExecuteCommand()
 {
     PageHost.UpdateCurrentPageSource(PageSource.USER_INSTANTIATION_PAGE);
 }
예제 #25
0
 protected override void ExecuteCommand()
 {
     MSW_DataFlowHost.Current.CurrentSelectedCustomerOrder = IMPViewModel.CurrentSelectedOrderOV.Order;
     PageHost.UpdateCurrentPageSource(PageSource.CUSTOMER_BILL_PAGE);
 }