Example #1
0
 public void transportation_delete(int ID)
 {
     transportation.Delete(ID);
     Insert_transportation_GridView.DataBind();
     Update_transportation_GridView.DataBind();
     Delete_transportation_GridView.DataBind();
 }
Example #2
0
 public transportation transportation_insert()
 {
     transportation.location_from    = Insert_location_from_txt.Text;
     transportation.location_to      = Insert_location_to_txt.Text;
     transportation.no_of_passangers = Convert.ToInt32(Insert_no_of_passangers_txt.Text);
     transportation.pickup_date      = Convert.ToDateTime(Insert_pickup_date_txt.Text);
     transportation.trans_type       = Insert_trans_type_txt.Text;
     transportation.Vehicle_id       = Convert.ToInt32(Insert_Vehicle_id_txt.Text);
     transportation = transportation.Insert(transportation);
     Insert_transportation_GridView.DataBind();
     Update_transportation_GridView.DataBind();
     Delete_transportation_GridView.DataBind();
     return(transportation);
 }
Example #3
0
 public transportation transportation_update(int ID)
 {
     transportation = transportation.Select(ID);
     transportation.transport_id     = Convert.ToInt32(Update_transport_id_txt.Text);
     transportation.location_from    = Update_location_from_txt.Text;
     transportation.location_to      = Update_location_to_txt.Text;
     transportation.no_of_passangers = Convert.ToInt32(Update_no_of_passangers_txt.Text);
     transportation.pickup_date      = Convert.ToDateTime(Update_pickup_date_txt.Text);
     transportation.trans_type       = Update_trans_type_txt.Text;
     transportation.Vehicle_id       = Convert.ToInt32(Update_Vehicle_id_txt.Text);
     transportation.Update(transportation);
     Insert_transportation_GridView.DataBind();
     Update_transportation_GridView.DataBind();
     Delete_transportation_GridView.DataBind();
     return(transportation);
 }