示例#1
0
        public Sleeprodlistresults SLEEProductFullUpdate(AsslsetupSLEEProductFullUpdateRequestAPI AsslsetupSLEEProductFullUpdateRequestAPI)
        {
            var result = new Sleeprodlistresults();

            var pdssleeprodlistcriteria = new pdssleeprodlistcriteriaDataSet();

            var pdssleeprodlistresults = new pdssleeprodlistresultsDataSet();

            var pdssleeproductfull = new pdssleeproductfullDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblsleeprodlistcriteriaRow = pdssleeprodlistcriteria.ttblsleeprodlistcriteria.NewttblsleeprodlistcriteriaRow();

            Sleeprodlistcriteria.UpdateRowFromSleeprodlistcriteria(ref ttblsleeprodlistcriteriaRow, AsslsetupSLEEProductFullUpdateRequestAPI.sleeprodlistcriteria);
            pdssleeprodlistcriteria.ttblsleeprodlistcriteria.AddttblsleeprodlistcriteriaRow((pdssleeprodlistcriteriaDataSet.ttblsleeprodlistcriteriaRow)ttblsleeprodlistcriteriaRow);

            DataRow ttblsleeprodlistresultsRow = pdssleeprodlistresults.ttblsleeprodlistresults.NewttblsleeprodlistresultsRow();

            Sleeprodlistresults.UpdateRowFromSleeprodlistresults(ref ttblsleeprodlistresultsRow, AsslsetupSLEEProductFullUpdateRequestAPI.sleeprodlistresults);
            pdssleeprodlistresults.ttblsleeprodlistresults.AddttblsleeprodlistresultsRow((pdssleeprodlistresultsDataSet.ttblsleeprodlistresultsRow)ttblsleeprodlistresultsRow);

            DataRow ttblsleeproductfullRow = pdssleeproductfull.ttblsleeproductfull.NewttblsleeproductfullRow();

            Sleeproductfull.UpdateRowFromSleeproductfull(ref ttblsleeproductfullRow, AsslsetupSLEEProductFullUpdateRequestAPI.sleeproductfull);
            pdssleeproductfull.ttblsleeproductfull.AddttblsleeproductfullRow((pdssleeproductfullDataSet.ttblsleeproductfullRow)ttblsleeproductfullRow);


            NLogLoggerP.Trace("SLEEProductFullUpdate - Asslsetup - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsslsetupproxy = this.proxyAppObject.CreatePO_asslsetupproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsslsetupproxy.SLEEProductFullUpdate(ref pdsContext, pdssleeprodlistcriteria, ref pdssleeprodlistresults, pdssleeproductfull, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("SLEEProductFullUpdate - Asslsetup - After Call");


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

            if (pdssleeprodlistresults.ttblsleeprodlistresults.Count > 0)
            {
                result = Sleeprodlistresults.BuildSleeprodlistresultsFromRow(pdssleeprodlistresults.ttblsleeprodlistresults[0]);
            }


            return(result);
        }
示例#2
0
        public AsslsetupSLEEGetProductListResponseAPI SLEEGetProductList(Sleeprodlistcriteria sleeprodlistcriteria)
        {
            var result = new AsslsetupSLEEGetProductListResponseAPI();

            var pdssleeprodlistcriteria = new pdssleeprodlistcriteriaDataSet();

            var pdssleeprodlistresults = new pdssleeprodlistresultsDataSet();

            DataRow ttblsleeprodlistcriteriaCriteria = pdssleeprodlistcriteria.ttblsleeprodlistcriteria.NewttblsleeprodlistcriteriaRow();

            Sleeprodlistcriteria.UpdateRowFromSleeprodlistcriteria(ref ttblsleeprodlistcriteriaCriteria, sleeprodlistcriteria);
            pdssleeprodlistcriteria.ttblsleeprodlistcriteria.AddttblsleeprodlistcriteriaRow((pdssleeprodlistcriteriaDataSet.ttblsleeprodlistcriteriaRow)ttblsleeprodlistcriteriaCriteria);

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


            NLogLoggerP.Trace("SLEEGetProductList - Asslsetup - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsslsetupproxy = this.proxyAppObject.CreatePO_asslsetupproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsslsetupproxy.SLEEGetProductList(ref pdsContext, pdssleeprodlistcriteria, out pdssleeprodlistresults, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("SLEEGetProductList - Asslsetup - After Call");


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

            foreach (DataRow row in pdssleeprodlistresults.ttblsleeprodlistresults)
            {
                result.sleeprodlistresults.Add(Sleeprodlistresults.BuildSleeprodlistresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }