public PathologistSearch(object writer) { this.m_Writer = writer; this.m_FinalDates = new List<string>(); this.m_FinalDates.Add("Not Final"); this.m_FinalDates.Add("Final Today"); this.m_FinalDates.Add("Final Yesterday"); this.m_FinalDates.Add("Final Last 7 Days"); this.m_FinalDates.Add("Final Last 30 Days"); this.m_Pathologists = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers(); YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.m_Pathologists, true); this.m_Pathologists[0].UserId = -1; YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddUnassignedToUserList(this.m_Pathologists, true); this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll(); this.m_PathologistCaseTypes = this.m_PanelSets.GetPathologistsCaseTypes(); this.m_SelectedCaseType = "All Case Types"; this.m_Results = new YellowstonePathology.Business.Search.PathologistSearchResultCollection(); this.m_SelectedPanelSetId = 0; this.m_SelectedPathologistId = -1; if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist)) { this.m_SelectedPathologistId = YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId; } m_SearchValue = string.Empty; }
public void ExecuteGenericSearch() { string dateLimit = string.Empty; bool final = true; if (this.m_FinalDateValue.Contains("Not")) { final = false; } if (this.m_FinalDateValue.Contains("30")) { dateLimit = "30"; } if (this.m_FinalDateValue.Contains("7")) { dateLimit = "7"; } if (this.m_FinalDateValue.Contains("Yesterday")) { dateLimit = "Yesterday"; } if (this.m_FinalDateValue.Contains("Today")) { dateLimit = "Today"; } YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.PathologistGenericSearch(this.m_SelectedCaseType, this.m_SelectedPathologistId, final, dateLimit); this.NotifyPropertyChanged("Results"); }
public PathologistSearch(object writer) { this.m_Writer = writer; this.m_FinalDates = new List <string>(); this.m_FinalDates.Add("Not Final"); this.m_FinalDates.Add("Final Today"); this.m_FinalDates.Add("Final Yesterday"); this.m_FinalDates.Add("Final Last 7 Days"); this.m_FinalDates.Add("Final Last 30 Days"); this.m_Pathologists = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers(); YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.m_Pathologists, true); this.m_Pathologists[0].UserId = -1; YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddUnassignedToUserList(this.m_Pathologists, true); this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll(); this.m_PathologistCaseTypes = this.m_PanelSets.GetPathologistsCaseTypes(); this.m_SelectedCaseType = "All Case Types"; this.m_Results = new YellowstonePathology.Business.Search.PathologistSearchResultCollection(); this.m_SelectedPanelSetId = 0; this.m_SelectedPathologistId = -1; if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist)) { this.m_SelectedPathologistId = YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId; } m_SearchValue = string.Empty; }
public YellowstonePathology.Business.Search.PathologistSearchResultCollection ExecuteSlideOrderIdSearch(string slideOrderId) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); YellowstonePathology.Business.Search.PathologistSearchResultCollection pathologistSearchResultCollection = gateway.PathologistSlideOrderIdSearch(slideOrderId); foreach (YellowstonePathology.Business.Search.PathologistSearchResult psr in pathologistSearchResultCollection) { if (this.m_Results.ReportNoExists(psr.ReportNo) == false) { this.m_Results.Add(psr); } } this.NotifyPropertyChanged("Results"); return(pathologistSearchResultCollection); }
private void DoSlideOrderIdSearch(string slideOrderId) { YellowstonePathology.Business.Search.PathologistSearchResultCollection pathologistSearchResultCollection = this.m_PathologistUI.DoSlideOrderIdSearch(slideOrderId); if (pathologistSearchResultCollection.Count != 0) { YellowstonePathology.Business.Search.PathologistSearchResult pathologistSearchResult = pathologistSearchResultCollection.GetPrimaryResult(); for (int i = 0; i < this.ListViewSearchResults.Items.Count; i++) { YellowstonePathology.Business.Search.PathologistSearchResult psr = (YellowstonePathology.Business.Search.PathologistSearchResult) this.ListViewSearchResults.Items[i]; if (psr.ReportNo == pathologistSearchResult.ReportNo) { this.ListViewSearchResults.SelectedIndex = i; break; } } } else { MessageBox.Show("We were unable to find the scanned slide in the database."); } }
public void ExecuteReportNoSearch(string reportNo) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.GetPathologistSearchListByReportNo(reportNo); this.NotifyPropertyChanged("Results"); }
public void ExecutePatientIdSearch(string patientId) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.PathologistPatientIdSearch(patientId); this.NotifyPropertyChanged("Results"); }
public void ExecuteNameSearch(string firstName, string lastName) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.PathologistNameSearch(lastName, firstName); this.NotifyPropertyChanged("Results"); }
public void ExecuteMasterAccessionNoSearch(string masterAccessionNo) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.GetPathologistSearchListByMasterAccessionNoNo(masterAccessionNo); this.NotifyPropertyChanged("Results"); }
public void ExecuteGenericSearch() { string dateLimit = string.Empty; bool final = true; if (this.m_FinalDateValue.Contains("Not")) { final = false; } if(this.m_FinalDateValue.Contains("30")) { dateLimit = "30"; } if (this.m_FinalDateValue.Contains("7")) { dateLimit = "7"; } if (this.m_FinalDateValue.Contains("Yesterday")) { dateLimit = "Yesterday"; } if (this.m_FinalDateValue.Contains("Today")) { dateLimit = "Today"; } YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.PathologistGenericSearch(this.m_SelectedCaseType, this.m_SelectedPathologistId, final, dateLimit); this.NotifyPropertyChanged("Results"); }
public void ExecutePatientIdSearch(string patientId) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.PathologistPatientIdSearch(patientId); this.NotifyPropertyChanged("Results"); }
public void ExecuteMasterAccessionNoSearch(string masterAccessionNo) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.GetPathologistSearchListByMasterAccessionNoNo(masterAccessionNo); this.NotifyPropertyChanged("Results"); }
public void ExecuteReportNoSearch(string reportNo) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.GetPathologistSearchListByReportNo(reportNo); this.NotifyPropertyChanged("Results"); }
public void ExecuteNameSearch(string firstName, string lastName) { YellowstonePathology.Business.Gateway.SearchGateway gateway = new Gateway.SearchGateway(); this.m_Results = gateway.PathologistNameSearch(lastName, firstName); this.NotifyPropertyChanged("Results"); }