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); }
public SaspLookupResponseAPI Lookup(Saprinterlookupcriteria saprinterlookupcriteria) { return(this.repository.Lookup(saprinterlookupcriteria)); }
public SaspLookupResponseAPI Lookup(Saprinterlookupcriteria saprinterlookupcriteria) { return(this.adapter.Lookup(saprinterlookupcriteria)); }