Exemplo n.º 1
0
        public IcsecLookupCustomerReferenceResponseAPI LookupCustomerReference(Icxrefcustlookupcriteria icxrefcustlookupcriteria)
        {
            var result = new IcsecLookupCustomerReferenceResponseAPI();

            var pdsicxrefcustlookup = new pdsicxrefcustlookupDataSet();

            DataRow ttblicxrefcustlookupcriteriaCriteria = pdsicxrefcustlookup.ttblicxrefcustlookupcriteria.NewttblicxrefcustlookupcriteriaRow();

            Icxrefcustlookupcriteria.UpdateRowFromIcxrefcustlookupcriteria(ref ttblicxrefcustlookupcriteriaCriteria, icxrefcustlookupcriteria);
            pdsicxrefcustlookup.ttblicxrefcustlookupcriteria.AddttblicxrefcustlookupcriteriaRow((pdsicxrefcustlookupDataSet.ttblicxrefcustlookupcriteriaRow)ttblicxrefcustlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("LookupCustomerReference - Icsec - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poIcsecproxy = this.proxyAppObject.CreatePO_icsecproxy())
                {
                    this.SetRequiredContextParameters();
                    poIcsecproxy.LookupCustomerReference(ref pdsContext, ref pdsicxrefcustlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("LookupCustomerReference - Icsec - After Call");


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

            foreach (DataRow row in pdsicxrefcustlookup.ttblicxrefcustlookupresults)
            {
                result.icxrefcustlookupresults.Add(Icxrefcustlookupresults.BuildIcxrefcustlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Exemplo n.º 2
0
 public IcsecLookupCustomerReferenceResponseAPI LookupCustomerReference(Icxrefcustlookupcriteria icxrefcustlookupcriteria)
 {
     return(this.repository.LookupCustomerReference(icxrefcustlookupcriteria));
 }