protected void btnUpdate_Click(object sender, EventArgs e) { int id = Int32.Parse(txtId.Text); string Estacion = txtEstacion.Text; int id_Vehiculo = Int32.Parse(txtIdVehiculo.Text); //Crear una instancia de la clase logica logicaControladorRuta negocioUpdateRuta = new logicaControladorRuta(); //Crear varibale local int resultadoUpdateRuta = negocioUpdateRuta.NegociarUpdateRuta(id, Estacion, id_Vehiculo); if (resultadoUpdateRuta > 0) { lblMensaje.Text = "Actualizacion correcta"; } else { lblMensaje.Text = "No se pudo actualizar"; } negocioUpdateRuta = null; }
protected void btnAdd_Click(object sender, EventArgs e) { int id = Int32.Parse(txtId.Text); string Estacion = txtEstacion.Text; int id_Vehiculo = Int32.Parse(txtIdVehiculo.Text); //Crear una instancia de la clase logica logicaControladorRuta negocioAddRuta = new logicaControladorRuta(); //Crear varibale local int resultadoAddRuta = negocioAddRuta.NegociarInsertRuta(id, Estacion, id_Vehiculo); if (resultadoAddRuta > 0) { lblMensaje.Text = "Registro ok"; } else { lblMensaje.Text = "No se pudo hacer el registro"; } negocioAddRuta = null; }
protected void btnAdd_Click(object sender, EventArgs e) { { int id = Int32.Parse(txtId.Text); string estacion = txtestacion.Text; int id_vehiculo = Int32.Parse(txtid_vehiculo.Text); logicaControladorRuta NegocioAgregarContrato = new logicaControladorRuta(); //ATV (Agregar Vehiculo) int resultadoATV = NegocioAgregarContrato.negociarInsertgestionRUTA(id, estacion, id_vehiculo); if (resultadoATV > 0) { lblMensaje.Text = "Registro agregado correctamente"; } else { lblMensaje.Text = "Error al agregar registro"; } NegocioAgregarContrato = null; } }
protected void btnDelete_Click(object sender, EventArgs e) { int id = Int32.Parse(txtId.Text); logicaControladorRuta negocioDeleteRuta = new logicaControladorRuta(); int resultadoDeleteRuta = negocioDeleteRuta.NegociarDeleteRuta(id); if (resultadoDeleteRuta > 0) { lblMensaje.Text = "Eliminar oK"; } else { lblMensaje.Text = "No se pudo Eliminar"; } negocioDeleteRuta = null; }
protected void btnAdd_Click(object sender, EventArgs e) { int id_ruta = Int32.Parse(txtId.Text); string estacion = txtestacion.Text; int id_vehiculo = Int32.Parse(txtId_Vehiculo.Text); logicaControladorRuta negocioAddRuta = new logicaControladorRuta(); int resultadoAddRuta = negocioAddRuta.NegociarInsertRuta(id_ruta, estacion, id_vehiculo); if (resultadoAddRuta > 0) { lblMensaje.Text = "Registro ok"; } else { lblMensaje.Text = "No se puedo registrar"; } }
protected void btnUpdate_Click(object sender, EventArgs e) { int id = Int32.Parse(txtId.Text); string estacion = txtEstacion.Text; int id_vehiculo = Int32.Parse(txtIdVehiculo.Text); logicaControladorRuta negocioUpdateRuta = new logicaControladorRuta(); int resultadoUpdateRuta = negocioUpdateRuta.NegociarUpdateRuta(id, estacion, id_vehiculo); if (resultadoUpdateRuta > 0) { lblMensaje.Text = "Actualizacion oK"; } else { lblMensaje.Text = "No se pudo actualizar"; } negocioUpdateRuta = null; }
protected void btnDelete_Click(object sender, EventArgs e) { int id = Int32.Parse(txtId.Text); string estacion = txtestacion.Text; int id_vehiculo = Int32.Parse(txtid_vehiculo.Text); logicaControladorRuta negocioEliminargestionRuta = new logicaControladorRuta(); //ATV (Modificar Tipo Vehiculo) int resultadoMTV = negocioEliminargestionRuta.negociarDeleteTipoContrato(id); if (resultadoMTV > 0) { lblMensaje.Text = "Registro eliminado correctamente"; } else { lblMensaje.Text = "Error al eliminar registro"; } negocioEliminargestionRuta = null; }
protected void btnDelete_Click(object sender, EventArgs e) { int id = Int32.Parse(txtId.Text); //Crear una instancia de la clase logica logicaControladorRuta negocioDeleteRuta = new logicaControladorRuta(); //Crear varibale local int resultadoDeleteRuta = negocioDeleteRuta.NegociarDeleteRuta(id); if (resultadoDeleteRuta > 0) { lblMensaje.Text = "Se elimino correctamente"; } else { lblMensaje.Text = "No se pudo eliminar"; } negocioDeleteRuta = null; }