public void ExecutePendingSearch(int orderedById) { Search.CytologyScreeningSqlStatement sqlStatement = new YellowstonePathology.Business.Search.CytologyScreeningSqlStatement(); YellowstonePathology.Business.Search.AcceptedField acceptedField = new AcceptedField(false); sqlStatement.SearchFields.Add(acceptedField); if (orderedById != 0) { YellowstonePathology.Business.Search.OrderedByIdField orderedByIdField = new OrderedByIdField(orderedById); sqlStatement.SearchFields.Add(orderedByIdField); } YellowstonePathology.Business.Search.DateLimitField dateLimitField = new DateLimitField(730, "AccessionDate"); sqlStatement.SearchFields.Add(dateLimitField); this.m_Results = YellowstonePathology.Business.Gateway.CytologyScreeningSearchGateway.GetCytologyScreeningSearchResults(sqlStatement.ToString()); this.NotifyPropertyChanged("Results"); }
public void ExecutePendingSearch(int orderedById) { Search.CytologyScreeningSqlStatement sqlStatement = new YellowstonePathology.Business.Search.CytologyScreeningSqlStatement(); YellowstonePathology.Business.Search.AcceptedField acceptedField = new AcceptedField(false); sqlStatement.SearchFields.Add(acceptedField); if (orderedById != 0) { YellowstonePathology.Business.Search.OrderedByIdField orderedByIdField = new OrderedByIdField(orderedById); sqlStatement.SearchFields.Add(orderedByIdField); } YellowstonePathology.Business.Search.DateLimitField dateLimitField = new DateLimitField(730, "AccessionDate"); sqlStatement.SearchFields.Add(dateLimitField); this.m_Results = YellowstonePathology.Business.Gateway.CytologyScreeningSearchGateway.GetCytologyScreeningSearchResults(sqlStatement.ToString()); this.NotifyPropertyChanged("Results"); }