public IcsdLookupResponseAPI Lookup(Warehouselookupcriteria warehouselookupcriteria) { var result = new IcsdLookupResponseAPI(); var pdswarehouselookup = new pdswarehouselookupDataSet(); DataRow ttblwarehouselookupcriteriaCriteria = pdswarehouselookup.ttblwarehouselookupcriteria.NewttblwarehouselookupcriteriaRow(); Warehouselookupcriteria.UpdateRowFromWarehouselookupcriteria(ref ttblwarehouselookupcriteriaCriteria, warehouselookupcriteria); pdswarehouselookup.ttblwarehouselookupcriteria.AddttblwarehouselookupcriteriaRow((pdswarehouselookupDataSet.ttblwarehouselookupcriteriaRow)ttblwarehouselookupcriteriaCriteria); string cErrorMessage = string.Empty; bool lMoreRecords = false; NLogLoggerP.Trace("Lookup - Icsd - Before Call"); StopwatchUtil.Time( () => { using (var poIcsdproxy = this.proxyAppObject.CreatePO_icsdproxy()) { this.SetRequiredContextParameters(); poIcsdproxy.Lookup(ref pdsContext, ref pdswarehouselookup, out cErrorMessage, out lMoreRecords); } }); NLogLoggerP.Info("Lookup - Icsd - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdswarehouselookup); foreach (DataRow row in pdswarehouselookup.ttblwarehouselookupresults) { result.warehouselookupresults.Add(Warehouselookupresults.BuildWarehouselookupresultsFromRow(row)); } result.lMoreRecords = lMoreRecords; return(result); }
public IcsdLookupResponseAPI Lookup(Warehouselookupcriteria warehouselookupcriteria) { return(this.repository.Lookup(warehouselookupcriteria)); }
public IcsdLookupResponseAPI Lookup(Warehouselookupcriteria warehouselookupcriteria) { return(this.adapter.Lookup(warehouselookupcriteria)); }