Esempio n. 1
0
        public AswlinquiryWLITOrderLineGetListResponseAPI WLITOrderLineGetList(Wlitorderlinecriteria wlitorderlinecriteria)
        {
            var result = new AswlinquiryWLITOrderLineGetListResponseAPI();

            var pdswlitorderlinecriteria = new pdswlitorderlinecriteriaDataSet();

            var pdswlitorderlineresults = new pdswlitorderlineresultsDataSet();

            DataRow ttblwlitorderlinecriteriaCriteria = pdswlitorderlinecriteria.ttblwlitorderlinecriteria.NewttblwlitorderlinecriteriaRow();

            Wlitorderlinecriteria.UpdateRowFromWlitorderlinecriteria(ref ttblwlitorderlinecriteriaCriteria, wlitorderlinecriteria);
            pdswlitorderlinecriteria.ttblwlitorderlinecriteria.AddttblwlitorderlinecriteriaRow((pdswlitorderlinecriteriaDataSet.ttblwlitorderlinecriteriaRow)ttblwlitorderlinecriteriaCriteria);

            string cErrorMessage = string.Empty;
            bool   lMoreRecords  = false;


            NLogLoggerP.Trace("WLITOrderLineGetList - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLITOrderLineGetList(ref pdsContext, pdswlitorderlinecriteria, out pdswlitorderlineresults, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("WLITOrderLineGetList - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdswlitorderlineresults.ttblwlitorderlineresults)
            {
                result.wlitorderlineresults.Add(Wlitorderlineresults.BuildWlitorderlineresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }