예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 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);
 }
예제 #5
0
        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);
        }
예제 #6
0
        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);
        }