Ejemplo n.º 1
0
        public GlsfLookupResponseAPI Lookup(Glsflookupcriteria glsflookupcriteria)
        {
            var result = new GlsfLookupResponseAPI();

            var pdsglsflookup = new pdsglsflookupDataSet();

            DataRow ttblglsflookupcriteriaCriteria = pdsglsflookup.ttblglsflookupcriteria.NewttblglsflookupcriteriaRow();

            Glsflookupcriteria.UpdateRowFromGlsflookupcriteria(ref ttblglsflookupcriteriaCriteria, glsflookupcriteria);
            pdsglsflookup.ttblglsflookupcriteria.AddttblglsflookupcriteriaRow((pdsglsflookupDataSet.ttblglsflookupcriteriaRow)ttblglsflookupcriteriaCriteria);

            string cErrorMessage = string.Empty;
            bool   lMoreRecords  = false;


            NLogLoggerP.Trace("Lookup - Glsf - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poGlsfproxy = this.proxyAppObject.CreatePO_glsfproxy())
                {
                    this.SetRequiredContextParameters();
                    poGlsfproxy.Lookup(ref pdsContext, ref pdsglsflookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Glsf - After Call");


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

            foreach (DataRow row in pdsglsflookup.ttblglsflookupresults)
            {
                result.glsflookupresults.Add(Glsflookupresults.BuildGlsflookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Ejemplo n.º 2
0
 public GlsfLookupResponseAPI Lookup(Glsflookupcriteria glsflookupcriteria)
 {
     return(this.repository.Lookup(glsflookupcriteria));
 }
Ejemplo n.º 3
0
 public GlsfLookupResponseAPI Lookup(Glsflookupcriteria glsflookupcriteria)
 {
     return(this.adapter.Lookup(glsflookupcriteria));
 }