private void HyperLinkRemoveSelectedReport_Click(object sender, RoutedEventArgs e) { if (ListViewOtherReports.SelectedItem != null) { YellowstonePathology.Business.Test.BoneMarrowSummary.OtherReportView otherReportView = ListViewOtherReports.SelectedItem as YellowstonePathology.Business.Test.BoneMarrowSummary.OtherReportView; if (string.IsNullOrEmpty(otherReportView.SummaryReportNo) == false && otherReportView.SummaryReportNo == this.m_PanelSetOrder.ReportNo) { Business.Test.AccessionOrder accessionOrder = Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(otherReportView.MasterAccessionNo, this); if (accessionOrder.AccessionLock.IsLockAquiredByMe == true) { Business.Test.PanelSetOrder panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(otherReportView.ReportNo); panelSetOrder.SummaryReportNo = null; Business.Persistence.DocumentGateway.Instance.Save(); this.OtherReportViewCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetOtherReportViewCollection(this.m_AccessionOrder.PatientId, this.m_AccessionOrder.MasterAccessionNo); } else { MessageBox.Show("Unable to remove the selected report as that accession is locked."); } } } else { MessageBox.Show("Select a report to remove"); } }
private void SetAccessionReportsIncluded() { this.m_AccessionReportsIncluded = new YellowstonePathology.Business.Test.BoneMarrowSummary.OtherReportViewCollection(); List <YellowstonePathology.Business.Test.PanelSetOrder> panelSetOrders = this.m_AccessionOrder.PanelSetOrderCollection.GetBoneMarrowAccessionSummaryList(this.m_PanelSetOrder.ReportNo, false); foreach (Business.Test.PanelSetOrder pso in panelSetOrders) { YellowstonePathology.Business.Test.BoneMarrowSummary.OtherReportView view = new Business.Test.BoneMarrowSummary.OtherReportView(); view.ReportNo = pso.ReportNo; view.PanelSetName = pso.PanelSetName; this.m_AccessionReportsIncluded.Add(view); } }
private void AddOtherReport(YellowstonePathology.Business.Test.BoneMarrowSummary.OtherReportView otherReportView) { Business.Test.AccessionOrder accessionOrder = Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(otherReportView.MasterAccessionNo, this); if (accessionOrder.AccessionLock.IsLockAquiredByMe == true) { Business.Test.PanelSetOrder panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(otherReportView.ReportNo); panelSetOrder.SummaryReportNo = this.m_PanelSetOrder.ReportNo; Business.Persistence.DocumentGateway.Instance.Save(); this.OtherReportViewCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetOtherReportViewCollection(this.m_AccessionOrder.PatientId, this.m_AccessionOrder.MasterAccessionNo); } else { MessageBox.Show("Unable to add the selected report to the summary as that accession is locked."); } }
public BoneMarrowSummaryResultPage(YellowstonePathology.Business.Test.PanelSetOrder testOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity, YellowstonePathology.UI.Navigation.PageNavigator pageNavigator) : base(testOrder, accessionOrder) { this.m_AccessionOrder = accessionOrder; this.m_PanelSetOrder = testOrder; this.m_SystemIdentity = systemIdentity; this.m_PageNavigator = pageNavigator; this.m_PageHeaderText = "Bone Marrow Summary Results For: " + this.m_AccessionOrder.PatientDisplayName; this.SetAccessionReportsIncluded(); this.m_OtherReportViewCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetOtherReportViewCollection(this.m_AccessionOrder.PatientId, this.m_AccessionOrder.MasterAccessionNo); InitializeComponent(); DataContext = this; this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults); }