public IEnumerable <Loadlotshistttresults> LoadLotsHistoryTT(Loadlotshistttcriteria loadlotshistttcriteria) { var results = new List <Loadlotshistttresults>(); var pdsloadlotshisttt = new pdsloadlotshistttDataSet(); DataRow ttblloadlotshistttcriteriaCriteria = pdsloadlotshisttt.ttblloadlotshistttcriteria.NewttblloadlotshistttcriteriaRow(); Loadlotshistttcriteria.UpdateRowFromLoadlotshistttcriteria(ref ttblloadlotshistttcriteriaCriteria, loadlotshistttcriteria); pdsloadlotshisttt.ttblloadlotshistttcriteria.AddttblloadlotshistttcriteriaRow((pdsloadlotshistttDataSet.ttblloadlotshistttcriteriaRow)ttblloadlotshistttcriteriaCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("LoadLotsHistoryTT - Asicwhseprod - Before Call"); StopwatchUtil.Time( () => { using (var poAsicwhseprodproxy = this.proxyAppObject.CreatePO_asicwhseprodproxy()) { this.SetRequiredContextParameters(); poAsicwhseprodproxy.LoadLotsHistoryTT(ref pdsContext, ref pdsloadlotshisttt, out cErrorMessage); } }); NLogLoggerP.Info("LoadLotsHistoryTT - Asicwhseprod - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsloadlotshisttt); foreach (DataRow row in pdsloadlotshisttt.ttblloadlotshistttresults) { results.Add(Loadlotshistttresults.BuildLoadlotshistttresultsFromRow(row)); } return(results); }
public IEnumerable <Loadlotshistttresults> LoadLotsHistoryTT(Loadlotshistttcriteria loadlotshistttcriteria) { return(this.repository.LoadLotsHistoryTT(loadlotshistttcriteria)); }