public void AssignScreenings(List <YellowstonePathology.Business.Search.CytologyScreeningSearchResult> cytologyScreeningSearchResults, YellowstonePathology.Business.User.SystemUser systemUser) { this.Save(false); YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; foreach (YellowstonePathology.Business.Search.CytologyScreeningSearchResult cytologyScreeningSearchResult in cytologyScreeningSearchResults) { YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(cytologyScreeningSearchResult.MasterAccessionNo, this.m_Writer); if (accessionOrder.IsLockAquiredByMe == true) { YellowstonePathology.Business.Rules.Cytology.AssignScreening assignScreening = new YellowstonePathology.Business.Rules.Cytology.AssignScreening(this.m_Writer); assignScreening.Execute(cytologyScreeningSearchResult.MasterAccessionNo, systemUser.UserId, executionStatus); } else { YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPAP(); executionStatus.AddMessage(panelSetOrder.ReportNo + " was not assigned as it is locked.", false); } YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(accessionOrder, this.m_Writer); } if (executionStatus.ExecutionMessages.Count > 0) { YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus); executionStatusDialog.ShowDialog(); } this.LoadDataByReportNo(this.m_PanelSetOrderCytology.ReportNo); }
private void OwnershipPage_Return(object sender, Shared.PageNavigationReturnEventArgs e) { ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this); YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); YellowstonePathology.Business.Rules.MethodResult methodResult = new Business.Rules.MethodResult(); this.m_HandleClientDateentryPropertyAccess = new Rules.HandleClientDataEntryPropertyAccess(executionStatus); this.m_HandleClientDateentryPropertyAccess.Execute(this.m_ClientOrder, methodResult); this.AreDemographicsEnabled = methodResult.Success; this.AreSpecimenEnabled = methodResult.Success; this.AreButtonsEnabled = methodResult.Success; }
private void ValidateContainerId() { int cnt = this.m_ClientOrderCollection[0].ClientOrderDetailCollection.Count - 1; YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); Rules.ContainerIdValidation containerIdValidation = new Rules.ContainerIdValidation(executionStatus); containerIdValidation.Execute(this.m_ContainerId, this.m_ClientOrder, this.m_ClientOrderCollection); if (executionStatus.Halted == true) { this.TextBlockMessage.Text = executionStatus.GetResultMessage(); } else { this.DialogResult = true; this.Close(); } }
private bool ShowPatientHistoryPage() { bool result = false; Common.PatientHistoryReview patientHistoryReview = new Common.PatientHistoryReview(); if (patientHistoryReview.Run(this.m_AccessionOrder.SpecimenOrderCollection) == true) { Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); executionStatus = patientHistoryReview.ExecutionStatus; PatientHistoryPage patientHistoryPage = new PatientHistoryPage(this.m_AccessionOrder, executionStatus.ExecutionMessages[0].Message); patientHistoryPage.Return += new PatientHistoryPage.ReturnEventHandler(PatientHistoryPage_Return); this.m_PageNavigator.Navigate(patientHistoryPage); result = true; } return(result); }
private void HyperlinkSubmit_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); Rules.ClientOrderValidation clientOrderValidation = new Rules.ClientOrderValidation(executionStatus); clientOrderValidation.Execute(this.m_ClientOrder); if (executionStatus.Halted == false) { this.m_ClientOrder.Submitted = true; this.m_ClientOrder.ClientOrderDetailCollection.MarkAsSubmitted(); Save(); Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null); Return(this, args); } else { YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus); executionStatusDialog.ShowDialog(); } }
private bool ShowPatientHistoryPage() { bool result = false; Common.PatientHistoryReview patientHistoryReview = new Common.PatientHistoryReview(); if (patientHistoryReview.Run(this.m_AccessionOrder.SpecimenOrderCollection) == true) { Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); executionStatus = patientHistoryReview.ExecutionStatus; PatientHistoryPage patientHistoryPage = new PatientHistoryPage(this.m_AccessionOrder, executionStatus.ExecutionMessages[0].Message); patientHistoryPage.Return += new PatientHistoryPage.ReturnEventHandler(PatientHistoryPage_Return); this.m_PageNavigator.Navigate(patientHistoryPage); result = true; } return result; }
public void AssignScreenings(List<YellowstonePathology.Business.Search.CytologyScreeningSearchResult> cytologyScreeningSearchResults, YellowstonePathology.Business.User.SystemUser systemUser) { YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); foreach (YellowstonePathology.Business.Search.CytologyScreeningSearchResult cytologyScreeningSearchResult in cytologyScreeningSearchResults) { YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(cytologyScreeningSearchResult.MasterAccessionNo, this.m_Writer); if (accessionOrder.AccessionLock.IsLockAquiredByMe == true) { YellowstonePathology.Business.Rules.Cytology.AssignScreening assignScreening = new YellowstonePathology.Business.Rules.Cytology.AssignScreening(this.m_Writer); assignScreening.Execute(cytologyScreeningSearchResult.MasterAccessionNo, systemUser.UserId, executionStatus); } else { YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPAP(); executionStatus.AddMessage(panelSetOrder.ReportNo + " was not assigned as it is locked.", false); } YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(accessionOrder, this.m_Writer); } if (executionStatus.ExecutionMessages.Count > 0) { YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus); executionStatusDialog.ShowDialog(); } this.LoadDataByReportNo(this.m_PanelSetOrderCytology.ReportNo); }
private void OwnershipPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e) { ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this); YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); YellowstonePathology.Business.Rules.MethodResult methodResult = new Business.Rules.MethodResult(); this.m_HandleClientDateentryPropertyAccess = new Rules.HandleClientDataEntryPropertyAccess(executionStatus); this.m_HandleClientDateentryPropertyAccess.Execute(this.m_ClientOrder, methodResult); this.AreDemographicsEnabled = methodResult.Success; this.AreSpecimenEnabled = methodResult.Success; this.AreButtonsEnabled = methodResult.Success; }
private void HyperlinkSubmit_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus(); Rules.ClientOrderValidation clientOrderValidation = new Rules.ClientOrderValidation(executionStatus); clientOrderValidation.Execute(this.m_ClientOrder); if (executionStatus.Halted == false) { this.m_ClientOrder.Submitted = true; this.m_ClientOrder.ClientOrderDetailCollection.MarkAsSubmitted(); Save(false); YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null); Return(this, args); } else { YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus); executionStatusDialog.ShowDialog(); } }