public AspoheaderPOOrderCopyUpdateResponseAPI POOrderCopyUpdate(Poordercopy poordercopy) { var result = new AspoheaderPOOrderCopyUpdateResponseAPI(); var pdspoordercopy = new pdspoordercopyDataSet(); var pdsmessaging = new pdsmessagingDataSet(); DataRow ttblpoordercopyCriteria = pdspoordercopy.ttblpoordercopy.NewttblpoordercopyRow(); Poordercopy.UpdateRowFromPoordercopy(ref ttblpoordercopyCriteria, poordercopy); pdspoordercopy.ttblpoordercopy.AddttblpoordercopyRow((pdspoordercopyDataSet.ttblpoordercopyRow)ttblpoordercopyCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("POOrderCopyUpdate - Aspoheader - Before Call"); StopwatchUtil.Time( () => { using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy()) { this.SetRequiredContextParameters(); poAspoheaderproxy.POOrderCopyUpdate(ref pdsContext, ref pdspoordercopy, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("POOrderCopyUpdate - Aspoheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdspoordercopy); foreach (DataRow row in pdsmessaging.ttblmessaging) { result.messaging.Add(Messaging.BuildMessagingFromRow(row)); } if (pdspoordercopy.ttblpoordercopy.Count > 0) { result.poordercopy = Poordercopy.BuildPoordercopyFromRow(pdspoordercopy.ttblpoordercopy[0]); } return(result); }
public AspoheaderPOOrderCopyFieldLeaveResponseAPI POOrderCopyFieldLeave(AspoheaderPOOrderCopyFieldLeaveRequestAPI AspoheaderPOOrderCopyFieldLeaveRequestAPI) { var result = new AspoheaderPOOrderCopyFieldLeaveResponseAPI(); var pdspoordercopy = new pdspoordercopyDataSet(); string cErrorMessage = string.Empty; string cWarningMessage = string.Empty; DataRow ttblpoordercopyRow = pdspoordercopy.ttblpoordercopy.NewttblpoordercopyRow(); Poordercopy.UpdateRowFromPoordercopy(ref ttblpoordercopyRow, AspoheaderPOOrderCopyFieldLeaveRequestAPI.poordercopy); pdspoordercopy.ttblpoordercopy.AddttblpoordercopyRow((pdspoordercopyDataSet.ttblpoordercopyRow)ttblpoordercopyRow); var cField = AspoheaderPOOrderCopyFieldLeaveRequestAPI.cField; NLogLoggerP.Trace("POOrderCopyFieldLeave - Aspoheader - Before Call"); StopwatchUtil.Time( () => { using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy()) { this.SetRequiredContextParameters(); poAspoheaderproxy.POOrderCopyFieldLeave(ref pdsContext, cField, ref pdspoordercopy, out cErrorMessage, out cWarningMessage); } }); NLogLoggerP.Info("POOrderCopyFieldLeave - Aspoheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdspoordercopy); if (pdspoordercopy.ttblpoordercopy.Count > 0) { result.poordercopy = Poordercopy.BuildPoordercopyFromRow(pdspoordercopy.ttblpoordercopy[0]); } result.cWarningMessage = cWarningMessage; return(result); }