public PathologistUI(System.Windows.Controls.TabItem writer) { this.m_Writer = writer; this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_OrderCollection = new YellowstonePathology.Business.Test.PanelOrderCollection(); this.m_PathologistHistoryList = new YellowstonePathology.Business.Surgical.PathologistHistoryList(); this.m_SelectedTabIndex = 0; this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer); this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers(); this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler(); this.m_AmendmentUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true); this.m_PanelSetIdsThatCanOrderStains = new List <int>(); YellowstonePathology.Business.Test.Surgical.SurgicalTest surgicalTest = new Business.Test.Surgical.SurgicalTest(); this.m_PanelSetIdsThatCanOrderStains.Add(surgicalTest.PanelSetId); YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest technicalOnlyTest = new Business.Test.TechnicalOnly.TechnicalOnlyTest(); this.m_PanelSetIdsThatCanOrderStains.Add(technicalOnlyTest.PanelSetId); YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest reviewForAdditionalTestingTest = new Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest(); this.m_PanelSetIdsThatCanOrderStains.Add(reviewForAdditionalTestingTest.PanelSetId); this.m_Facility = Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId); this.m_Location = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.HostName; }
private void ButtonNext_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest panelSetTechnicalOnly = new Business.Test.TechnicalOnly.TechnicalOnlyTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.HasGrossBeenOrdered() == true) { YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrderByTestId("48"); if (panelSetOrder.AssignedToId == 0) { MessageBoxResult messageBoxResult = MessageBox.Show("A Gross Only has been ordered but the case has not been assigned. Are you sure you want to continue?", "Assignement", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (messageBoxResult == MessageBoxResult.Yes) { YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); this.Return(this, args); } } else { YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); this.Return(this, args); } } /* removed by SH on 6/17 to see what happens. * else if (this.m_AccessionOrder.PanelSetOrderCollection.HasUnassignedPanelSetOrder(panelSetTechnicalOnly.PanelSetId) == true) * { * MessageBoxResult messageBoxResult = MessageBox.Show("There is an order that has not been assigned are you sure you want to continue?", "Assignement", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); * if (messageBoxResult == MessageBoxResult.Yes) * { * YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); * UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); * this.Return(this, args); * } * } */ else { YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); this.Return(this, args); } }
private bool ShowAssignmentPage() { bool result = false; YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest panelSetTechnicalOnly = new Business.Test.TechnicalOnly.TechnicalOnlyTest(); YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest reviewForAdditionalTestingTest = new Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest(); YellowstonePathology.Business.Test.IHCQC.IHCQCTest ihcQCTest = new Business.Test.IHCQC.IHCQCTest(); if (this.m_AccessionOrder.IsDermatologyClient() == true || this.m_AccessionOrder.PanelSetOrderCollection.HasGrossBeenOrdered() == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetTechnicalOnly.PanelSetId) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(reviewForAdditionalTestingTest.PanelSetId) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(ihcQCTest.PanelSetId) == true || this.m_AccessionOrder.ClientId == 1260) { AssignmentPage assignmentPage = new AssignmentPage(this.m_AccessionOrder); assignmentPage.Return += new AssignmentPage.ReturnEventHandler(AssignmentPage_Return); this.m_PageNavigator.Navigate(assignmentPage); result = true; } return(result); }
public PathologistUI(System.Windows.Controls.TabItem writer) { this.m_Writer = writer; this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_OrderCollection = new YellowstonePathology.Business.Test.PanelOrderCollection(); this.m_PathologistHistoryList = new YellowstonePathology.Business.Surgical.PathologistHistoryList(); this.m_SelectedTabIndex = 0; this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer); this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers(); this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler(); this.m_AmendmentUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true); this.m_PanelSetIdsThatCanOrderStains = new List<int>(); YellowstonePathology.Business.Test.Surgical.SurgicalTest surgicalTest = new Business.Test.Surgical.SurgicalTest(); this.m_PanelSetIdsThatCanOrderStains.Add(surgicalTest.PanelSetId); YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest technicalOnlyTest = new Business.Test.TechnicalOnly.TechnicalOnlyTest(); this.m_PanelSetIdsThatCanOrderStains.Add(technicalOnlyTest.PanelSetId); YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest reviewForAdditionalTestingTest = new Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest(); this.m_PanelSetIdsThatCanOrderStains.Add(reviewForAdditionalTestingTest.PanelSetId); }
private bool ShowAssignmentPage() { bool result = false; YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest panelSetTechnicalOnly = new Business.Test.TechnicalOnly.TechnicalOnlyTest(); YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest reviewForAdditionalTestingTest = new Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest(); YellowstonePathology.Business.Test.IHCQC.IHCQCTest ihcQCTest = new Business.Test.IHCQC.IHCQCTest(); if (this.m_AccessionOrder.IsDermatologyClient() == true || this.m_AccessionOrder.PanelSetOrderCollection.HasGrossBeenOrdered() == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetTechnicalOnly.PanelSetId) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(reviewForAdditionalTestingTest.PanelSetId) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(ihcQCTest.PanelSetId) == true || this.m_AccessionOrder.ClientId == 1260) { AssignmentPage assignmentPage = new AssignmentPage(this.m_AccessionOrder); assignmentPage.Return += new AssignmentPage.ReturnEventHandler(AssignmentPage_Return); this.m_PageNavigator.Navigate(assignmentPage); result = true; } return result; }
private void ButtonNext_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest panelSetTechnicalOnly = new Business.Test.TechnicalOnly.TechnicalOnlyTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.HasGrossBeenOrdered() == true) { YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrderByTestId(48); if (panelSetOrder.AssignedToId == 0) { MessageBoxResult messageBoxResult = MessageBox.Show("A Gross Only has been ordered but the case has not been assigned. Are you sure you want to continue?", "Assignement", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (messageBoxResult == MessageBoxResult.Yes) { UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); this.Return(this, args); } } else { UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); this.Return(this, args); } } else if (this.m_AccessionOrder.PanelSetOrderCollection.HasUnassignedPanelSetOrder(panelSetTechnicalOnly.PanelSetId) == true) { MessageBoxResult messageBoxResult = MessageBox.Show("There is an order that has not been assigned are you sure you want to continue?", "Assignement", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (messageBoxResult == MessageBoxResult.Yes) { UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); this.Return(this, args); } } else { UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null); this.Return(this, args); } }