Beispiel #1
0
        public AspoinquiryLoadPOQuickViewTiesResponseAPI LoadPOQuickViewTies(Loadpoquickviewtiescriteria loadpoquickviewtiescriteria)
        {
            var result = new AspoinquiryLoadPOQuickViewTiesResponseAPI();

            var pdsloadpoquickviewties = new pdsloadpoquickviewtiesDataSet();

            DataRow ttblloadpoquickviewtiescriteriaCriteria = pdsloadpoquickviewties.ttblloadpoquickviewtiescriteria.NewttblloadpoquickviewtiescriteriaRow();

            Loadpoquickviewtiescriteria.UpdateRowFromLoadpoquickviewtiescriteria(ref ttblloadpoquickviewtiescriteriaCriteria, loadpoquickviewtiescriteria);
            pdsloadpoquickviewties.ttblloadpoquickviewtiescriteria.AddttblloadpoquickviewtiescriteriaRow((pdsloadpoquickviewtiesDataSet.ttblloadpoquickviewtiescriteriaRow)ttblloadpoquickviewtiescriteriaCriteria);

            string cErrorMessage = string.Empty;


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


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

            foreach (DataRow row in pdsloadpoquickviewties.ttblloadpoquickviewtiesresults)
            {
                result.loadpoquickviewtiesresults.Add(Loadpoquickviewtiesresults.BuildLoadpoquickviewtiesresultsFromRow(row));
            }
            if (pdsloadpoquickviewties.ttblloadpoquickviewtiessingle.Count > 0)
            {
                result.loadpoquickviewtiessingle = Loadpoquickviewtiessingle.BuildLoadpoquickviewtiessingleFromRow(pdsloadpoquickviewties.ttblloadpoquickviewtiessingle[0]);
            }


            return(result);
        }
Beispiel #2
0
 public AspoinquiryLoadPOQuickViewTiesResponseAPI LoadPOQuickViewTies(Loadpoquickviewtiescriteria loadpoquickviewtiescriteria)
 {
     return(this.repository.LoadPOQuickViewTies(loadpoquickviewtiescriteria));
 }