示例#1
0
        //Shows all the information about all the buses from the DB
        public DataSet showAllBuses()
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.showBuses(this);

            return(ds);
        }
示例#2
0
        //Looks for all the hotels from an especifc city
        public DataSet searchAllBuses(String city1, String city2)
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.searchBuses(city1, city2);

            return(ds);
        }
示例#3
0
        //Shearches the information of the bus of the provided id
        public DataSet searchIDBuses(String IDB)
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.searchIDBuses(IDB);

            return(ds);
        }
示例#4
0
        //Adds a new bus tho the DB
        public DataSet add_Bus()
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.addBus(this);

            return(ds);
        }
示例#5
0
        //Updates the information stored about a bus
        public DataSet update_Bus(int i)
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.updateBus(this, i);

            return(ds);
        }
示例#6
0
        public ArrayList showBuses()
        {
            ArrayList a = new ArrayList();
            BusCAD    c = new BusCAD();

            a = c.showBuses();
            return(a);
        }
示例#7
0
        public ArrayList search_Bus()
        {
            ArrayList a = new ArrayList();
            BusCAD    c = new BusCAD();

            a = c.searchBus(this);
            return(a);
        }
示例#8
0
        public void update_Bus()
        {
            BusCAD c = new BusCAD();

            c.updateBus(this);
        }
示例#9
0
        public void delete_Bus()
        {
            BusCAD c = new BusCAD();

            c.deleteBus(this);
        }
示例#10
0
        public void add_Bus()
        {
            BusCAD c = new BusCAD();

            c.addBus(this);
        }