public Sleeproductfull SLEEProductAddPrepare() { var result = new Sleeproductfull(); var pdssleeproductfull = new pdssleeproductfullDataSet(); string cErrorMessage = string.Empty; NLogLoggerP.Trace("SLEEProductAddPrepare - Asslsetup - Before Call"); StopwatchUtil.Time( () => { using (var poAsslsetupproxy = this.proxyAppObject.CreatePO_asslsetupproxy()) { this.SetRequiredContextParameters(); poAsslsetupproxy.SLEEProductAddPrepare(ref pdsContext, out pdssleeproductfull, out cErrorMessage); } }); NLogLoggerP.Info("SLEEProductAddPrepare - Asslsetup - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdssleeproductfull); if (pdssleeproductfull.ttblsleeproductfull.Count > 0) { result = Sleeproductfull.BuildSleeproductfullFromRow(pdssleeproductfull.ttblsleeproductfull[0]); } return(result); }
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); }
public Sleeproductfull SLEEProductAddFieldChange(AsslsetupSLEEProductAddFieldChangeRequestAPI AsslsetupSLEEProductAddFieldChangeRequestAPI) { var result = new Sleeproductfull(); var pdssleeproductfull = new pdssleeproductfullDataSet(); string cErrorMessage = string.Empty; DataRow ttblsleeproductfullRow = pdssleeproductfull.ttblsleeproductfull.NewttblsleeproductfullRow(); Sleeproductfull.UpdateRowFromSleeproductfull(ref ttblsleeproductfullRow, AsslsetupSLEEProductAddFieldChangeRequestAPI.sleeproductfull); pdssleeproductfull.ttblsleeproductfull.AddttblsleeproductfullRow((pdssleeproductfullDataSet.ttblsleeproductfullRow)ttblsleeproductfullRow); var cFieldName = AsslsetupSLEEProductAddFieldChangeRequestAPI.cFieldName; NLogLoggerP.Trace("SLEEProductAddFieldChange - Asslsetup - Before Call"); StopwatchUtil.Time( () => { using (var poAsslsetupproxy = this.proxyAppObject.CreatePO_asslsetupproxy()) { this.SetRequiredContextParameters(); poAsslsetupproxy.SLEEProductAddFieldChange(ref pdsContext, cFieldName, ref pdssleeproductfull, out cErrorMessage); } }); NLogLoggerP.Info("SLEEProductAddFieldChange - Asslsetup - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdssleeproductfull); if (pdssleeproductfull.ttblsleeproductfull.Count > 0) { result = Sleeproductfull.BuildSleeproductfullFromRow(pdssleeproductfull.ttblsleeproductfull[0]); } return(result); }