Example #1
0
        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;
        }
        private void RefreshWorkspaces()
        {
            this.m_TreeviewWorkspace = new Common.TreeViewWorkspace(this.m_TypingUI.AccessionOrder, this.m_SystemIdentity);
            this.m_TreeviewWorkspace.IsEnabled = this.m_TypingUI.AccessionOrder.IsLockAquiredByMe;
            this.tabItemTreeView.Content = this.m_TreeviewWorkspace;

            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, this.m_TypingUI.SurgicalTestOrder.ReportNo, this.m_TypingUI.AccessionOrder);
            this.m_AmendmentControl.IsEnabled = this.m_TypingUI.AccessionOrder.IsLockAquiredByMe;
            this.TabItemAmendments.Content = this.m_AmendmentControl;
        }
Example #4
0
        private void RefreshWorkspaces()
        {
            this.m_TreeViewWorkspace = new Common.TreeViewWorkspace(this.m_LabUI.AccessionOrder, this.m_SystemIdentity);
            this.m_TreeViewWorkspace.IsEnabled = this.m_LabUI.AccessionOrder.AccessionLock.IsLockAquiredByMe;
            this.TabItemTreeView.Content = this.m_TreeViewWorkspace;

            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, this.m_LabUI.PanelSetOrder.ReportNo, this.m_LabUI.AccessionOrder);
            this.m_AmendmentControl.IsEnabled = this.m_LabUI.AccessionOrder.AccessionLock.IsLockAquiredByMe;
            this.TabItemAmendment.Content = this.m_AmendmentControl;
        }
        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;
        }