Пример #1
0
        public MSW_CMP_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
        {
            this.ParentsModel = parentsModel;

            EditButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_EDIT_BUTTON
                             , paramaters));
            });

            DeleteButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_DELETE_BUTTON
                             , paramaters));
            });

            HistoryButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_HISTORY_BUTTON
                             , paramaters));
            });

            AddNewCustomerButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_ADD_BUTTON
                             , paramaters));
            });
        }
 public MSW_WHMP_MWIP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     DeleteMedicineFromListButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_WHMP_MWIP_DELETE_MEDICINE_TO_IMPORT_LIST_BUTTON
                      , paramaters));
     });
     AddMedicineToListButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsAddImportDetailButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_WHMP_MWIP_ADD_MEDICINE_TO_IMPORT_LIST_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
     SaveButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsAddWarehouseImportButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_WHMP_MWIP_SAVE_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
     CancelButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_WHMP_MWIP_CANCEL_BUTTON
                      , paramaters));
     });
     BrowseInvoiceImageButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_WHMP_MWIP_BROWSE_INVOICE_IMAGE_BUTTON
                      , paramaters));
     });
 }
Пример #3
0
 public MSW_MMP_DBMP_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
 {
     CancelButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_DBMP_CANCEL_BUTTON
                      , paramaters));
     });
     CreateNewPromoButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_DBMP_CREATE_NEW_PROMO_BUTTON
                      , paramaters));
     });
     DeleteButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_DBMP_DELETE_BUTTON
                      , paramaters));
     });
     SaveButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsSaveButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_DBMP_SAVE_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
 }
Пример #4
0
 public MSW_MMC_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
 {
     SettingPageCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SETTING
                      , paramaters
                      , false));
     });
     PersonalAccountCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_PERSONAL_INFO
                      , paramaters
                      , false));
     });
     HomePageCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_HOME_PAGE
                      , paramaters
                      , false));
     });
     AppInfoCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_APP_INFO
                      , paramaters
                      , false));
     });
 }
Пример #5
0
 public MSW_SP_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
 {
     AddOrderDetailCommand = new CommandExecuterModel((paramaters) =>
     {
         IsAddOrderDeatailButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SP_ADD_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
     RemoveOrderDetailCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SP_REMOVE_BUTTON
                      , paramaters));
     });
     InstantiateOrderCommand = new CommandExecuterModel((paramaters) =>
     {
         IsInstantiateNewOrderButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SP_INSTANTIATE_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
     RefreshSellingPageCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SP_REFRESH_BUTTON
                      , paramaters));
     });
 }
Пример #6
0
 public MSW_MMP_SMIP_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
 {
     CancelButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_SMIP_CANCEL_BUTTON
                      , paramaters));
     });
 }
Пример #7
0
        public MSW_MMP_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
        {
            ExcelImportButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_EXCEL_IMPORT_BUTTON
                             , paramaters));
            });
            PrintMedicineListButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_PRINT_MEDICINE_BUTTON
                             , paramaters));
            });
            AddNewMedicineButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_ADD_BUTTON
                             , paramaters));
            });

            if (App.Current.CurrentUser.IsAdmin)
            {
                EditMedicineButtonCommand = new CommandExecuterModel((paramaters) =>
                {
                    return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_EDIT_BUTTON,
                                 paramaters));
                });
                DeleteMedicineButtonCommand = new CommandExecuterModel((paramaters) =>
                {
                    return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_DELETE_BUTTON,
                                 paramaters));
                });
                PromoMedicineButtonCommand = new CommandExecuterModel((paramaters) =>
                {
                    return(OnKey(KeyFeatureTag.KEY_TAG_MSW_MMP_PROMO_BUTTON,
                                 paramaters));
                });
            }
            else
            {
                EditMedicineButtonCommand = new CommandExecuterModel((paramaters) =>
                {
                    return(OnKey(KeyFeatureTag.KEY_TAG_MSW_NONADMIN_BUTTON,
                                 paramaters,
                                 false));
                });
                DeleteMedicineButtonCommand = new CommandExecuterModel((paramaters) =>
                {
                    return(OnKey(KeyFeatureTag.KEY_TAG_MSW_NONADMIN_BUTTON,
                                 paramaters,
                                 false));
                });
                PromoMedicineButtonCommand = new CommandExecuterModel((paramaters) =>
                {
                    return(OnKey(KeyFeatureTag.KEY_TAG_MSW_NONADMIN_BUTTON,
                                 paramaters,
                                 false));
                });
            }
        }
Пример #8
0
 public MSW_IMP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     EditOrderButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_IMP_EDIT_BUTTON
                      , paramaters));
     });
     DeleteOrderButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_IMP_DELETE_BUTTON
                      , paramaters));
     });
 }
 public MSW_WHMP_SWIIP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     CancelButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_WHMP_SWIIP_CANCEL_BUTTON
                      , paramaters));
     });
     BrowseInvoiceImageButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_WHMP_SWIIP_SHOW_INVOICE_BUTTON
                      , paramaters));
     });
 }
