public Wlcsship WLCsShipRetrieve(int iOrderno, int iOrdersuf) { var result = new Wlcsship(); var pdswlcsship = new pdswlcsshipDataSet(); string cErrorMessage = string.Empty; NLogLoggerP.Trace("WLCsShipRetrieve - Aswlinquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy()) { this.SetRequiredContextParameters(); poAswlinquiryproxy.WLCsShipRetrieve(ref pdsContext, iOrderno, iOrdersuf, out pdswlcsship, out cErrorMessage); } }); NLogLoggerP.Info("WLCsShipRetrieve - Aswlinquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdswlcsship); if (pdswlcsship.ttblwlcsship.Count > 0) { result = Wlcsship.BuildWlcsshipFromRow(pdswlcsship.ttblwlcsship[0]); } return(result); }
public IEnumerable <Messaging> WLCsShipUpdate(Wlcsship wlcsship) { var results = new List <Messaging>(); var pdswlcsship = new pdswlcsshipDataSet(); var pdsmessaging = new pdsmessagingDataSet(); DataRow ttblwlcsshipCriteria = pdswlcsship.ttblwlcsship.NewttblwlcsshipRow(); Wlcsship.UpdateRowFromWlcsship(ref ttblwlcsshipCriteria, wlcsship); pdswlcsship.ttblwlcsship.AddttblwlcsshipRow((pdswlcsshipDataSet.ttblwlcsshipRow)ttblwlcsshipCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("WLCsShipUpdate - Aswlinquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy()) { this.SetRequiredContextParameters(); poAswlinquiryproxy.WLCsShipUpdate(ref pdsContext, pdswlcsship, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("WLCsShipUpdate - Aswlinquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdswlcsship); foreach (DataRow row in pdsmessaging.ttblmessaging) { results.Add(Messaging.BuildMessagingFromRow(row)); } return(results); }