Exemple #1
0
        private void buttonDock_Click(object sender, RoutedEventArgs e)
        {
            RegisterContextMenu.IsOpen = false;
            int            registerSubId  = 0;
            RegisterDrawer registerDrawer =
                RegisterDrawer.GetFloating(SessionManager.ActiveEmployee.Id);

            if (registerDrawer == null)
            {
                PosDialogWindow.ShowDialog(
                    Types.Strings.RegisterMenuNotFloating, Types.Strings.Error);
                return;
            }
            if (registerSubId == 0)
            {
                DeviceManager.OpenCashDrawer1();
            }
            else if (registerSubId == 1)
            {
                DeviceManager.OpenCashDrawer2();
            }
            RegisterManager.DockRegisterDrawer(registerDrawer, registerSubId);
            OrderEntryCommands.SetupNoOrderCommands();
            PosDialogWindow.ShowDialog(
                Types.Strings.RegisterMenuDrawerIsNowDocked, Types.Strings.Notification);
            OrderEntryCommands.UpdateTicketDetailCommands();
        }
Exemple #2
0
 private void buttonFloat_Click(object sender, RoutedEventArgs e)
 {
     RegisterContextMenu.IsOpen = false;
     if (PosDialogWindow.ShowDialog(
             Types.Strings.RegisterMenuConfirmFloat,
             Types.Strings.Confirmation, DialogButtons.YesNo) == DialogButton.Yes)
     {
         RegisterManager.OpenCashDrawer();
         RegisterManager.FloatActiveRegisterDrawer();
         OrderEntryCommands.SetupNoOrderCommands();
         PosDialogWindow.ShowDialog(
             Types.Strings.RegisterMenuNotifyFloat, Types.Strings.Notification);
     }
     OrderEntryCommands.UpdateTicketDetailCommands();
 }
Exemple #3
0
        private void buttonCloseOut_Click(object sender, RoutedEventArgs e)
        {
            RegisterContextMenu.IsOpen = false;
            if (PosDialogWindow.ShowDialog(
                    Types.Strings.RegisterMenuConfirmDrawerClose,
                    Types.Strings.Confirmation, DialogButtons.YesNo) != DialogButton.Yes)
            {
                return;
            }
            RegisterManager.OpenCashDrawer();
            RegisterDrawer activeRegisterDrawer = RegisterManager.ActiveRegisterDrawer;

            RegisterManager.CloseActiveRegisterDrawer();
            OrderEntryCommands.UpdateTicketDetailCommands();
            PrintRegisterReport(activeRegisterDrawer);
        }
Exemple #4
0
 private void buttonStartRegister_Click(object sender, RoutedEventArgs e)
 {
     RegisterContextMenu.IsOpen = false;
     if (DayOfOperation.Today != null)
     {
         RegisterManager.StartRegister();
         OrderEntryCommands.SetupNoOrderCommands();
         OrderEntryCommands.UpdateTicketDetailCommands();
     }
     else
     {
         PosDialogWindow.ShowDialog(
             Types.Strings.RegisterMenuRunStartOfDay,
             Types.Strings.RegisterMenuUnableToProceed);
     }
 }
Exemple #5
0
 private void buttonEndOfDay_Click(object sender, RoutedEventArgs e)
 {
     FunctionsContextMenu.IsOpen = false;
     PosHelper.EndOfDay();
     OrderEntryCommands.UpdateTicketDetailCommands();
 }