예제 #1
0
        public GlsfmLookupResponseAPI Lookup(Glsfmlookupcriteria glsfmlookupcriteria)
        {
            var result = new GlsfmLookupResponseAPI();

            var pdsglsfmlookup = new pdsglsfmlookupDataSet();

            DataRow ttblglsfmlookupcriteriaCriteria = pdsglsfmlookup.ttblglsfmlookupcriteria.NewttblglsfmlookupcriteriaRow();

            Glsfmlookupcriteria.UpdateRowFromGlsfmlookupcriteria(ref ttblglsfmlookupcriteriaCriteria, glsfmlookupcriteria);
            pdsglsfmlookup.ttblglsfmlookupcriteria.AddttblglsfmlookupcriteriaRow((pdsglsfmlookupDataSet.ttblglsfmlookupcriteriaRow)ttblglsfmlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Glsfm - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poGlsfmproxy = this.proxyAppObject.CreatePO_glsfmproxy())
                {
                    this.SetRequiredContextParameters();
                    poGlsfmproxy.Lookup(ref pdsContext, ref pdsglsfmlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Glsfm - After Call");


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

            foreach (DataRow row in pdsglsfmlookup.ttblglsfmlookupresults)
            {
                result.glsfmlookupresults.Add(Glsfmlookupresults.BuildGlsfmlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
예제 #2
0
 public GlsfmLookupResponseAPI Lookup(Glsfmlookupcriteria glsfmlookupcriteria)
 {
     return(this.repository.Lookup(glsfmlookupcriteria));
 }
예제 #3
0
 public GlsfmLookupResponseAPI Lookup(Glsfmlookupcriteria glsfmlookupcriteria)
 {
     return(this.adapter.Lookup(glsfmlookupcriteria));
 }