예제 #1
0
        public IEnumerable <Glifresults> GLIFSearch(Glifcriteria glifcriteria)
        {
            var results = new List <Glifresults>();

            var pdsglifsearch = new pdsglifsearchDataSet();

            DataRow ttblglifcriteriaCriteria = pdsglifsearch.ttblglifcriteria.NewttblglifcriteriaRow();

            Glifcriteria.UpdateRowFromGlifcriteria(ref ttblglifcriteriaCriteria, glifcriteria);
            pdsglifsearch.ttblglifcriteria.AddttblglifcriteriaRow((pdsglifsearchDataSet.ttblglifcriteriaRow)ttblglifcriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("GLIFSearch - Asglinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglinquiryproxy = this.proxyAppObject.CreatePO_asglinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglinquiryproxy.GLIFSearch(ref pdsContext, ref pdsglifsearch, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLIFSearch - Asglinquiry - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsglifsearch);

            foreach (DataRow row in pdsglifsearch.ttblglifresults)
            {
                results.Add(Glifresults.BuildGlifresultsFromRow(row));
            }
            return(results);
        }
예제 #2
0
 public IEnumerable <Glifresults> GLIFSearch(Glifcriteria glifcriteria)
 {
     return(this.adapter.GLIFSearch(glifcriteria));
 }
예제 #3
0
 public IEnumerable <Glifresults> GLIFSearch(Glifcriteria glifcriteria)
 {
     return(this.repository.GLIFSearch(glifcriteria));
 }