public CytologyWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer) { this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler; this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; this.m_Writer = writer; this.m_CytologyUI = new CytologyUI(this.m_Writer); this.m_CytologyUI.AccessionChanged += new CytologyUI.AccessionChangedEventHandler(CytologyUI_AccessionChanged); this.m_CytologyResultsWorkspace = new CytologyResultsWorkspace(this.m_CytologyUI); this.m_CytologyUI.WHPOpened += CytologyUI_WHPOpened; this.m_CytologyUI.WHPClosed += CytologyUI_WHPClosed; this.m_DocumentViewer = new DocumentWorkspace(); InitializeComponent(); this.DataContext = this.m_CytologyUI; this.ContentControlDocumentViewer.Content = this.m_DocumentViewer; this.m_BarcodeScanPort.CytologySlideScanReceived += new YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.CytologySlideScanReceivedHandler(CytologySlideScanReceived); this.m_BarcodeScanPort.ThinPrepSlideScanReceived += new Business.BarcodeScanning.BarcodeScanPort.ThinPrepSlideScanReceivedHandler(BarcodeScanPort_ThinPrepSlideScanReceived); this.Loaded += new RoutedEventHandler(CytologyWorkspace_Loaded); this.Unloaded += new RoutedEventHandler(CytologyWorkspace_Unloaded); this.ResultsGrid.Children.Add(this.m_CytologyResultsWorkspace); this.m_LabEventsControlTab = new LabEventsControlTab(this.m_SystemIdentity); this.TabControlLeft.Items.Add(this.m_LabEventsControlTab); }
public LabWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer) { this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler; this.m_Writer = writer; this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; this.m_LabUI = new LabUI(this.m_SystemIdentity, writer); this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_LabUI.AccessionOrder); this.m_DocumentViewer = new DocumentWorkspace(); this.m_TreeViewWorkspace = new YellowstonePathology.UI.Common.TreeViewWorkspace(this.m_LabUI.AccessionOrder, this.m_SystemIdentity); InitializeComponent(); this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer; this.DataContext = this.m_LabUI; this.ComboBoxLogLocation.SelectionChanged -= this.ComboBoxLogLocation_SelectionChanged; this.ComboBoxLogLocation.SelectedIndex = 0; this.ComboBoxLogLocation.SelectionChanged += this.ComboBoxLogLocation_SelectionChanged; this.Loaded +=new RoutedEventHandler(LabWorkspace_Loaded); this.Unloaded += new RoutedEventHandler(LabWorkspace_Unloaded); this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; this.m_ScanLogger = new YellowstonePathology.Business.Logging.ScanLogger(this.m_SystemIdentity); this.m_ScanLogger.Start(); this.ListViewDocumentList.ItemsSource = this.m_LabUI.CaseDocumentCollection; }
public LabWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer) { this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler; this.m_Writer = writer; this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; this.CommandBindingApplicationClosing = new CommandBinding(MainWindow.ApplicationClosingCommand, CloseWorkspace); this.CommandBindingShowCaseDocument = new CommandBinding(MainWindow.ShowCaseDocumentCommand, ShowCaseDocument); this.CommandBindingShowOrderForm = new CommandBinding(MainWindow.ShowOrderFormCommand, this.ShowOrderForm, ItemIsSelected); this.CommandBindingPatientLinking = new CommandBinding(MainWindow.PatientLinkingCommand, this.LinkPatient, ItemIsSelected); this.CommandBindingRemoveTab = new CommandBinding(MainWindow.RemoveTabCommand, RemoveTab); this.CommandBindingShowPatientEditDialog = new CommandBinding(MainWindow.ShowPatientEditDialogCommand, this.ShowPatientEditDialog); this.CommandBindings.Add(this.CommandBindingApplicationClosing); this.CommandBindings.Add(this.CommandBindingShowCaseDocument); this.CommandBindings.Add(this.CommandBindingShowOrderForm); this.CommandBindings.Add(this.CommandBindingPatientLinking); this.CommandBindings.Add(this.CommandBindingRemoveTab); this.CommandBindings.Add(this.CommandBindingShowPatientEditDialog); this.m_LabUI = new LabUI(this.m_SystemIdentity, writer); this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_LabUI.AccessionOrder); this.m_DocumentViewer = new DocumentWorkspace(); this.m_TreeViewWorkspace = new YellowstonePathology.UI.Common.TreeViewWorkspace(this.m_LabUI.AccessionOrder, this.m_SystemIdentity); InitializeComponent(); this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer; this.DataContext = this.m_LabUI; this.ComboBoxLogLocation.SelectionChanged -= this.ComboBoxLogLocation_SelectionChanged; this.ComboBoxLogLocation.SelectedIndex = 0; this.ComboBoxLogLocation.SelectionChanged += this.ComboBoxLogLocation_SelectionChanged; this.Loaded +=new RoutedEventHandler(LabWorkspace_Loaded); this.Unloaded += new RoutedEventHandler(LabWorkspace_Unloaded); this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; this.m_ScanLogger = new YellowstonePathology.Business.Logging.ScanLogger(this.m_SystemIdentity); this.m_ScanLogger.Start(); this.ListViewDocumentList.ItemsSource = this.m_LabUI.CaseDocumentCollection; }
public ClientOrderWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer) { this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler; this.m_LoadedHasRun = false; this.m_Writer = writer; this.m_ClientOrderUI = new ClientOrderUI(this.m_Writer); this.m_DocumentViewer = new DocumentWorkspace(); this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; InitializeComponent(); this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer; this.DataContext = this.m_ClientOrderUI; this.Loaded += new RoutedEventHandler(ClientOrderWorkspace_Loaded); this.Unloaded += new RoutedEventHandler(ClientOrderWorkspace_Unloaded); }
public PrintBlockPage(YellowstonePathology.Business.User.SystemIdentity systemIdentity, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder) { this.m_SystemIdentity = systemIdentity; this.m_AccessionOrder = accessionOrder; this.m_SpecimenOrder = specimenOrder; this.SetReportNoToUse(); this.m_CaseNotesDocument = YellowstonePathology.Business.Gateway.XmlGateway.GetOrderComments(this.m_AccessionOrder.MasterAccessionNo); this.m_DocumentViewer = new DocumentWorkspace(); this.m_CaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(this.m_AccessionOrder, this.m_ReportNoToUse); this.m_GrossBlockManagementView = new Business.View.GrossBlockManagementView(this.m_AccessionOrder, this.m_CaseNotesDocument, this.m_SpecimenOrder); this.SetupSpecimenView(); this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; this.m_TestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetAllTests(); this.m_HandETest = this.m_TestCollection.GetTest(49); this.m_IronTest = this.m_TestCollection.GetTest(115); this.m_HPyloriTest = this.m_TestCollection.GetTest(107); this.m_FrozenTest = this.m_TestCollection.GetTest(45); this.Aliquots = 1; this.m_ListBoxBlocksMouseDownTimer = new System.Windows.Threading.DispatcherTimer(); this.m_ListBoxBlocksMouseDownTimer.Interval = new TimeSpan(0, 0, 0, 0, 750); this.m_ListBoxBlocksMouseDownTimer.Tick += new EventHandler(ListBoxBlocksMouseDownTimer_Tick); InitializeComponent(); DataContext = this; this.DocumentViewer.Content = this.m_DocumentViewer; Loaded += new RoutedEventHandler(PrintBlockPage_Loaded); Unloaded += new RoutedEventHandler(PrintBlockPage_Unloaded); }
public LoginWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer) { this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler; this.m_LoadedHasRun = false; this.m_Writer = writer; this.CommandBindingRemoveTab = new CommandBinding(MainWindow.RemoveTabCommand, RemoveTab); this.CommandBindings.Add(this.CommandBindingRemoveTab); this.m_LoginUI = new LoginUIV2(this.m_Writer); this.m_DocumentViewer = new DocumentWorkspace(); this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; InitializeComponent(); this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer; this.DataContext = this.m_LoginUI; this.Loaded += new RoutedEventHandler(LoginWorkspace_Loaded); this.Unloaded += new RoutedEventHandler(LoginWorkspace_Unloaded); }
public PathologistsReview(PathologistUI pathologistUI, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_PathologistUI = pathologistUI; this.m_SystemIdentity = systemIdentity; InitializeComponent(); this.m_DocumentViewer = new DocumentWorkspace(); this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer; this.m_TreeViewWorkspace = new YellowstonePathology.UI.Common.TreeViewWorkspace(this.m_PathologistUI.AccessionOrder, this.m_SystemIdentity); this.tabItemTreeView.Content = this.m_TreeViewWorkspace; this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.AccessionOrder, this.PanelSetOrder.ReportNo); this.DataContext = this; this.m_DocumentViewer.ClearContent(); this.m_TypingShortcutUserControl = new TypingShortcutUserControl(this.m_SystemIdentity); this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl; if (this.m_CaseDocumentCollection.Count != 0) { if (this.m_CaseDocumentCollection.GetFirstRequisition() != null) { this.m_DocumentViewer.ShowDocument(this.m_CaseDocumentCollection.GetFirstRequisition()); } } if (this.PanelSetOrder != null) { this.m_PathologistUI.RunWorkspaceEnableRules(); this.m_PathologistUI.RunPathologistEnableRules(); this.SetReviewContent(); if (this.PanelSetOrder.PanelSetId == 19) { if (this.PanelSetOrder.Accepted == true) { this.RightTabControl.SelectedItem = this.TabItemHistory; } else { this.RightTabControl.SelectedItem = this.TabItemReview; } } else if (this.PanelSetOrder.PanelSetId == 13 || this.PanelSetOrder.PanelSetId == 128) { if (this.PanelSetOrder.Accepted == true) { this.RightTabControl.SelectedItem = this.TabItemReview; } else { this.RightTabControl.SelectedItem = this.TabItemHistory; } } else { this.RightTabControl.SelectedIndex = this.m_PathologistUI.SelectedTabIndex; } } this.m_TreeViewWorkspace = new Common.TreeViewWorkspace(this.m_PathologistUI.AccessionOrder, this.m_SystemIdentity); this.m_TreeViewWorkspace.IsEnabled = this.m_PathologistUI.AccessionOrder.IsLockAquiredByMe; this.tabItemTreeView.Content = this.m_TreeViewWorkspace; this.Unloaded += PathologistsReview_Unloaded; }