Exemple #1
0
        public AspoinquiryPOBundlesLoadResponseAPI POBundlesLoad(Pobundlescriteria pobundlescriteria)
        {
            var result = new AspoinquiryPOBundlesLoadResponseAPI();

            var pdspobundles = new pdspobundlesDataSet();

            DataRow ttblpobundlescriteriaCriteria = pdspobundles.ttblpobundlescriteria.NewttblpobundlescriteriaRow();

            Pobundlescriteria.UpdateRowFromPobundlescriteria(ref ttblpobundlescriteriaCriteria, pobundlescriteria);
            pdspobundles.ttblpobundlescriteria.AddttblpobundlescriteriaRow((pdspobundlesDataSet.ttblpobundlescriteriaRow)ttblpobundlescriteriaCriteria);

            string cErrorMessage = string.Empty;


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


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

            if (pdspobundles.ttblpobundlescontrol.Count > 0)
            {
                result.pobundlescontrol = Pobundlescontrol.BuildPobundlescontrolFromRow(pdspobundles.ttblpobundlescontrol[0]);
            }

            if (pdspobundles.ttblpobundlescriteria.Count > 0)
            {
                result.pobundlescriteria = Pobundlescriteria.BuildPobundlescriteriaFromRow(pdspobundles.ttblpobundlescriteria[0]);
            }

            foreach (DataRow row in pdspobundles.ttblpobundlesresults)
            {
                result.pobundlesresults.Add(Pobundlesresults.BuildPobundlesresultsFromRow(row));
            }

            return(result);
        }
Exemple #2
0
 public AspoinquiryPOBundlesLoadResponseAPI POBundlesLoad(Pobundlescriteria pobundlescriteria)
 {
     return(this.repository.POBundlesLoad(pobundlescriteria));
 }
Exemple #3
0
 public AspoinquiryPOBundlesLoadResponseAPI POBundlesLoad(Pobundlescriteria pobundlescriteria)
 {
     return(this.adapter.POBundlesLoad(pobundlescriteria));
 }