Se simplificaron algunos nombres de clases
Los insertObject, insertDefaultObject, updateObject y deleteObject fueron simplificados a solo insert, insertDefault, update y delete
This commit is contained in:
@@ -111,7 +111,7 @@ public class CalcularFondoController extends BaseController {
|
||||
if (selectedID >= 0) {
|
||||
CalculoFondo calculoFondo = this.view.getTableModel().getCalculoFondo(selectedID);
|
||||
this.view.getTableModel().removeRow(selectedID);
|
||||
DAOManager.getCalculoFondoDAO().deleteCalculoFondo(calculoFondo);
|
||||
DAOManager.getCalculoFondoDAO().delete(calculoFondo);
|
||||
this.updateResumen();
|
||||
this.updateButtonsEnabled();
|
||||
this.resetFocus();
|
||||
@@ -123,7 +123,7 @@ public class CalcularFondoController extends BaseController {
|
||||
calculoFondo.setValor(valor);
|
||||
calculoFondo.setDescripcion(descripcion);
|
||||
calculoFondo.setCaja(this.caja);
|
||||
DAOManager.getCalculoFondoDAO().insertCalculoFondo(calculoFondo);
|
||||
DAOManager.getCalculoFondoDAO().insert(calculoFondo);
|
||||
this.view.getTableModel().addRow(calculoFondo);
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ public class CalcularFondoController extends BaseController {
|
||||
this.editingCalculoFondo.setValor(valor);
|
||||
this.editingCalculoFondo.setDescripcion(descripcion);
|
||||
this.editingCalculoFondo.setCaja(this.caja);
|
||||
DAOManager.getCalculoFondoDAO().updateCalculoFondo(editingCalculoFondo);
|
||||
DAOManager.getCalculoFondoDAO().update(editingCalculoFondo);
|
||||
this.view.getTableModel().setCalculoFondo(this.editingId, this.editingCalculoFondo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user