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(); }
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(); }
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); }
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); } }
private void buttonEndOfDay_Click(object sender, RoutedEventArgs e) { FunctionsContextMenu.IsOpen = false; PosHelper.EndOfDay(); OrderEntryCommands.UpdateTicketDetailCommands(); }