public Vaheadercopy VAHeaderCopyRetrieve(int pvVano, int pvVasuf) { var result = new Vaheadercopy(); var pdsvaheadercopy = new pdsvaheadercopyDataSet(); string cErrorMessage = string.Empty; NLogLoggerP.Trace("VAHeaderCopyRetrieve - Asvaheader - Before Call"); StopwatchUtil.Time( () => { using (var poAsvaheaderproxy = this.proxyAppObject.CreatePO_asvaheaderproxy()) { this.SetRequiredContextParameters(); poAsvaheaderproxy.VAHeaderCopyRetrieve(ref pdsContext, pvVano, pvVasuf, out pdsvaheadercopy, out cErrorMessage); } }); NLogLoggerP.Info("VAHeaderCopyRetrieve - Asvaheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsvaheadercopy); if (pdsvaheadercopy.ttblvaheadercopy.Count > 0) { result = Vaheadercopy.BuildVaheadercopyFromRow(pdsvaheadercopy.ttblvaheadercopy[0]); } return(result); }
public AsvaheaderVAHeaderCopyCreateResponseAPI VAHeaderCopyCreate(Vaheadercopy vaheadercopy) { var result = new AsvaheaderVAHeaderCopyCreateResponseAPI(); var pdsvaheadercopy = new pdsvaheadercopyDataSet(); var pdsmessaging = new pdsmessagingDataSet(); DataRow ttblvaheadercopyCriteria = pdsvaheadercopy.ttblvaheadercopy.NewttblvaheadercopyRow(); Vaheadercopy.UpdateRowFromVaheadercopy(ref ttblvaheadercopyCriteria, vaheadercopy); pdsvaheadercopy.ttblvaheadercopy.AddttblvaheadercopyRow((pdsvaheadercopyDataSet.ttblvaheadercopyRow)ttblvaheadercopyCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("VAHeaderCopyCreate - Asvaheader - Before Call"); StopwatchUtil.Time( () => { using (var poAsvaheaderproxy = this.proxyAppObject.CreatePO_asvaheaderproxy()) { this.SetRequiredContextParameters(); poAsvaheaderproxy.VAHeaderCopyCreate(ref pdsContext, ref pdsvaheadercopy, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("VAHeaderCopyCreate - Asvaheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsvaheadercopy); foreach (DataRow row in pdsmessaging.ttblmessaging) { result.messaging.Add(Messaging.BuildMessagingFromRow(row)); } if (pdsvaheadercopy.ttblvaheadercopy.Count > 0) { result.vaheadercopy = Vaheadercopy.BuildVaheadercopyFromRow(pdsvaheadercopy.ttblvaheadercopy[0]); } return(result); }
public Vaheadercopy VAHeaderCopyLeaveField(AsvaheaderVAHeaderCopyLeaveFieldRequestAPI AsvaheaderVAHeaderCopyLeaveFieldRequestAPI) { var result = new Vaheadercopy(); var pdsvaheadercopy = new pdsvaheadercopyDataSet(); string cErrorMessage = string.Empty; DataRow ttblvaheadercopyRow = pdsvaheadercopy.ttblvaheadercopy.NewttblvaheadercopyRow(); Vaheadercopy.UpdateRowFromVaheadercopy(ref ttblvaheadercopyRow, AsvaheaderVAHeaderCopyLeaveFieldRequestAPI.vaheadercopy); pdsvaheadercopy.ttblvaheadercopy.AddttblvaheadercopyRow((pdsvaheadercopyDataSet.ttblvaheadercopyRow)ttblvaheadercopyRow); var pvFieldname = AsvaheaderVAHeaderCopyLeaveFieldRequestAPI.pvFieldname; NLogLoggerP.Trace("VAHeaderCopyLeaveField - Asvaheader - Before Call"); StopwatchUtil.Time( () => { using (var poAsvaheaderproxy = this.proxyAppObject.CreatePO_asvaheaderproxy()) { this.SetRequiredContextParameters(); poAsvaheaderproxy.VAHeaderCopyLeaveField(ref pdsContext, pvFieldname, ref pdsvaheadercopy, out cErrorMessage); } }); NLogLoggerP.Info("VAHeaderCopyLeaveField - Asvaheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsvaheadercopy); if (pdsvaheadercopy.ttblvaheadercopy.Count > 0) { result = Vaheadercopy.BuildVaheadercopyFromRow(pdsvaheadercopy.ttblvaheadercopy[0]); } return(result); }
public AsvaheaderVAHeaderCopyCreateResponseAPI VAHeaderCopyCreate(Vaheadercopy vaheadercopy) { return(this.repository.VAHeaderCopyCreate(vaheadercopy)); }
public AsvaheaderVAHeaderCopyCreateResponseAPI VAHeaderCopyCreate(Vaheadercopy vaheadercopy) { return(this.adapter.VAHeaderCopyCreate(vaheadercopy)); }