private void AccessionOrderPage_ShowResultPage(object sender, CustomEventArgs.PanelSetOrderReturnEventArgs e) { YellowstonePathology.Business.User.SystemIdentity systemIdentity = Business.User.SystemIdentity.Instance; YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(resultPathFactory_Finished); bool started = false; if (this.m_PageNavigationMode == PageNavigationModeEnum.Inline) { started = resultPathFactory.Start(e.PanelSetOrder, this.m_AccessionOrder, this.m_PageNavigator, this.m_LoginPageWindow, System.Windows.Visibility.Collapsed); } else { started = resultPathFactory.Start(e.PanelSetOrder, this.m_AccessionOrder, this.m_LoginPageWindow.PageNavigator, this.m_LoginPageWindow, System.Windows.Visibility.Collapsed); } if (started == false) { System.Windows.MessageBox.Show("The result for this case is not available in this view."); } }
private void ListViewMissingInformation_DoubleClick(object sender, MouseButtonEventArgs e) { if(this.ListViewMissingInformation.SelectedItem != null) { YellowstonePathology.Business.Monitor.Model.MissingInformation missingInformation = (YellowstonePathology.Business.Monitor.Model.MissingInformation)this.ListViewMissingInformation.SelectedItem; YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(missingInformation.MasterAccessionNo, Window.GetWindow(this)); YellowstonePathology.Business.User.SystemIdentity systemIdentity = Business.User.SystemIdentity.Instance; this.m_LoginPageWindow = new Login.LoginPageWindow(); this.m_LoginPageWindow.Show(); YellowstonePathology.Business.Test.MissingInformation.MissingInformtionTestOrder missingInformationTestOrder = (YellowstonePathology.Business.Test.MissingInformation.MissingInformtionTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(missingInformation.ReportNo); YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Start(missingInformationTestOrder, accessionOrder, this.m_LoginPageWindow.PageNavigator, System.Windows.Window.GetWindow(this), Visibility.Collapsed); resultPathFactory.Finished += ResultPathFactory_Finished; } }
private bool ShowResultPage(YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo) { bool result = false; if (testOrderInfo.PanelSet.ShowResultPageOnOrder == true) { YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_TestOrderInfo.PanelSetOrder; YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(ResultPathFactory_Finished); resultPathFactory.Start(panelSetOrder, this.m_AccessionOrder, this.m_PageNavigator, this.m_Writer, System.Windows.Visibility.Collapsed); result = true; } return(result); }
private void ListViewMissingInformation_DoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListViewMissingInformation.SelectedItem != null) { YellowstonePathology.Business.Monitor.Model.MissingInformation missingInformation = (YellowstonePathology.Business.Monitor.Model.MissingInformation) this.ListViewMissingInformation.SelectedItem; YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(missingInformation.MasterAccessionNo, Window.GetWindow(this)); YellowstonePathology.Business.User.SystemIdentity systemIdentity = Business.User.SystemIdentity.Instance; this.m_LoginPageWindow = new Login.Receiving.LoginPageWindow(); this.m_LoginPageWindow.Show(); YellowstonePathology.Business.Test.MissingInformation.MissingInformationTestOrder missingInformationTestOrder = (YellowstonePathology.Business.Test.MissingInformation.MissingInformationTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(missingInformation.ReportNo); YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Start(missingInformationTestOrder, accessionOrder, this.m_LoginPageWindow.PageNavigator, System.Windows.Window.GetWindow(this), Visibility.Collapsed); resultPathFactory.Finished += ResultPathFactory_Finished; } }
private void ButtonResults_Click(object sender, RoutedEventArgs e) { int panelSetid = this.PanelSetOrder.PanelSetId; this.m_ResultDialog = new Test.ResultDialog(); YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(ResultPathFactory_Finished); bool resultPathStarted = resultPathFactory.Start(this.m_PathologistUI.PanelSetOrder, this.m_PathologistUI.AccessionOrder, this.m_ResultDialog.PageNavigator, this.m_ResultDialog, System.Windows.Visibility.Collapsed); if (resultPathStarted == false) { string msg = "Results not yet implemented for " + this.PanelSetOrder.PanelSetName; MessageBox.Show(msg, "Under Construction"); } else { this.m_ResultDialog.ShowDialog(); } }
private void TileResult_MouseUp(object sender, MouseButtonEventArgs e) { if (this.ListViewAccessionOrders.SelectedItem != null) { YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_LoginUI.AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_LoginUI.ReportNo); YellowstonePathology.Business.User.SystemIdentity systemIdentity = Business.User.SystemIdentity.Instance; YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(ResultPathFactory_Finished); this.m_LoginPageWindow = new LoginPageWindow(); bool started = resultPathFactory.Start(panelSetOrder, this.m_LoginUI.AccessionOrder, this.m_LoginPageWindow.PageNavigator, this.m_LoginPageWindow, System.Windows.Visibility.Collapsed); if (started == true) { this.m_LoginPageWindow.ShowDialog(); } else { MessageBox.Show("The result for this case is not available in this view."); } } }
private bool ShowResultPage(YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo) { bool result = false; if (testOrderInfo.PanelSet.ShowResultPageOnOrder == true) { YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_TestOrderInfo.PanelSetOrder; YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(ResultPathFactory_Finished); resultPathFactory.Start(panelSetOrder, this.m_AccessionOrder, this.m_PageNavigator, this.m_Writer, System.Windows.Visibility.Collapsed); result = true; } return result; }
private void ButtonResults_Click(object sender, RoutedEventArgs e) { this.m_ResultDialog = new ResultDialog(); YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(ResultPathFactory_Finished); bool started = resultPathFactory.Start(this.m_LabUI.PanelSetOrder, this.m_LabUI.AccessionOrder, this.m_ResultDialog.PageNavigator, this.m_ResultDialog, System.Windows.Visibility.Collapsed); if (started == true) { this.m_ResultDialog.ShowDialog(); } else { MessageBox.Show("The result for this case is not available in this view."); } }