public AspoheaderPOHeaderFieldLeaveResponseAPI POHeaderFieldLeave(AspoheaderPOHeaderFieldLeaveRequestAPI AspoheaderPOHeaderFieldLeaveRequestAPI) { var result = new AspoheaderPOHeaderFieldLeaveResponseAPI(); var pdspohdr = new pdspohdrDataSet(); string cErrorMessage = string.Empty; string cWarningMessage = string.Empty; DataRow ttblpohdrRow = pdspohdr.ttblpohdr.NewttblpohdrRow(); Pohdr.UpdateRowFromPohdr(ref ttblpohdrRow, AspoheaderPOHeaderFieldLeaveRequestAPI.pohdr); pdspohdr.ttblpohdr.AddttblpohdrRow((pdspohdrDataSet.ttblpohdrRow)ttblpohdrRow); var cField = AspoheaderPOHeaderFieldLeaveRequestAPI.cField; NLogLoggerP.Trace("POHeaderFieldLeave - Aspoheader - Before Call"); StopwatchUtil.Time( () => { using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy()) { this.SetRequiredContextParameters(); poAspoheaderproxy.POHeaderFieldLeave(ref pdsContext, cField, ref pdspohdr, out cErrorMessage, out cWarningMessage); } }); NLogLoggerP.Info("POHeaderFieldLeave - Aspoheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdspohdr); if (pdspohdr.ttblpohdr.Count > 0) { result.pohdr = Pohdr.BuildPohdrFromRow(pdspohdr.ttblpohdr[0]); } result.cWarningMessage = cWarningMessage; return(result); }
public AspoheaderPOHeaderCreateResponseAPI POHeaderCreate(Pohdr pohdr) { var result = new AspoheaderPOHeaderCreateResponseAPI(); var pdspohdr = new pdspohdrDataSet(); var pdsmessaging = new pdsmessagingDataSet(); DataRow ttblpohdrCriteria = pdspohdr.ttblpohdr.NewttblpohdrRow(); Pohdr.UpdateRowFromPohdr(ref ttblpohdrCriteria, pohdr); pdspohdr.ttblpohdr.AddttblpohdrRow((pdspohdrDataSet.ttblpohdrRow)ttblpohdrCriteria); int iNewPONo = 0; string cErrorMessage = string.Empty; NLogLoggerP.Trace("POHeaderCreate - Aspoheader - Before Call"); StopwatchUtil.Time( () => { using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy()) { this.SetRequiredContextParameters(); poAspoheaderproxy.POHeaderCreate(ref pdsContext, pdspohdr, out pdsmessaging, out iNewPONo, out cErrorMessage); } }); NLogLoggerP.Info("POHeaderCreate - Aspoheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdspohdr); foreach (DataRow row in pdsmessaging.ttblmessaging) { result.messaging.Add(Messaging.BuildMessagingFromRow(row)); } result.iNewPONo = iNewPONo; return(result); }
public IEnumerable <Messaging> POHeaderUpdate(AspoheaderPOHeaderUpdateRequestAPI AspoheaderPOHeaderUpdateRequestAPI) { var results = new List <Messaging>(); var pdspohdr = new pdspohdrDataSet(); var pdsmessaging = new pdsmessagingDataSet(); string cErrorMessage = string.Empty; DataRow ttblpohdrRow = pdspohdr.ttblpohdr.NewttblpohdrRow(); Pohdr.UpdateRowFromPohdr(ref ttblpohdrRow, AspoheaderPOHeaderUpdateRequestAPI.pohdr); pdspohdr.ttblpohdr.AddttblpohdrRow((pdspohdrDataSet.ttblpohdrRow)ttblpohdrRow); var cType = AspoheaderPOHeaderUpdateRequestAPI.cType; NLogLoggerP.Trace("POHeaderUpdate - Aspoheader - Before Call"); StopwatchUtil.Time( () => { using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy()) { this.SetRequiredContextParameters(); poAspoheaderproxy.POHeaderUpdate(ref pdsContext, cType, pdspohdr, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("POHeaderUpdate - Aspoheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdspohdr); foreach (DataRow row in pdsmessaging.ttblmessaging) { results.Add(Messaging.BuildMessagingFromRow(row)); } return(results); }