public DataSet GetAgentSummary2(int terminalID) { //Get an agent summary view for the specified terminal DataSet tls = null; try { tls = new DataSet(); DataSet ds = new TLViewerGateway().GetAgentSummary(terminalID); if (ds != null) { tls.Merge(ds); } } catch (Exception ex) { throw new FaultException <TLViewerFault>(new TLViewerFault(ex.Message), "Service Error"); } return(tls); }
public DataSet GetTLDetail2(int terminalID, string tlNumber) { //Get TL detail for the specified TL# DataSet tls = null; try { tls = new DataSet(); DataSet ds = new TLViewerGateway().GetTLDetail(terminalID, tlNumber); if (ds != null) { tls.Merge(ds); } } catch (Exception ex) { throw new FaultException <TLViewerFault>(new TLViewerFault(ex.Message), "Service Error"); } return(tls); }
public DataSet GetTerminals2() { //Returns a list of terminals DataSet terminals = null; try { terminals = new DataSet(); DataSet ds = new TLViewerGateway().GetTerminals(); if (ds != null) { terminals.Merge(ds); } } catch (Exception ex) { throw new FaultException <TLViewerFault>(new TLViewerFault(ex.Message), "Service Error"); } return(terminals); }
public Argix.Enterprise.Terminals GetTerminals() { //Returns a list of terminals Argix.Enterprise.Terminals terminals = null; try { terminals = new Argix.Enterprise.Terminals(); DataSet ds = new TLViewerGateway().GetTerminals(); if (ds != null) { EnterpriseDataset tDS = new EnterpriseDataset(); tDS.Merge(ds); for (int i = 0; i < tDS.TerminalTable.Rows.Count; i++) { Argix.Enterprise.Terminal terminal = new Argix.Enterprise.Terminal(tDS.TerminalTable[i]); terminals.Add(terminal); } } } catch (Exception ex) { throw new ApplicationException(ex.Message, ex); } return(terminals); }
public TLs GetTLDetail(int terminalID, string tlNumber) { //Get TL detail for the specified TL# TLs tls = null; try { tls = new TLs(); DataSet ds = new TLViewerGateway().GetTLDetail(terminalID, tlNumber); if (ds != null) { FreightDataset tlDS = new FreightDataset(); tlDS.Merge(ds); for (int i = 0; i < tlDS.TLTable.Rows.Count; i++) { TL tl = new TL(tlDS.TLTable[i]); tls.Add(tl); } } } catch (Exception ex) { throw new ApplicationException(ex.Message, ex); } return(tls); }
public TLs GetAgentSummary(int terminalID) { //Get an agent summary view for the specified terminal TLs tls = null; try { tls = new TLs(); DataSet ds = new TLViewerGateway().GetAgentSummary(terminalID); if (ds != null) { FreightDataset tlDS = new FreightDataset(); tlDS.Merge(ds); for (int i = 0; i < tlDS.TLTable.Rows.Count; i++) { TL tl = new TL(tlDS.TLTable[i]); tls.Add(tl); } } } catch (Exception ex) { throw new ApplicationException(ex.Message, ex); } return(tls); }