Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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");
        }