public Apsvaddtoken APSVDeleteToken(decimal pvVendno) { var result = new Apsvaddtoken(); var pdsapsvaddtoken = new pdsapsvaddtokenDataSet(); string cErrorMessage = string.Empty; NLogLoggerP.Trace("APSVDeleteToken - Asapsetup - Before Call"); StopwatchUtil.Time( () => { using (var poAsapsetupproxy = this.proxyAppObject.CreatePO_asapsetupproxy()) { this.SetRequiredContextParameters(); poAsapsetupproxy.APSVDeleteToken(ref pdsContext, pvVendno, out pdsapsvaddtoken, out cErrorMessage); } }); NLogLoggerP.Info("APSVDeleteToken - Asapsetup - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsapsvaddtoken); if (pdsapsvaddtoken.ttblapsvaddtoken.Count > 0) { result = Apsvaddtoken.BuildApsvaddtokenFromRow(pdsapsvaddtoken.ttblapsvaddtoken[0]); } return(result); }
public Apsvaddtoken APSVUnscrambleAcct(Apsvaddtoken apsvaddtoken) { var result = new Apsvaddtoken(); var pdsapsvaddtoken = new pdsapsvaddtokenDataSet(); DataRow ttblapsvaddtokenCriteria = pdsapsvaddtoken.ttblapsvaddtoken.NewttblapsvaddtokenRow(); Apsvaddtoken.UpdateRowFromApsvaddtoken(ref ttblapsvaddtokenCriteria, apsvaddtoken); pdsapsvaddtoken.ttblapsvaddtoken.AddttblapsvaddtokenRow((pdsapsvaddtokenDataSet.ttblapsvaddtokenRow)ttblapsvaddtokenCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("APSVUnscrambleAcct - Asapsetup - Before Call"); StopwatchUtil.Time( () => { using (var poAsapsetupproxy = this.proxyAppObject.CreatePO_asapsetupproxy()) { this.SetRequiredContextParameters(); poAsapsetupproxy.APSVUnscrambleAcct(ref pdsContext, ref pdsapsvaddtoken, out cErrorMessage); } }); NLogLoggerP.Info("APSVUnscrambleAcct - Asapsetup - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsapsvaddtoken); if (pdsapsvaddtoken.ttblapsvaddtoken.Count > 0) { result = Apsvaddtoken.BuildApsvaddtokenFromRow(pdsapsvaddtoken.ttblapsvaddtoken[0]); } return(result); }