Esempio n. 1
0
        public SaspLookupResponseAPI Lookup(Saprinterlookupcriteria saprinterlookupcriteria)
        {
            var result = new SaspLookupResponseAPI();

            var pdssaprinterlookup = new pdssaprinterlookupDataSet();

            DataRow ttblsaprinterlookupcriteriaCriteria = pdssaprinterlookup.ttblsaprinterlookupcriteria.NewttblsaprinterlookupcriteriaRow();

            Saprinterlookupcriteria.UpdateRowFromSaprinterlookupcriteria(ref ttblsaprinterlookupcriteriaCriteria, saprinterlookupcriteria);
            pdssaprinterlookup.ttblsaprinterlookupcriteria.AddttblsaprinterlookupcriteriaRow((pdssaprinterlookupDataSet.ttblsaprinterlookupcriteriaRow)ttblsaprinterlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Sasp - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poSaspproxy = this.proxyAppObject.CreatePO_saspproxy())
                {
                    this.SetRequiredContextParameters();
                    poSaspproxy.Lookup(ref pdsContext, ref pdssaprinterlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Sasp - After Call");


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

            foreach (DataRow row in pdssaprinterlookup.ttblsaprinterlookupresults)
            {
                result.saprinterlookupresults.Add(Saprinterlookupresults.BuildSaprinterlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Esempio n. 2
0
 public SaspLookupResponseAPI Lookup(Saprinterlookupcriteria saprinterlookupcriteria)
 {
     return(this.repository.Lookup(saprinterlookupcriteria));
 }
Esempio n. 3
0
 public SaspLookupResponseAPI Lookup(Saprinterlookupcriteria saprinterlookupcriteria)
 {
     return(this.adapter.Lookup(saprinterlookupcriteria));
 }