public static OnTimeIssues GetOnTimeIssues() { // OnTimeIssues issues = null; try { _Client = new RoadshowServiceClient(); issues = _Client.GetOnTimeIssues(); _Client.Close(); } catch (FaultException fe) { throw new ApplicationException("GetOnTimeIssues() service error.", fe); } catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetOnTimeIssues() timeout error.", te); } catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetOnTimeIssues() communication error.", ce); } return(issues); }
public OnTimeIssues GetOnTimeIssues() { // OnTimeIssues issues = null; try { issues = new OnTimeIssues(); DataSet ds = fillDataset(USP_ONTIMEISSUES, TBL_ONTIMEISSUES, new object[] { }); if (ds != null) { RoadshowDS _issues = new RoadshowDS(); _issues.OnTimeIssueTable.Merge(ds.Tables[TBL_ONTIMEISSUES]); for (int i = 0; i < _issues.OnTimeIssueTable.Rows.Count; i++) { issues.Add(new OnTimeIssue(_issues.OnTimeIssueTable[i])); } } } catch (Exception ex) { throw new ApplicationException("Unexpected error while reading on time issues.", ex); } return(issues); }