public AsotentryOTETTrackTotalUpdateResponseAPI OTETTrackTotalUpdate(AsotentryOTETTrackTotalUpdateRequestAPI AsotentryOTETTrackTotalUpdateRequestAPI) { var result = new AsotentryOTETTrackTotalUpdateResponseAPI(); var pdsotettrackdetail = new pdsotettrackdetailDataSet(); var pdsotaddons = new pdsotaddonsDataSet(); var pdsmessaging = new pdsmessagingDataSet(); string cErrorMessage = string.Empty; foreach (var obj in AsotentryOTETTrackTotalUpdateRequestAPI.otaddons) { DataRow ttblotaddonsRow = pdsotaddons.ttblotaddons.NewttblotaddonsRow(); Otaddons.UpdateRowFromOtaddons(ref ttblotaddonsRow, obj); pdsotaddons.ttblotaddons.AddttblotaddonsRow((pdsotaddonsDataSet.ttblotaddonsRow)ttblotaddonsRow); } DataRow ttblotettrackdetailRow = pdsotettrackdetail.ttblotettrackdetail.NewttblotettrackdetailRow(); Otettrackdetail.UpdateRowFromOtettrackdetail(ref ttblotettrackdetailRow, AsotentryOTETTrackTotalUpdateRequestAPI.otettrackdetail); pdsotettrackdetail.ttblotettrackdetail.AddttblotettrackdetailRow((pdsotettrackdetailDataSet.ttblotettrackdetailRow)ttblotettrackdetailRow); NLogLoggerP.Trace("OTETTrackTotalUpdate - Asotentry - Before Call"); StopwatchUtil.Time( () => { using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy()) { this.SetRequiredContextParameters(); poAsotentryproxy.OTETTrackTotalUpdate(ref pdsContext, ref pdsotettrackdetail, pdsotaddons, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("OTETTrackTotalUpdate - Asotentry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsotettrackdetail); foreach (DataRow row in pdsmessaging.ttblmessaging) { result.messaging.Add(Messaging.BuildMessagingFromRow(row)); } if (pdsotettrackdetail.ttblotettrackdetail.Count > 0) { result.otettrackdetail = Otettrackdetail.BuildOtettrackdetailFromRow(pdsotettrackdetail.ttblotettrackdetail[0]); } return(result); }
public Otettrackdetail OTETDeletePOLine(AsotentryOTETDeletePOLineRequestAPI AsotentryOTETDeletePOLineRequestAPI) { var result = new Otettrackdetail(); var pdsotettrackdetail = new pdsotettrackdetailDataSet(); string cErrorMessage = string.Empty; DataRow ttblotettrackdetailRow = pdsotettrackdetail.ttblotettrackdetail.NewttblotettrackdetailRow(); Otettrackdetail.UpdateRowFromOtettrackdetail(ref ttblotettrackdetailRow, AsotentryOTETDeletePOLineRequestAPI.otettrackdetail); pdsotettrackdetail.ttblotettrackdetail.AddttblotettrackdetailRow((pdsotettrackdetailDataSet.ttblotettrackdetailRow)ttblotettrackdetailRow); var iLineNo = AsotentryOTETDeletePOLineRequestAPI.iLineNo; NLogLoggerP.Trace("OTETDeletePOLine - Asotentry - Before Call"); StopwatchUtil.Time( () => { using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy()) { this.SetRequiredContextParameters(); poAsotentryproxy.OTETDeletePOLine(ref pdsContext, ref pdsotettrackdetail, iLineNo, out cErrorMessage); } }); NLogLoggerP.Info("OTETDeletePOLine - Asotentry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsotettrackdetail); if (pdsotettrackdetail.ttblotettrackdetail.Count > 0) { result = Otettrackdetail.BuildOtettrackdetailFromRow(pdsotettrackdetail.ttblotettrackdetail[0]); } return(result); }