Exemple #1
0
        public Sleeprodlistresults SLEEProductAddUpdate(AsslsetupSLEEProductAddUpdateRequestAPI AsslsetupSLEEProductAddUpdateRequestAPI)
        {
            var result = new Sleeprodlistresults();

            var pdssleeprodlistcriteria = new pdssleeprodlistcriteriaDataSet();

            var pdssleeproductfull = new pdssleeproductfullDataSet();

            var pdssleeprodlistresults = new pdssleeprodlistresultsDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblsleeprodlistcriteriaRow = pdssleeprodlistcriteria.ttblsleeprodlistcriteria.NewttblsleeprodlistcriteriaRow();

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

            DataRow ttblsleeproductfullRow = pdssleeproductfull.ttblsleeproductfull.NewttblsleeproductfullRow();

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


            NLogLoggerP.Trace("SLEEProductAddUpdate - Asslsetup - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsslsetupproxy = this.proxyAppObject.CreatePO_asslsetupproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsslsetupproxy.SLEEProductAddUpdate(ref pdsContext, pdssleeprodlistcriteria, pdssleeproductfull, out pdssleeprodlistresults, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("SLEEProductAddUpdate - 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);
        }
Exemple #2
0
 public Sleeprodlistresults SLEEProductAddUpdate(AsslsetupSLEEProductAddUpdateRequestAPI AsslsetupSLEEProductAddUpdateRequestAPI)
 {
     return(this.repository.SLEEProductAddUpdate(AsslsetupSLEEProductAddUpdateRequestAPI));
 }
Exemple #3
0
 public Sleeprodlistresults SLEEProductAddUpdate(AsslsetupSLEEProductAddUpdateRequestAPI AsslsetupSLEEProductAddUpdateRequestAPI)
 {
     return(this.adapter.SLEEProductAddUpdate(AsslsetupSLEEProductAddUpdateRequestAPI));
 }