public TypingWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, PageNavigationWindow secondMonitorWindow, System.Windows.Controls.TabItem writer)
        {
            this.m_Writer = writer;
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SecondMonitorWindow = secondMonitorWindow;
            if (secondMonitorWindow != null)
            {
                this.m_SecondMonitorWindow.WindowState = WindowState.Maximized;
            }

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.m_TypingUI = new YellowstonePathology.Business.Typing.TypingUIV2(this.m_Writer);
            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_TypingUI.AccessionOrder);
            this.m_DocumentViewer = new DocumentWorkspace();

            this.m_LocalDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Local);
            this.m_ServerDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Server);

            InitializeComponent();

            this.m_TypingShortcutUserControl = new TypingShortcutUserControl(this.m_SystemIdentity, this.m_Writer);
            this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl;

            this.DataContext = this.m_TypingUI;
            this.ContentControlDocument.Content = this.m_DocumentViewer;

            this.ListViewLocalDictation.ItemsSource = this.m_LocalDictationList;
            this.ListViewServerDictation.ItemsSource = this.m_ServerDictationList;

            this.Unloaded += new RoutedEventHandler(TypingWorkspace_Unloaded);
        }
        public SurgicalReview(YellowstonePathology.UI.TypingShortcutUserControl typingShortcutUserControl, PathologistUI pathologistUI)
        {
            this.m_TypingShortcutUserControl = typingShortcutUserControl;
            this.m_PathologistUI = pathologistUI;

            this.m_BillingSpecimenViewCollection = new Business.View.BillingSpecimenViewCollection();
            this.RefreshBillingSpecimenViewCollection();

            InitializeComponent();

            this.DataContext = this;
        }
        public SurgicalReview(YellowstonePathology.UI.TypingShortcutUserControl typingShortcutUserControl, PathologistUI pathologistUI)
        {
            this.m_TypingShortcutUserControl = typingShortcutUserControl;
            this.m_PathologistUI             = pathologistUI;

            this.m_BillingSpecimenViewCollection = new Business.View.BillingSpecimenViewCollection();
            this.RefreshBillingSpecimenViewCollection();

            InitializeComponent();

            this.DataContext = this;
        }
Example #4
0
        public FrozenFinalDialog(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                 YellowstonePathology.Business.Test.Surgical.IntraoperativeConsultationResult intraoperativeConsultation,
                                 YellowstonePathology.UI.TypingShortcutUserControl typingShortcutUserControl)
        {
            this.m_PathologistUsers           = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_AccessionOrder             = accessionOrder;
            this.m_IntraoperativeConsultation = intraoperativeConsultation;
            this.m_TypingShortcutUserControl  = typingShortcutUserControl;

            YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrderSurgical = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder)accessionOrder.PanelSetOrderCollection.GetSurgical();
            YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen  surgicalSpecimen      = (from ssr in panelSetOrderSurgical.SurgicalSpecimenCollection
                                                                                                   where ssr.SurgicalSpecimenId == intraoperativeConsultation.SurgicalSpecimenId
                                                                                                   select ssr).Single <YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen>();
            this.m_SpecimenOrder = surgicalSpecimen.SpecimenOrder;
            InitializeComponent();

            this.DataContext = this;
            Closing         += new System.ComponentModel.CancelEventHandler(FrozenFinalDialog_Closing);
        }
        public FrozenFinalDialog(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.Test.Surgical.IntraoperativeConsultationResult intraoperativeConsultation,
            YellowstonePathology.UI.TypingShortcutUserControl typingShortcutUserControl)
        {
            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_AccessionOrder = accessionOrder;
            this.m_IntraoperativeConsultation = intraoperativeConsultation;
            this.m_TypingShortcutUserControl = typingShortcutUserControl;

            YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrderSurgical = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder)accessionOrder.PanelSetOrderCollection.GetSurgical();
            YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen = (from ssr in panelSetOrderSurgical.SurgicalSpecimenCollection
                                                                                                            where ssr.SurgicalSpecimenId == intraoperativeConsultation.SurgicalSpecimenId
                                                                                           select ssr).Single<YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen>();
            this.m_SpecimenOrder = surgicalSpecimen.SpecimenOrder;
            InitializeComponent();

            this.DataContext = this;
            Closing += new System.ComponentModel.CancelEventHandler(FrozenFinalDialog_Closing);
        }
        public TypingWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, PageNavigationWindow secondMonitorWindow, System.Windows.Controls.TabItem writer)
        {
            this.m_Writer = writer;
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SecondMonitorWindow            = secondMonitorWindow;
            if (secondMonitorWindow != null)
            {
                this.m_SecondMonitorWindow.WindowState = WindowState.Maximized;
            }

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.CommandBindingClose               = new CommandBinding(MainWindow.ApplicationClosingCommand, HandleAppClosing);
            this.CommandBindingShowCaseDocument    = new CommandBinding(MainWindow.ShowCaseDocumentCommand, ShowCaseDocument, ItemIsPresent);
            this.CommandBindingShowOrderForm       = new CommandBinding(MainWindow.ShowOrderFormCommand, this.ShowOrderForm, ItemIsSelected);
            this.CommandBindingShowAmendmentDialog = new CommandBinding(MainWindow.ShowAmendmentDialogCommand, this.ShowAmendmentDialog, ItemIsSelected);

            this.CommandBindings.Add(this.CommandBindingClose);
            this.CommandBindings.Add(this.CommandBindingShowCaseDocument);
            this.CommandBindings.Add(this.CommandBindingShowOrderForm);
            this.CommandBindings.Add(this.CommandBindingShowAmendmentDialog);

            this.m_TypingUI         = new YellowstonePathology.Business.Typing.TypingUIV2(this.m_Writer);
            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_TypingUI.AccessionOrder);
            this.m_DocumentViewer   = new DocumentWorkspace();

            this.m_LocalDictationList  = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Local);
            this.m_ServerDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Server);

            InitializeComponent();

            this.m_TypingShortcutUserControl    = new TypingShortcutUserControl(this.m_SystemIdentity);
            this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl;

            this.DataContext = this.m_TypingUI;
            this.ContentControlDocument.Content = this.m_DocumentViewer;

            this.ListViewLocalDictation.ItemsSource  = this.m_LocalDictationList;
            this.ListViewServerDictation.ItemsSource = this.m_ServerDictationList;

            this.Unloaded += new RoutedEventHandler(TypingWorkspace_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;
        }
        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;
        }