Пример #10
0
 public MSW_SMP_MSP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     SaveButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsSaveButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_MSP_SAVE_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
     CancelButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_MSP_CANCEL_BUTTON
                      , paramaters));
     });
 }
        public MSW_CMP_CTP_CBP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
        {
            EditEnablerButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CBP_EDIT_ENABLER_BUTTON
                             , paramaters));
            });

            AddNewOrderDetailButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                IsAddOrderDeatailButtonRunning = true;
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CBP_ADD_ORDER_DETAIL_BUTTON
                             , paramaters
                             , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
            });

            SaveButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                IsSaveButtonRunning = true;
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CBP_SAVE_BUTTON
                             , paramaters
                             , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
            });

            DeleteOrderDetailButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CBP_DELETE_ORDER_DETAIL_BUTTON
                             , paramaters));
            });

            RefreshOrderDetaisButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CBP_REFRESH_BUTTON
                             , paramaters));
            });

            CancelButtonCommand = new CommandExecuterModel(paramaters =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CBP_CANCEL_BUTTON
                             , paramaters));
            });

            PrintInvoiceButtonCommand = new CommandExecuterModel(paramaters =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CBP_PRINT_INVOICE_BUTTON
                             , paramaters));
            });
        }
Пример #12
0
 public MSW_RP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     InitSellingReportButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsInitSellingReportButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_RP_INIT_SELLING_REPORT_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
     InitComprehensiveReportButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsInitComprehensiveReportButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_RP_INIT_COMPREHENSIVE_REPORT_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
 }
Пример #13
0
 public MSW_CMP_CTP_CDP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     PrintCustomerDebtButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CDP_PRINT_DEBTS_BUTTON
                      , paramaters));
     });
     BillDisplayButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CDP_BILL_DISPLAY_BUTTON
                      , paramaters));
     });
     ReturnButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_CDP_RETURN_BUTTON
                      , paramaters));
     });
 }
Пример #14
0
 public MSW_SMP_SDP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     ShowInvoiceButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_SDP_SHOW_INVOICE_BUTTON
                      , paramaters));
     });
     PrintDebtButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_SDP_PRINT_DEBT_BUTTON
                      , paramaters));
     });
     CancelButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_SDP_CANCEL_BUTTON
                      , paramaters));
     });
 }
 public MSW_CMP_CTHP_ButtonCommandOV(BaseViewModel parentsVM) : base(parentsVM)
 {
     DebtsDisplayButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_DEBTS_BUTTON
                      , paramaters));
     });
     BillDisplayButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_BILL_BUTTON
                      , paramaters));
     });
     ReturnButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CTP_RETURN_BUTTON
                      , paramaters));
     });
 }
 public MSW_CMP_CMoP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     SaveButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsSaveButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CMoP_SAVE_BUTTON
                      , paramaters));
     });
     CameraButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CMoP_CAMERA_BUTTON
                      , paramaters));
     });
     CancleButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_CMP_CMoP_CANCLE_BUTTON
                      , paramaters));
     });
 }
 public MSW_OPMP_AOPP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     CancelButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_OPMP_AOPP_CANCEL_BUTTON
                      , paramaters));
     });
     SaveButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsSaveButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_OPMP_AOPP_SAVE_BUTTON
                      , paramaters
                      , new BuilderLocker(BuilderStatus.TaskHandling, true)) as ICommandExecuter);
     });
     BrowseInvoiceButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_OPMP_AOPP_BROWSE_INVOICE_IMAGE_BUTTON
                      , paramaters));
     });
 }
Пример #18
0
        public PSW_BRP_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
        {
            SendReportButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_PSW_BRP_SEND_REPORT_BUTTON
                             , paramaters));
            });

            FinderLogPathButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_PSW_BRP_FINDER_LOG_PATH_BUTTON
                             , paramaters));
            });

            FinderVideoPathButtonCommand = new CommandExecuterModel((paramaters) =>
            {
                return(OnKey(KeyFeatureTag.KEY_TAG_PSW_BRP_FINDER_VIDEO_PATH_BUTTON
                             , paramaters));
            });
        }
Пример #19
0
 public MSW_AIP_ButtonCommandOV(BaseViewModel parentsModel) : base(parentsModel)
 {
     AppUpdateButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsAppUpdateButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_AIP_APP_UPDATE_BUTTON
                      , paramaters));
     });
     ContactUsButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         IsContatUsButtonRunning = true;
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_AIP_CONTACT_US_BUTTON
                      , paramaters));
     });
     BugReportButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_AIP_BUG_REPORT_BUTTON
                      , paramaters));
     });
 }
Пример #20
0
 public MSW_SMP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     AddNewSupplierButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_ADD_BUTTON
                      , paramaters));
     });
     EditSupplierButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_EDIT_BUTTON
                      , paramaters));
     });
     DeleteSupplierButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_DELETE_BUTTON
                      , paramaters));
     });
     ShowImportHistoryButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_SMP_SHOW_IMPORT_HISTORY_BUTTON
                      , paramaters));
     });
 }
Пример #21
0
 public MSW_OPMP_ButtonCommandOV(BaseViewModel parentVM) : base(parentVM)
 {
     AddNewOtherPaymentButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_OPMP_ADD_BUTTON
                      , paramaters));
     });
     EditOtherPaymentButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_OPMP_EDIT_BUTTON
                      , paramaters));
     });
     DeleteOtherPaymentButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_OPMP_DELETE_BUTTON
                      , paramaters));
     });
     ShowInvoiceButtonCommand = new CommandExecuterModel((paramaters) =>
     {
         return(OnKey(KeyFeatureTag.KEY_TAG_MSW_OPMP_SHOW_INVOICE_BUTTON
                      , paramaters));
     });
 }
 public LoginScreenWindowViewModel()
 {
     SystemLoginButton = new CommandExecuterModel(SystemLoginButtonClickEvent);
     BugReportButton   = new CommandExecuterModel(BugReportButtonClickEvent);
     PharmacyExtension.GrantAccess();
 }