Skip to content

Commit

Permalink
Registro de Rutina
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoUyaguari2 committed Sep 24, 2021
1 parent 6516566 commit 18b3812
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/controlador/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
public class Main {

public static void main(String[] args) {

UsuarioDao user = new UsuarioDao();
VistaLogin vl = new VistaLogin();

ControlLogin login = new ControlLogin(user, vl);
login.funcionalidad();
//
// UsuarioDao user = new UsuarioDao();
// VistaLogin vl = new VistaLogin();
//
// ControlLogin login = new ControlLogin(user, vl);
// login.funcionalidad();

RutinaDao mode =new RutinaDao();
VistaRegistrar_Rutina vis = new VistaRegistrar_Rutina();
Expand Down
4 changes: 2 additions & 2 deletions src/modelo/dao/RutinaDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public RutinaDao() {
public RutinaDao(int id_rutina, String nombre, String descripcion) {
super(id_rutina, nombre, descripcion);
}

public List<RutinaVo> mostrarDatos() {

List<RutinaVo> lista_rutina = new ArrayList<>();
Expand Down Expand Up @@ -60,7 +60,7 @@ public List<RutinaVo> mostrarDatos() {
public boolean insertar() {
String sql = "INSERT INTO rutina(\n"
+ "nombre, descripcion)\n"
+ "VALUES ('" + getNombre() + "','" + getDescripcion()+ "');";
+ "VALUES ('" + getNombre() + "','" + getDescripcion() + "');";
return conecta.accion(sql);
}

Expand Down
2 changes: 1 addition & 1 deletion src/vista/VistaRegistrar_Rutina.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class VistaRegistrar_Rutina extends javax.swing.JFrame {
public VistaRegistrar_Rutina() {
initComponents();
}

public JToggleButton getBtnRegistrar() {
return btnRegistrar;
}
Expand Down

0 comments on commit 18b3812

Please sign in to comment.