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 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); }