Beispiel #1
0
        public IcamaLookupResponseAPI Lookup(Icreportnumberlookupcriteria icreportnumberlookupcriteria)
        {
            var result = new IcamaLookupResponseAPI();

            var pdsicreportnumberlookup = new pdsicreportnumberlookupDataSet();

            DataRow ttblicreportnumberlookupcriteriaCriteria = pdsicreportnumberlookup.ttblicreportnumberlookupcriteria.NewttblicreportnumberlookupcriteriaRow();

            Icreportnumberlookupcriteria.UpdateRowFromIcreportnumberlookupcriteria(ref ttblicreportnumberlookupcriteriaCriteria, icreportnumberlookupcriteria);
            pdsicreportnumberlookup.ttblicreportnumberlookupcriteria.AddttblicreportnumberlookupcriteriaRow((pdsicreportnumberlookupDataSet.ttblicreportnumberlookupcriteriaRow)ttblicreportnumberlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Icama - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poIcamaproxy = this.proxyAppObject.CreatePO_icamaproxy())
                {
                    this.SetRequiredContextParameters();
                    poIcamaproxy.Lookup(ref pdsContext, ref pdsicreportnumberlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Icama - After Call");


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

            foreach (DataRow row in pdsicreportnumberlookup.ttblicreportnumberlookupresults)
            {
                result.icreportnumberlookupresults.Add(Icreportnumberlookupresults.BuildIcreportnumberlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Beispiel #2
0
 public IcamaLookupResponseAPI Lookup(Icreportnumberlookupcriteria icreportnumberlookupcriteria)
 {
     return(this.adapter.Lookup(icreportnumberlookupcriteria));
 }