Exemplo n.º 1
0
        public Loadpoheaderresults LoadPOHeader(Loadpoheadercriteria loadpoheadercriteria)
        {
            var result = new Loadpoheaderresults();

            var pdsloadpoheader = new pdsloadpoheaderDataSet();

            DataRow ttblloadpoheadercriteriaCriteria = pdsloadpoheader.ttblloadpoheadercriteria.NewttblloadpoheadercriteriaRow();

            Loadpoheadercriteria.UpdateRowFromLoadpoheadercriteria(ref ttblloadpoheadercriteriaCriteria, loadpoheadercriteria);
            pdsloadpoheader.ttblloadpoheadercriteria.AddttblloadpoheadercriteriaRow((pdsloadpoheaderDataSet.ttblloadpoheadercriteriaRow)ttblloadpoheadercriteriaCriteria);

            string cErrorMessage = string.Empty;


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


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

            if (pdsloadpoheader.ttblloadpoheaderresults.Count > 0)
            {
                result = Loadpoheaderresults.BuildLoadpoheaderresultsFromRow(pdsloadpoheader.ttblloadpoheaderresults[0]);
            }


            return(result);
        }
Exemplo n.º 2
0
 public Loadpoheaderresults LoadPOHeader(Loadpoheadercriteria loadpoheadercriteria)
 {
     return(this.repository.LoadPOHeader(loadpoheadercriteria));
 }
Exemplo n.º 3
0
 public Loadpoheaderresults LoadPOHeader(Loadpoheadercriteria loadpoheadercriteria)
 {
     return(this.adapter.LoadPOHeader(loadpoheadercriteria));
 }