public Otivvesselline OTEVAddVesselLine(int iVesselNo, int iTrackNo) { var result = new Otivvesselline(); var pdsotivvessellinelist = new pdsotivvessellinelistDataSet(); string cErrorMessage = string.Empty; NLogLoggerP.Trace("OTEVAddVesselLine - Asotentry - Before Call"); StopwatchUtil.Time( () => { using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy()) { this.SetRequiredContextParameters(); poAsotentryproxy.OTEVAddVesselLine(ref pdsContext, iVesselNo, iTrackNo, out pdsotivvessellinelist, out cErrorMessage); } }); NLogLoggerP.Info("OTEVAddVesselLine - Asotentry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsotivvessellinelist); if (pdsotivvessellinelist.ttblotivvesselline.Count > 0) { result = Otivvesselline.BuildOtivvessellineFromRow(pdsotivvessellinelist.ttblotivvesselline[0]); } return(result); }
public IEnumerable <Otivvesselline> OTIVBuildVesselLineList(int iVesselno) { var results = new List <Otivvesselline>(); var pdsotivvessellinelist = new pdsotivvessellinelistDataSet(); string cErrorMessage = string.Empty; NLogLoggerP.Trace("OTIVBuildVesselLineList - Asotinquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAsotinquiryproxy = this.proxyAppObject.CreatePO_asotinquiryproxy()) { this.SetRequiredContextParameters(); poAsotinquiryproxy.OTIVBuildVesselLineList(ref pdsContext, iVesselno, out pdsotivvessellinelist, out cErrorMessage); } }); NLogLoggerP.Info("OTIVBuildVesselLineList - Asotinquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsotivvessellinelist); foreach (DataRow row in pdsotivvessellinelist.ttblotivvesselline) { results.Add(Otivvesselline.BuildOtivvessellineFromRow(row)); } return(results); }