Beispiel #1
0
        public IcselLookupResponseAPI Lookup(Iclotlookupcriteria iclotlookupcriteria)
        {
            var result = new IcselLookupResponseAPI();

            var pdsiclotlookup = new pdsiclotlookupDataSet();

            DataRow ttbliclotlookupcriteriaCriteria = pdsiclotlookup.ttbliclotlookupcriteria.NewttbliclotlookupcriteriaRow();

            Iclotlookupcriteria.UpdateRowFromIclotlookupcriteria(ref ttbliclotlookupcriteriaCriteria, iclotlookupcriteria);
            pdsiclotlookup.ttbliclotlookupcriteria.AddttbliclotlookupcriteriaRow((pdsiclotlookupDataSet.ttbliclotlookupcriteriaRow)ttbliclotlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Icsel - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poIcselproxy = this.proxyAppObject.CreatePO_icselproxy())
                {
                    this.SetRequiredContextParameters();
                    poIcselproxy.Lookup(ref pdsContext, ref pdsiclotlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Icsel - After Call");


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

            foreach (DataRow row in pdsiclotlookup.ttbliclotlookupresults)
            {
                result.iclotlookupresults.Add(Iclotlookupresults.BuildIclotlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Beispiel #2
0
 public IcselLookupResponseAPI Lookup(Iclotlookupcriteria iclotlookupcriteria)
 {
     return(this.repository.Lookup(iclotlookupcriteria));
 }
Beispiel #3
0
 public IcselLookupResponseAPI Lookup(Iclotlookupcriteria iclotlookupcriteria)
 {
     return(this.adapter.Lookup(iclotlookupcriteria));
 }