Beispiel #1
0
        public IEnumerable <Loadwtlinehistoryresults> LoadWTLineHistory(Loadwtlinehistorycriteria loadwtlinehistorycriteria)
        {
            var results = new List <Loadwtlinehistoryresults>();

            var pdsloadwtlinehistory = new pdsloadwtlinehistoryDataSet();

            DataRow ttblloadwtlinehistorycriteriaCriteria = pdsloadwtlinehistory.ttblloadwtlinehistorycriteria.NewttblloadwtlinehistorycriteriaRow();

            Loadwtlinehistorycriteria.UpdateRowFromLoadwtlinehistorycriteria(ref ttblloadwtlinehistorycriteriaCriteria, loadwtlinehistorycriteria);
            pdsloadwtlinehistory.ttblloadwtlinehistorycriteria.AddttblloadwtlinehistorycriteriaRow((pdsloadwtlinehistoryDataSet.ttblloadwtlinehistorycriteriaRow)ttblloadwtlinehistorycriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("LoadWTLineHistory - Aswtinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtinquiryproxy = this.proxyAppObject.CreatePO_aswtinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtinquiryproxy.LoadWTLineHistory(ref pdsContext, ref pdsloadwtlinehistory, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("LoadWTLineHistory - Aswtinquiry - After Call");


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

            foreach (DataRow row in pdsloadwtlinehistory.ttblloadwtlinehistoryresults)
            {
                results.Add(Loadwtlinehistoryresults.BuildLoadwtlinehistoryresultsFromRow(row));
            }
            return(results);
        }
Beispiel #2
0
 public IEnumerable <Loadwtlinehistoryresults> LoadWTLineHistory(Loadwtlinehistorycriteria loadwtlinehistorycriteria)
 {
     return(this.repository.LoadWTLineHistory(loadwtlinehistorycriteria));
 }