Ejemplo n.º 1
0
        public DataSet showAllTrains() //show all the trains
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.showTrains(this);

            return(ds);
        }
Ejemplo n.º 2
0
        public DataSet searchAllTrains(String city1, String city2) //search trains filter by origin and destination
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.searchTrains(city1, city2);

            return(ds);
        }
Ejemplo n.º 3
0
        public DataSet searchIDTrains(String IDT) //search trains filter by id
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.searchIDTrains(IDT);

            return(ds);
        }
Ejemplo n.º 4
0
        public DataSet add_Train() //insert a new train
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.addTrain(this);

            return(ds);
        }
Ejemplo n.º 5
0
        public DataSet update_train(int i) //update an existing train
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.updateTrain(this, i);

            return(ds);
        }
Ejemplo n.º 6
0
        public ArrayList showTrains()
        {
            ArrayList a = new ArrayList();
            TrainCAD  c = new TrainCAD();

            a = c.showTrains();
            return(a);
        }
Ejemplo n.º 7
0
        public ArrayList search_Train()
        {
            ArrayList a = new ArrayList();
            TrainCAD  c = new TrainCAD();

            a = c.searchTrain(this);
            return(a);
        }
Ejemplo n.º 8
0
        public void update_Train()
        {
            TrainCAD c = new TrainCAD();

            c.updateTrain(this);
        }
Ejemplo n.º 9
0
        public void delete_Train()
        {
            TrainCAD c = new TrainCAD();

            c.deleteTrain(this);
        }
Ejemplo n.º 10
0
        public void add_Train()
        {
            TrainCAD c = new TrainCAD();

            c.addTrain(this);
        }