public AsvalineVALineLeaveFieldResponseAPI VALineLeaveField(AsvalineVALineLeaveFieldRequestAPI AsvalineVALineLeaveFieldRequestAPI) { var result = new AsvalineVALineLeaveFieldResponseAPI(); var pdsvalineaddchg = new pdsvalineaddchgDataSet(); string cWarningMessage = string.Empty; string cErrorMessage = string.Empty; DataRow ttblvalineaddchgRow = pdsvalineaddchg.ttblvalineaddchg.NewttblvalineaddchgRow(); Valineaddchg.UpdateRowFromValineaddchg(ref ttblvalineaddchgRow, AsvalineVALineLeaveFieldRequestAPI.valineaddchg); pdsvalineaddchg.ttblvalineaddchg.AddttblvalineaddchgRow((pdsvalineaddchgDataSet.ttblvalineaddchgRow)ttblvalineaddchgRow); var pvFunctionnm = AsvalineVALineLeaveFieldRequestAPI.pvFunctionnm; var pvFieldname = AsvalineVALineLeaveFieldRequestAPI.pvFieldname; NLogLoggerP.Trace("VALineLeaveField - Asvaline - Before Call"); StopwatchUtil.Time( () => { using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy()) { this.SetRequiredContextParameters(); poAsvalineproxy.VALineLeaveField(ref pdsContext, pvFunctionnm, pvFieldname, ref pdsvalineaddchg, out cWarningMessage, out cErrorMessage); } }); NLogLoggerP.Info("VALineLeaveField - Asvaline - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsvalineaddchg); if (pdsvalineaddchg.ttblvalineaddchg.Count > 0) { result.valineaddchg = Valineaddchg.BuildValineaddchgFromRow(pdsvalineaddchg.ttblvalineaddchg[0]); } result.cWarningMessage = cWarningMessage; return(result); }
public AsvalineVALineAddResponseAPI VALineAdd(AsvalineVALineAddRequestAPI AsvalineVALineAddRequestAPI) { var result = new AsvalineVALineAddResponseAPI(); var pdsvalineaddchg = new pdsvalineaddchgDataSet(); var pdsvalinelist = new pdsvalinelistDataSet(); var pdsmessaging = new pdsmessagingDataSet(); string cErrorMessage = string.Empty; DataRow ttblvalineaddchgRow = pdsvalineaddchg.ttblvalineaddchg.NewttblvalineaddchgRow(); Valineaddchg.UpdateRowFromValineaddchg(ref ttblvalineaddchgRow, AsvalineVALineAddRequestAPI.valineaddchg); pdsvalineaddchg.ttblvalineaddchg.AddttblvalineaddchgRow((pdsvalineaddchgDataSet.ttblvalineaddchgRow)ttblvalineaddchgRow); var pvFunctionnm = AsvalineVALineAddRequestAPI.pvFunctionnm; var pvVano = AsvalineVALineAddRequestAPI.pvVano; var pvVasuf = AsvalineVALineAddRequestAPI.pvVasuf; var pvSeqno = AsvalineVALineAddRequestAPI.pvSeqno; NLogLoggerP.Trace("VALineAdd - Asvaline - Before Call"); StopwatchUtil.Time( () => { using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy()) { this.SetRequiredContextParameters(); poAsvalineproxy.VALineAdd(ref pdsContext, pvFunctionnm, pvVano, pvVasuf, pvSeqno, ref pdsvalineaddchg, out pdsvalinelist, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("VALineAdd - Asvaline - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsvalineaddchg); foreach (DataRow row in pdsmessaging.ttblmessaging) { result.messaging.Add(Messaging.BuildMessagingFromRow(row)); } if (pdsvalineaddchg.ttblvalineaddchg.Count > 0) { result.valineaddchg = Valineaddchg.BuildValineaddchgFromRow(pdsvalineaddchg.ttblvalineaddchg[0]); } if (pdsvalinelist.ttblvalinelistcriteria.Count > 0) { result.valinelistcriteria = Valinelistcriteria.BuildValinelistcriteriaFromRow(pdsvalinelist.ttblvalinelistcriteria[0]); } foreach (DataRow row in pdsvalinelist.ttblvalinelistresults) { result.valinelistresults.Add(Valinelistresults.BuildValinelistresultsFromRow(row)); } return(result); }