Ejemplo n.º 1
0
        public GlsbLookupResponseAPI Lookup(Glbdgaccountlookupcriteria glbdgaccountlookupcriteria)
        {
            var result = new GlsbLookupResponseAPI();

            var pdsglbdgaccountlookup = new pdsglbdgaccountlookupDataSet();

            DataRow ttblglbdgaccountlookupcriteriaCriteria = pdsglbdgaccountlookup.ttblglbdgaccountlookupcriteria.NewttblglbdgaccountlookupcriteriaRow();

            Glbdgaccountlookupcriteria.UpdateRowFromGlbdgaccountlookupcriteria(ref ttblglbdgaccountlookupcriteriaCriteria, glbdgaccountlookupcriteria);
            pdsglbdgaccountlookup.ttblglbdgaccountlookupcriteria.AddttblglbdgaccountlookupcriteriaRow((pdsglbdgaccountlookupDataSet.ttblglbdgaccountlookupcriteriaRow)ttblglbdgaccountlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Glsb - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poGlsbproxy = this.proxyAppObject.CreatePO_glsbproxy())
                {
                    this.SetRequiredContextParameters();
                    poGlsbproxy.Lookup(ref pdsContext, ref pdsglbdgaccountlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Glsb - After Call");


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

            foreach (DataRow row in pdsglbdgaccountlookup.ttblglbdgaccountlookupresults)
            {
                result.glbdgaccountlookupresults.Add(Glbdgaccountlookupresults.BuildGlbdgaccountlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Ejemplo n.º 2
0
 public GlsbLookupResponseAPI Lookup(Glbdgaccountlookupcriteria glbdgaccountlookupcriteria)
 {
     return(this.adapter.Lookup(glbdgaccountlookupcriteria));
 }
Ejemplo n.º 3
0
 public GlsbLookupResponseAPI Lookup(Glbdgaccountlookupcriteria glbdgaccountlookupcriteria)
 {
     return(this.repository.Lookup(glbdgaccountlookupcriteria));
 }