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 ExecuteAcceptedBySearch(int acceptedById)
        {
            Search.CytologyScreeningSqlStatement sqlStatement = new YellowstonePathology.Business.Search.CytologyScreeningSqlStatement();
            YellowstonePathology.Business.Search.AcceptedField acceptedField = new AcceptedField(true);
            sqlStatement.SearchFields.Add(acceptedField);

            if (acceptedById != 0)
            {
                YellowstonePathology.Business.Search.AcceptedByIdField userField = new AcceptedByIdField(acceptedById);
                sqlStatement.SearchFields.Add(userField);
            }

            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 ExecuteReportNoSearch(string reportNo)
        {
            Search.CytologyScreeningSqlStatement sqlStatement = new YellowstonePathology.Business.Search.CytologyScreeningSqlStatement();
            YellowstonePathology.Business.Search.ReportNoField reportNoField = new ReportNoField();
            reportNoField.Value = reportNo;

            sqlStatement.SearchFields.Add(reportNoField);
            this.m_Results = YellowstonePathology.Business.Gateway.CytologyScreeningSearchGateway.GetCytologyScreeningSearchResults(sqlStatement.ToString());
            this.NotifyPropertyChanged("Results");
        }
        public void ExecuteReportNoSearch(string reportNo)
        {
            Search.CytologyScreeningSqlStatement sqlStatement = new YellowstonePathology.Business.Search.CytologyScreeningSqlStatement();
            YellowstonePathology.Business.Search.ReportNoField reportNoField = new ReportNoField();
            reportNoField.Value = reportNo;

            sqlStatement.SearchFields.Add(reportNoField);
            this.m_Results = YellowstonePathology.Business.Gateway.CytologyScreeningSearchGateway.GetCytologyScreeningSearchResults(sqlStatement.ToString());
            this.NotifyPropertyChanged("Results");
        }