Ejemplo n.º 1
0
        public ArbchLookupResponseAPI Lookup(Arbchlookupcriteria arbchlookupcriteria)
        {
            var result = new ArbchLookupResponseAPI();

            var pdsarbchchecklookup = new pdsarbchchecklookupDataSet();

            DataRow ttblarbchlookupcriteriaCriteria = pdsarbchchecklookup.ttblarbchlookupcriteria.NewttblarbchlookupcriteriaRow();

            Arbchlookupcriteria.UpdateRowFromArbchlookupcriteria(ref ttblarbchlookupcriteriaCriteria, arbchlookupcriteria);
            pdsarbchchecklookup.ttblarbchlookupcriteria.AddttblarbchlookupcriteriaRow((pdsarbchchecklookupDataSet.ttblarbchlookupcriteriaRow)ttblarbchlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Arbch - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poArbchproxy = this.proxyAppObject.CreatePO_arbchproxy())
                {
                    this.SetRequiredContextParameters();
                    poArbchproxy.Lookup(ref pdsContext, ref pdsarbchchecklookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Arbch - After Call");


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

            foreach (DataRow row in pdsarbchchecklookup.ttblarbchlookupresults)
            {
                result.arbchlookupresults.Add(Arbchlookupresults.BuildArbchlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Ejemplo n.º 2
0
 public ArbchLookupResponseAPI Lookup(Arbchlookupcriteria arbchlookupcriteria)
 {
     return(this.repository.Lookup(arbchlookupcriteria));
 }
Ejemplo n.º 3
0
 public ArbchLookupResponseAPI Lookup(Arbchlookupcriteria arbchlookupcriteria)
 {
     return(this.adapter.Lookup(arbchlookupcriteria));
 }