Example #1
0
        public IEnumerable <Loadpolinehistoryresults> LoadPOLineHistory(Loadpolinehistorycriteria loadpolinehistorycriteria)
        {
            var results = new List <Loadpolinehistoryresults>();

            var pdsloadpolinehistory = new pdsloadpolinehistoryDataSet();

            DataRow ttblloadpolinehistorycriteriaCriteria = pdsloadpolinehistory.ttblloadpolinehistorycriteria.NewttblloadpolinehistorycriteriaRow();

            Loadpolinehistorycriteria.UpdateRowFromLoadpolinehistorycriteria(ref ttblloadpolinehistorycriteriaCriteria, loadpolinehistorycriteria);
            pdsloadpolinehistory.ttblloadpolinehistorycriteria.AddttblloadpolinehistorycriteriaRow((pdsloadpolinehistoryDataSet.ttblloadpolinehistorycriteriaRow)ttblloadpolinehistorycriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("LoadPOLineHistory - Aspoinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspoinquiryproxy = this.proxyAppObject.CreatePO_aspoinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspoinquiryproxy.LoadPOLineHistory(ref pdsContext, ref pdsloadpolinehistory, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("LoadPOLineHistory - Aspoinquiry - After Call");


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

            foreach (DataRow row in pdsloadpolinehistory.ttblloadpolinehistoryresults)
            {
                results.Add(Loadpolinehistoryresults.BuildLoadpolinehistoryresultsFromRow(row));
            }
            return(results);
        }
Example #2
0
 public IEnumerable <Loadpolinehistoryresults> LoadPOLineHistory(Loadpolinehistorycriteria loadpolinehistorycriteria)
 {
     return(this.repository.LoadPOLineHistory(loadpolinehistorycriteria));
 }