private void SetReviewResult() { switch (this.m_PathologistUI.PanelSetOrder.PanelSetId) { case 15: this.m_PathologistsReview = null; this.m_CytologyResultsWorkspace = new Cytology.CytologyResultsWorkspace(this.m_Writer); this.m_CytologyResultsWorkspace.CytologyUI.SetAccessionOrder(this.m_PathologistUI.AccessionOrder, this.m_PathologistUI.PanelSetOrder.ReportNo); this.m_CytologyResultsWorkspace.SetReportNo(this.m_PathologistUI.PanelSetOrder.ReportNo); this.m_CytologyResultsWorkspace.CytologyUI.WHPOpened += CytologyUI_WHPOpened; this.m_CytologyResultsWorkspace.CytologyUI.WHPClosed += CytologyUI_WHPClosed; YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_PathologistUI.AccessionOrder.MasterAccessionNo); this.m_CytologyResultsWorkspace.CytologyUI.DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.Successful; switch (clientOrderCollection.Count) { case 0: this.m_CytologyResultsWorkspace.CytologyUI.ClientOrder = null; this.m_CytologyResultsWorkspace.CytologyUI.DataLoaded(); break; case 1: case 2: case 3: this.m_CytologyResultsWorkspace.CytologyUI.ClientOrder = clientOrderCollection[0]; this.m_CytologyResultsWorkspace.CytologyUI.DataLoaded(); break; } this.ContentControlReview.Content = this.m_CytologyResultsWorkspace; this.m_CytologyResultsWorkspace.SelectAppropriatePanel(); break; default: if (this.m_CytologyResultsWorkspace != null) { this.m_CytologyResultsWorkspace.CytologyUI.WHPOpened -= CytologyUI_WHPOpened; this.m_CytologyResultsWorkspace.CytologyUI.WHPClosed -= CytologyUI_WHPClosed; } this.m_CytologyResultsWorkspace = null; this.m_PathologistsReview = new PathologistsReview(this.m_PathologistUI, this.m_SystemIdentity); this.ContentControlReview.Content = this.m_PathologistsReview; break; } }
private void SetReviewResult() { switch (this.m_PathologistUI.PanelSetOrder.PanelSetId) { case 15: this.m_PathologistsReview = null; this.m_CytologyResultsWorkspace = new Cytology.CytologyResultsWorkspace(this.m_Writer); this.m_CytologyResultsWorkspace.CytologyUI.SetAccessionOrder(this.m_PathologistUI.AccessionOrder, this.m_PathologistUI.PanelSetOrder.ReportNo); this.m_CytologyResultsWorkspace.SetReportNo(this.m_PathologistUI.PanelSetOrder.ReportNo); YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_PathologistUI.AccessionOrder.MasterAccessionNo); this.m_CytologyResultsWorkspace.CytologyUI.DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.Successful; switch (clientOrderCollection.Count) { case 0: this.m_CytologyResultsWorkspace.CytologyUI.ClientOrder = null; this.m_CytologyResultsWorkspace.CytologyUI.DataLoaded(); break; case 1: case 2: this.m_CytologyResultsWorkspace.CytologyUI.ClientOrder = clientOrderCollection[0]; this.m_CytologyResultsWorkspace.CytologyUI.DataLoaded(); break; } this.ContentControlReview.Content = this.m_CytologyResultsWorkspace; this.m_CytologyResultsWorkspace.SelectAppropriatePanel(); break; default: this.m_CytologyResultsWorkspace = null; this.m_PathologistsReview = new PathologistsReview(this.m_PathologistUI, this.m_SystemIdentity); this.ContentControlReview.Content = this.m_PathologistsReview; break; } }