Se movieron las documentaciones a las interfaces
This commit is contained in:
BIN
dist/Programa Caja.jar
vendored
BIN
dist/Programa Caja.jar
vendored
Binary file not shown.
@@ -30,12 +30,35 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public interface CajaDAO {
|
public interface CajaDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todas las cajas
|
||||||
|
* @return Una lista que contiene las cajas
|
||||||
|
*/
|
||||||
List<Caja> getAll();
|
List<Caja> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene una caja por su id
|
||||||
|
* @param id ID de la caja
|
||||||
|
* @return Optional que puede contener la Caja o puede estar vacio.
|
||||||
|
*/
|
||||||
Optional<Caja> getById(int id);
|
Optional<Caja> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene una caja dada su fecha
|
||||||
|
* @param fecha Fecha a la que pertence la caja
|
||||||
|
* @return Un optional que puede contenter una caja o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<Caja> getByFecha(LocalDate fecha);
|
Optional<Caja> getByFecha(LocalDate fecha);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda una caja, le otorga un id a la caja guardada
|
||||||
|
* @param caja Caja a guardar
|
||||||
|
*/
|
||||||
void insert(Caja caja);
|
void insert(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza una caja
|
||||||
|
* @param caja Caja actualizar
|
||||||
|
*/
|
||||||
void update(Caja caja);
|
void update(Caja caja);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objeto Caja
|
|
||||||
* En especifico esta implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteCajaDAO implements CajaDAO {
|
public class SQLiteCajaDAO implements CajaDAO {
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteCajaDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteCajaDAO.class);
|
||||||
private SQLiteConnectionHolder connectionHolder;
|
private SQLiteConnectionHolder connectionHolder;
|
||||||
@@ -48,11 +44,6 @@ public class SQLiteCajaDAO implements CajaDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todas las instancias de Caja en la base de datos, las cuales mapea al objeto
|
|
||||||
* Caja y devuelve una lista con todos estos
|
|
||||||
* @return Una lista con todas las instancias de Caja en la base de datos
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Caja> getAll() {
|
public List<Caja> getAll() {
|
||||||
log.debug("Se intentara conseguir todas las Cajas");
|
log.debug("Se intentara conseguir todas las Cajas");
|
||||||
@@ -77,13 +68,6 @@ public class SQLiteCajaDAO implements CajaDAO {
|
|||||||
return cajaList;
|
return cajaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una instancia de Caja desde la base de datos
|
|
||||||
* @param id el id de la fila de Caja en la base de datos
|
|
||||||
* @return Un optional conteniendo la caja y el cual puede estar vacio, dado que no es 100% seguro que el id
|
|
||||||
* entregado sea valido o exista en la base de datos
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Caja> getById(int id) {
|
public Optional<Caja> getById(int id) {
|
||||||
log.debug("Se intentara conseguir una Caja con el id " + id);
|
log.debug("Se intentara conseguir una Caja con el id " + id);
|
||||||
@@ -108,12 +92,6 @@ public class SQLiteCajaDAO implements CajaDAO {
|
|||||||
return Optional.ofNullable(caja);
|
return Optional.ofNullable(caja);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una instancia de caja dada su fecha.
|
|
||||||
* @param fecha Fecha a la cual corresponde la caja
|
|
||||||
* @return Un optional conteniendo la caja y el cual puede estar vacio, dado que no es 100%
|
|
||||||
* seguro que la fecha entregada corresponda a una caja en la base de datos
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Caja> getByFecha(LocalDate fecha) {
|
public Optional<Caja> getByFecha(LocalDate fecha) {
|
||||||
log.debug("Se intentara conseguir la caja con fecha " + fecha);
|
log.debug("Se intentara conseguir la caja con fecha " + fecha);
|
||||||
@@ -138,10 +116,6 @@ public class SQLiteCajaDAO implements CajaDAO {
|
|||||||
return Optional.ofNullable(caja);
|
return Optional.ofNullable(caja);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta en la base de datos una instancia de Caja nueva.
|
|
||||||
* @param caja La caja a insertar, una vez que ocurra, se le otorgara un id.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insert(Caja caja) {
|
public void insert(Caja caja) {
|
||||||
log.debug("Se intentara insertar la caja " + caja);
|
log.debug("Se intentara insertar la caja " + caja);
|
||||||
@@ -166,10 +140,6 @@ public class SQLiteCajaDAO implements CajaDAO {
|
|||||||
log.debug("Se inserto al caja " + caja);
|
log.debug("Se inserto al caja " + caja);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Actualiza una caja existente en la base de datos
|
|
||||||
* @param caja La caja a actualizar.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Caja caja) {
|
public void update(Caja caja) {
|
||||||
log.debug("Se intentara actualizar la caja " + caja);
|
log.debug("Se intentara actualizar la caja " + caja);
|
||||||
|
|||||||
@@ -30,17 +30,48 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public interface CalculoFondoDAO {
|
public interface CalculoFondoDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los CalculoFondo
|
||||||
|
* @return Una lista con los CalculoFondo
|
||||||
|
*/
|
||||||
List<CalculoFondo> getAll();
|
List<CalculoFondo> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene una lista con los CalculoFondo de una Caja
|
||||||
|
* @param caja Caja a la que pertencen los CalculoFondo
|
||||||
|
* @return Una lista con los CalculoFondo
|
||||||
|
*/
|
||||||
List<CalculoFondo> getByCaja(Caja caja);
|
List<CalculoFondo> getByCaja(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un CalculoFondo dado su Id.
|
||||||
|
* @param id Id del CalculoFondo
|
||||||
|
* @return Un optional que puede contener el Calculo fondo o puede estar vacio.
|
||||||
|
*/
|
||||||
Optional<CalculoFondo> getById(int id);
|
Optional<CalculoFondo> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene la suma de los valores del CalculoFondo de una Caja.
|
||||||
|
* @param caja Caja a la que pertencen los CalculoFondo a sumar
|
||||||
|
* @return La suma de los valores. En caso que la caja sea Caja.EMPTY retornara 0
|
||||||
|
*/
|
||||||
int getTotalCalculoFondo(Caja caja);
|
int getTotalCalculoFondo(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda un CalculoFondo, le otorga un id una vez guardada.
|
||||||
|
* @param calculoFondo CalculoFondo a guardar
|
||||||
|
*/
|
||||||
void insert(CalculoFondo calculoFondo);
|
void insert(CalculoFondo calculoFondo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza un CalculoFondo
|
||||||
|
* @param calculoFondo CalculoFondo a actualizar
|
||||||
|
*/
|
||||||
void update(CalculoFondo calculoFondo);
|
void update(CalculoFondo calculoFondo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Elimina un CalculoFondo
|
||||||
|
* @param calculoFondo CalculoFondo a eliminar
|
||||||
|
*/
|
||||||
void delete(CalculoFondo calculoFondo);
|
void delete(CalculoFondo calculoFondo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,10 +38,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objeto CalculoFondo
|
|
||||||
* En especifico esta implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteCalculoFondoDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteCalculoFondoDAO.class);
|
||||||
private ConnectionHolder connectionHolder;
|
private ConnectionHolder connectionHolder;
|
||||||
@@ -50,11 +46,6 @@ public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todas las instancias de CalculoFondo existentes en la base de datos, las
|
|
||||||
* cuales mapea a el objeto CalculoFondo y devuelve una lista con todos estos
|
|
||||||
* @return Una lista con todos las instancias de CalculoFondo en la base de datos
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<CalculoFondo> getAll() {
|
public List<CalculoFondo> getAll() {
|
||||||
log.debug("Se intentara conseguir todos los CalculosFondo");
|
log.debug("Se intentara conseguir todos los CalculosFondo");
|
||||||
@@ -84,15 +75,7 @@ public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
|||||||
return calculoFondoList;
|
return calculoFondoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todas las instancias de CalculoFondo que estan relacionadas a una caja.
|
|
||||||
* En caso que la caja entregada sea igual a Caja.EMPTY, se retornara automaticamente
|
|
||||||
* una lista vacia sin realizar ninguna query.
|
|
||||||
*
|
|
||||||
* @param caja Instancia de una caja existente en la base de datos, o que al menos
|
|
||||||
* tenga un id que exista en ella.
|
|
||||||
* @return Una lista de todos los CalculoFondo de la caja entregada
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<CalculoFondo> getByCaja(Caja caja) {
|
public List<CalculoFondo> getByCaja(Caja caja) {
|
||||||
log.debug("Se intentara conseguir todos los calculos fondo de la caja " + caja);
|
log.debug("Se intentara conseguir todos los calculos fondo de la caja " + caja);
|
||||||
@@ -125,12 +108,6 @@ public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
|||||||
return calculoFondoList;
|
return calculoFondoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una instancia de CalculoFondo desde la base de datos
|
|
||||||
* @param id el id de la fila de CalculoFondo en la base de datos
|
|
||||||
* @return Un optional que puede estar vacio, dado que no es 100% seguro que el id
|
|
||||||
* entregado sea valido o exista en la base de datos.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<CalculoFondo> getById(int id) {
|
public Optional<CalculoFondo> getById(int id) {
|
||||||
log.debug("Se intentara conseguir un CalculoFondo con id " + id);
|
log.debug("Se intentara conseguir un CalculoFondo con id " + id);
|
||||||
@@ -159,14 +136,6 @@ public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
|||||||
return Optional.ofNullable(calculoFondo);
|
return Optional.ofNullable(calculoFondo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la suma de los valores de CalculoFondo de una caja.
|
|
||||||
* En caso que la caja sea igual a Caja.EMPY, se retornara automaticamente 0 sin
|
|
||||||
* realizar ninguna query.
|
|
||||||
* @param caja Instancia de una caja existente en la base de datos, o que al menos
|
|
||||||
* tenga un id que exista.
|
|
||||||
* @return La suma de los valores de CalculoFondo en la caja entregada.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalCalculoFondo(Caja caja) {
|
public int getTotalCalculoFondo(Caja caja) {
|
||||||
log.debug("Se intentara conseguir la suma de los valores de los CalculosFondo de la caja " + caja);
|
log.debug("Se intentara conseguir la suma de los valores de los CalculosFondo de la caja " + caja);
|
||||||
@@ -195,11 +164,6 @@ public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
|||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta en la base de datos una instancia de CalculoFondo nueva.
|
|
||||||
* Una vez que sea insertado, se le agrega un id al objeto entregado.
|
|
||||||
* @param calculoFondo instancia que se insertara.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insert(CalculoFondo calculoFondo) {
|
public void insert(CalculoFondo calculoFondo) {
|
||||||
log.debug("Se intentara insertar el calculoFondo " + calculoFondo);
|
log.debug("Se intentara insertar el calculoFondo " + calculoFondo);
|
||||||
@@ -226,11 +190,6 @@ public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
|||||||
log.debug("Se inserto el calculoFondo " + calculoFondo);
|
log.debug("Se inserto el calculoFondo " + calculoFondo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Actualiza un calculo fondo existente en la base de datos.
|
|
||||||
* La instancia que se actualizara sera la del id que tenga el objeto entregado.
|
|
||||||
* @param calculoFondo instancia de CalculoFondo a ser actualizada.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void update(CalculoFondo calculoFondo) {
|
public void update(CalculoFondo calculoFondo) {
|
||||||
log.debug("Se intentara actualizar el CalculoFondo " + calculoFondo);
|
log.debug("Se intentara actualizar el CalculoFondo " + calculoFondo);
|
||||||
@@ -250,11 +209,6 @@ public class SQLiteCalculoFondoDAO implements CalculoFondoDAO {
|
|||||||
log.debug("Se actualizo el CalculoFondo " + calculoFondo);
|
log.debug("Se actualizo el CalculoFondo " + calculoFondo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Elimina de la base de datos el objeto CalculoFondo entregado.
|
|
||||||
* La instancia en especifico sera la del id del objeto entregado
|
|
||||||
* @param calculoFondo instancia de CalculoFondo a eliminar.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(CalculoFondo calculoFondo) {
|
public void delete(CalculoFondo calculoFondo) {
|
||||||
log.debug("Se intentara eliminar el CalculoFondo" + calculoFondo);
|
log.debug("Se intentara eliminar el CalculoFondo" + calculoFondo);
|
||||||
|
|||||||
@@ -30,19 +30,58 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public interface DocumentosDAO {
|
public interface DocumentosDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los Documentos
|
||||||
|
*
|
||||||
|
* @return Una lista con todos los Documentos
|
||||||
|
*/
|
||||||
List<Documentos> getAll();
|
List<Documentos> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un Documentos dado su id
|
||||||
|
*
|
||||||
|
* @param id Id del Documentos
|
||||||
|
* @return Un optional que puede contener el Documentos o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<Documentos> getById(int id);
|
Optional<Documentos> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un Documentos dado su Caja
|
||||||
|
*
|
||||||
|
* @param caja Caja a la que pertence el Documentos
|
||||||
|
* @return Un optional que puede contener el Documentos o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<Documentos> getByCaja(Caja caja);
|
Optional<Documentos> getByCaja(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene la suma de los valores de los documentos en una Caja
|
||||||
|
*
|
||||||
|
* @param caja Caja a la que pertencene los Documentos
|
||||||
|
* @return La suma de los valores de los documentos, si la Caja es Caja.EMPYY retorana 0
|
||||||
|
*/
|
||||||
int getTotalDocumentos(Caja caja);
|
int getTotalDocumentos(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda un nuevo documentos, le otorga un id una vez guardado.
|
||||||
|
* @param documentos Documentos a guardar
|
||||||
|
*/
|
||||||
void insert(Documentos documentos);
|
void insert(Documentos documentos);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inserta un documentos con valores por default.
|
||||||
|
* @param documentos Instancia del documento a guardar
|
||||||
|
*/
|
||||||
void insertDefault(Documentos documentos);
|
void insertDefault(Documentos documentos);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza un documentos
|
||||||
|
* @param documentos Documento a actualizar
|
||||||
|
*/
|
||||||
void update(Documentos documentos);
|
void update(Documentos documentos);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Elimina un Documentos.
|
||||||
|
* @param documentos Documentos a eliminar
|
||||||
|
*/
|
||||||
void delete(Documentos documentos);
|
void delete(Documentos documentos);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,10 +38,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objecto Documentos
|
|
||||||
* En especifico esta implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteDocumentosDAO implements DocumentosDAO {
|
public class SQLiteDocumentosDAO implements DocumentosDAO {
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteDocumentosDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteDocumentosDAO.class);
|
||||||
private ConnectionHolder connectionHolder;
|
private ConnectionHolder connectionHolder;
|
||||||
@@ -50,10 +46,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todas las instancias de Documentos que existen en la base de datos
|
|
||||||
* @return Una lista con los Documentos
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Documentos> getAll() {
|
public List<Documentos> getAll() {
|
||||||
log.debug("Se intentaran conseguir todos los Documentos");
|
log.debug("Se intentaran conseguir todos los Documentos");
|
||||||
@@ -85,12 +77,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
return documentosList;
|
return documentosList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un Documento dado su id en la base de datos
|
|
||||||
* @param id el id de la fila del documento en la base de datos
|
|
||||||
* @return Un optional que contiene el documento que puede ser vacio, dado que no es
|
|
||||||
* 100% seguro que el id entregado sea valido o exista en la base de datos.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Documentos> getById(int id) {
|
public Optional<Documentos> getById(int id) {
|
||||||
log.debug("Se intentara conseguir el Documentos con id " + id);
|
log.debug("Se intentara conseguir el Documentos con id " + id);
|
||||||
@@ -122,12 +108,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
return Optional.ofNullable(documentos);
|
return Optional.ofNullable(documentos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene el Documentos que esta relacionado con la Caja
|
|
||||||
* @param caja caja con la cual esta relacionado el Documentos
|
|
||||||
* @return Un optional que contiene el Documentos el cual puede ser vacio, dado que no
|
|
||||||
* es 100% seguro que exista un Documentos con esa caja.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Documentos> getByCaja(Caja caja) {
|
public Optional<Documentos> getByCaja(Caja caja) {
|
||||||
log.debug("Se intentara conseguir el Documentos de la caja " + caja);
|
log.debug("Se intentara conseguir el Documentos de la caja " + caja);
|
||||||
@@ -161,12 +141,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
return Optional.ofNullable(documentos);
|
return Optional.ofNullable(documentos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la suma de los documentos pertenecientes a una caja
|
|
||||||
* @param caja caja a la que pertenecen los documentos que se sumaran
|
|
||||||
* @return Un int con la suma obtenida, en caso que la caja entregada sea igual a
|
|
||||||
* Caja.EMPTY se retornara 0, al igual que si no existe ningun documentos para la caja
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalDocumentos(Caja caja) {
|
public int getTotalDocumentos(Caja caja) {
|
||||||
log.debug("Se intentara conseguir el total de Documentos de la caja " + caja);
|
log.debug("Se intentara conseguir el total de Documentos de la caja " + caja);
|
||||||
@@ -193,10 +167,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta en la base de datos una instancia de Documentos nuevo
|
|
||||||
* @param documentos Documentos a insertar, una vez que ocurra se le otorgara un id
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insert(Documentos documentos) {
|
public void insert(Documentos documentos) {
|
||||||
log.debug("Se intentara insertar un nuevo documentos " + documentos);
|
log.debug("Se intentara insertar un nuevo documentos " + documentos);
|
||||||
@@ -223,12 +193,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
log.debug("Se inserto el documentos " + documentos);
|
log.debug("Se inserto el documentos " + documentos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta un documentos por default, teniendo los campos cheques, tarjetas y retiros
|
|
||||||
* siendo 0.
|
|
||||||
* @param documentos Instancia de documentos la cual se guardara con esas caracteristicas
|
|
||||||
* Solo se tomara el objecto caja para obtener el id de esta y asociarlo en la base de datos
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insertDefault(Documentos documentos) {
|
public void insertDefault(Documentos documentos) {
|
||||||
log.debug("Se intentara insertar el documento default " + documentos);
|
log.debug("Se intentara insertar el documento default " + documentos);
|
||||||
@@ -250,10 +214,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
log.debug("Se inserto el documento por default " + documentos);
|
log.debug("Se inserto el documento por default " + documentos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Actualiza un Documentos existente en la base de datos
|
|
||||||
* @param documentos el documentos a actualizar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Documentos documentos) {
|
public void update(Documentos documentos) {
|
||||||
log.debug("Se intentara actualizar el documentos " + documentos);
|
log.debug("Se intentara actualizar el documentos " + documentos);
|
||||||
@@ -273,10 +233,6 @@ public class SQLiteDocumentosDAO implements DocumentosDAO {
|
|||||||
log.debug("Se actualizo el documentos " + documentos);
|
log.debug("Se actualizo el documentos " + documentos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Elimina un Documentos existente en la base de datos
|
|
||||||
* @param documentos El documentos a eliminar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(Documentos documentos) {
|
public void delete(Documentos documentos) {
|
||||||
log.debug("Se intentara eliminar el documentos " + documentos);
|
log.debug("Se intentara eliminar el documentos " + documentos);
|
||||||
|
|||||||
@@ -30,20 +30,54 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public interface EfectivoDAO {
|
public interface EfectivoDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los Efectivo
|
||||||
|
* @return Una lista con los Efectivo
|
||||||
|
*/
|
||||||
List<Efectivo> getAll();
|
List<Efectivo> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un Efectivo por su id
|
||||||
|
* @param id Id del Efectivo
|
||||||
|
* @return Un Optional que puede contener un Efectivo o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<Efectivo> getById(int id);
|
Optional<Efectivo> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un Efectivo por su Caja
|
||||||
|
* @param caja Caja a la que pertence el Efectivo
|
||||||
|
* @return Un Optional que puede contener un Efectivo o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<Efectivo> getByCaja(Caja caja);
|
Optional<Efectivo> getByCaja(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene la suma de los valores de los Efectivo pertencientes a una Caja
|
||||||
|
* @param caja Caja a la que pertenecen los Efectivo a sumar
|
||||||
|
* @return La suma de los valores de Efectivo
|
||||||
|
*/
|
||||||
int getTotalEfectivo(Caja caja);
|
int getTotalEfectivo(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda un Efectivo, le agrega un id a la instancia
|
||||||
|
* @param efectivo Efectivo a guardar
|
||||||
|
*/
|
||||||
void insert(Efectivo efectivo);
|
void insert(Efectivo efectivo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda un Efectivo con valores por defecto, le agrega un id a la instancia
|
||||||
|
* @param efectivo Instancia de efectivo a guardar
|
||||||
|
*/
|
||||||
void insertDefault(Efectivo efectivo);
|
void insertDefault(Efectivo efectivo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza un Efectivo
|
||||||
|
* @param efectivo Efectivo a guardar
|
||||||
|
*/
|
||||||
void update(Efectivo efectivo);
|
void update(Efectivo efectivo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Elimina un Efectivo
|
||||||
|
* @param efectivo Efectivo a eliminar
|
||||||
|
*/
|
||||||
void delete(Efectivo efectivo);
|
void delete(Efectivo efectivo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,10 +39,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objeto Efectivo
|
|
||||||
* En especifico esta implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteEfectivoDAO implements EfectivoDAO {
|
public class SQLiteEfectivoDAO implements EfectivoDAO {
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteEfectivoDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteEfectivoDAO.class);
|
||||||
private ConnectionHolder connectionHolder;
|
private ConnectionHolder connectionHolder;
|
||||||
@@ -51,10 +47,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todas las instancias de Efectivo que existen en la base de datos
|
|
||||||
* @return una lista de Efectivo
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Efectivo> getAll() {
|
public List<Efectivo> getAll() {
|
||||||
log.debug("Se intentara conseguir todas los Efectivo");
|
log.debug("Se intentara conseguir todas los Efectivo");
|
||||||
@@ -94,12 +86,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
return efectivoList;
|
return efectivoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un Efectivo dado su id en la base de datos
|
|
||||||
* @param id el id de la fila del efectivo en la base de datos
|
|
||||||
* @return un optional que contiene el efectivo y puede estar vacio, dado que no es
|
|
||||||
* 100% seguro que el id entregado sea valido o exista en la base de datos.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Efectivo> getById(int id) {
|
public Optional<Efectivo> getById(int id) {
|
||||||
log.debug("Se intentara conseguir un Efectivo con id " + id);
|
log.debug("Se intentara conseguir un Efectivo con id " + id);
|
||||||
@@ -137,13 +123,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
return Optional.ofNullable(efectivo);
|
return Optional.ofNullable(efectivo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un Efectivo perteneciente a una caja
|
|
||||||
* @param caja Caja a la cual pertenece el efectivo requerido
|
|
||||||
* @return Un optional que contiene el efectivo y puede estar vacio, dado que no es 100%
|
|
||||||
* seguro que la exista un efectivo para la caja. Ademas la caja puede ser Caja.EMPTY
|
|
||||||
* en ese caso siempre se retornara un Optional.empty().
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Efectivo> getByCaja(Caja caja) {
|
public Optional<Efectivo> getByCaja(Caja caja) {
|
||||||
log.debug("Se intentara conseguir un Efectivo perteneciente a la caja " + caja);
|
log.debug("Se intentara conseguir un Efectivo perteneciente a la caja " + caja);
|
||||||
@@ -182,12 +161,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
return Optional.ofNullable(efectivo);
|
return Optional.ofNullable(efectivo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la suma de los efectivos pertenecientes una caja
|
|
||||||
* @param caja Caja a la cual pertenece los efectivos a sumar
|
|
||||||
* @return Un int con la suma obtenida, en caso que la caja sea igual a Caja.EMPTY
|
|
||||||
* simplemente se retoranara 0, al igual que cuando no exista ningun efectivo para esa caja
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalEfectivo(Caja caja) {
|
public int getTotalEfectivo(Caja caja) {
|
||||||
log.debug("Se intentara conseguir la suma de efectivos de la caja " + caja);
|
log.debug("Se intentara conseguir la suma de efectivos de la caja " + caja);
|
||||||
@@ -216,10 +189,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta en la base de datos una instancia de Efectivo nueva
|
|
||||||
* @param efectivo Efectivo a insertar, una vez que ocurra se le otorgara un id.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insert(Efectivo efectivo) {
|
public void insert(Efectivo efectivo) {
|
||||||
log.debug("Se intentara insertar el efectivo " + efectivo);
|
log.debug("Se intentara insertar el efectivo " + efectivo);
|
||||||
@@ -250,11 +219,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
log.debug("Se inserto el efectivo " + efectivo);
|
log.debug("Se inserto el efectivo " + efectivo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta un efectivo por default, teniendo todos los campos en 0 exceptuando el id de la caja
|
|
||||||
* @param efectivo Instancia de efectivo que se guardara, solo se tomara en cuenta la caja
|
|
||||||
* que almacena para obtener su id.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insertDefault(Efectivo efectivo) {
|
public void insertDefault(Efectivo efectivo) {
|
||||||
log.debug("Se intentara insertar el efectivo por default " + efectivo);
|
log.debug("Se intentara insertar el efectivo por default " + efectivo);
|
||||||
@@ -276,10 +240,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
log.debug("Se inserto el efectivo por default " + efectivo);
|
log.debug("Se inserto el efectivo por default " + efectivo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Actualiza un Efectivo existente en la base de datos
|
|
||||||
* @param efectivo efectivo a actualizar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Efectivo efectivo) {
|
public void update(Efectivo efectivo) {
|
||||||
log.debug("Se intentara actualizar el efectivo " + efectivo);
|
log.debug("Se intentara actualizar el efectivo " + efectivo);
|
||||||
@@ -306,10 +266,6 @@ public class SQLiteEfectivoDAO implements EfectivoDAO {
|
|||||||
log.debug("Se actualizo el efectivo " + efectivo);
|
log.debug("Se actualizo el efectivo " + efectivo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Elimina un efectivo de la base de datos
|
|
||||||
* @param efectivo efectivo a eliminar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(Efectivo efectivo) {
|
public void delete(Efectivo efectivo) {
|
||||||
log.debug("Se intentara eliminar el efectivo " + efectivo);
|
log.debug("Se intentara eliminar el efectivo " + efectivo);
|
||||||
|
|||||||
@@ -31,26 +31,80 @@ import java.util.List;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public interface EgresoDAO {
|
public interface EgresoDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los Egreso
|
||||||
|
* @return Lista de Egreso
|
||||||
|
*/
|
||||||
List<Egreso> getAll();
|
List<Egreso> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un Egreso por su Id
|
||||||
|
* @param id id del Egreso
|
||||||
|
* @return Optional que puede contener el Egreso o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<Egreso> getById(int id);
|
Optional<Egreso> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los Egreso pertenecientes a una Caja
|
||||||
|
* @param caja Caja a la que pertencen los Egreso
|
||||||
|
* @return Lista con los Egreso
|
||||||
|
*/
|
||||||
List<Egreso> getByCaja(Caja caja);
|
List<Egreso> getByCaja(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene los Egreso dado su nro
|
||||||
|
* @param nro nro del Egreso
|
||||||
|
* @return Lista con los Egreso
|
||||||
|
*/
|
||||||
List<Egreso> getByNro(String nro);
|
List<Egreso> getByNro(String nro);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene los Egreso dado su TipoEgreso
|
||||||
|
* @param tipoEgreso TipoEgreso al que pertence los Egreso
|
||||||
|
* @return Lista con los Egreso
|
||||||
|
*/
|
||||||
List<Egreso> getByTipoEgreso(TipoEgreso tipoEgreso);
|
List<Egreso> getByTipoEgreso(TipoEgreso tipoEgreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene los Egreso dado su TipoEgreso y su Caja
|
||||||
|
* @param tipoEgreso TipoEgreso al que pertence los Egreso
|
||||||
|
* @param caja Caja al que pertence los Egreso
|
||||||
|
* @return Lista de Egreso
|
||||||
|
*/
|
||||||
List<Egreso> getByTipoEgresoEnCaja(TipoEgreso tipoEgreso, Caja caja);
|
List<Egreso> getByTipoEgresoEnCaja(TipoEgreso tipoEgreso, Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda un Egreso
|
||||||
|
* @param egreso Egreso a guardar
|
||||||
|
*/
|
||||||
void insert(Egreso egreso);
|
void insert(Egreso egreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza un Egreso
|
||||||
|
* @param egreso Egreso a actualizar
|
||||||
|
*/
|
||||||
void update(Egreso egreso);
|
void update(Egreso egreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Elimina un Egreso
|
||||||
|
* @param egreso Egreso a eliminar
|
||||||
|
*/
|
||||||
void delete(Egreso egreso);
|
void delete(Egreso egreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene la suma de los valores de Egreso en una Caja
|
||||||
|
* @param caja Caja a la que pertencene los Egreso
|
||||||
|
* @return La suma de los Egreso
|
||||||
|
*/
|
||||||
int getTotalEgreso(Caja caja);
|
int getTotalEgreso(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene la suma de los valores de Egreso en un mes de un TipoEgreso
|
||||||
|
* @param mes Mes al que pertencen los Egreso
|
||||||
|
* @param tipo TipoEgreso al que pertence los Egreso
|
||||||
|
* @return La suma de los Egreso
|
||||||
|
*/
|
||||||
int getTotalEgresoMesPorTipo(YearMonth mes, TipoEgreso tipo);
|
int getTotalEgresoMesPorTipo(YearMonth mes, TipoEgreso tipo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,10 +43,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objeto Egreso En especifio esta
|
|
||||||
* implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteEgresoDAO implements EgresoDAO {
|
public class SQLiteEgresoDAO implements EgresoDAO {
|
||||||
|
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteEgresoDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteEgresoDAO.class);
|
||||||
@@ -56,11 +52,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todas las instancias de Egreso que existen en la base de datos
|
|
||||||
*
|
|
||||||
* @return una lista de Egreso
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Egreso> getAll() {
|
public List<Egreso> getAll() {
|
||||||
log.debug("Se intentara conseguir todos los Egreso");
|
log.debug("Se intentara conseguir todos los Egreso");
|
||||||
@@ -100,13 +91,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return egresoList;
|
return egresoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un Egreso dado su id en la base de datos
|
|
||||||
*
|
|
||||||
* @param id el id de la fila de egreso en la base de datos
|
|
||||||
* @return un optional que contiene el egreso y puede estar vacio, dado que no es 100% seguro que
|
|
||||||
* el id entregado sea valido o exista en la base de datos
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Egreso> getById(int id) {
|
public Optional<Egreso> getById(int id) {
|
||||||
log.debug("Se intentara conseguir un Egreso con el id " + id);
|
log.debug("Se intentara conseguir un Egreso con el id " + id);
|
||||||
@@ -144,12 +128,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return Optional.ofNullable(egreso);
|
return Optional.ofNullable(egreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una lista de egresos perteneciente a una caja
|
|
||||||
*
|
|
||||||
* @param caja Caja a la cual pertenece el egreso requerido
|
|
||||||
* @return Una lista de egreso, si la caja es Caja.EMPTY se retoranara una lista vacia
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Egreso> getByCaja(Caja caja) {
|
public List<Egreso> getByCaja(Caja caja) {
|
||||||
log.debug("Se intentara conseguir los egresos de la caja " + caja);
|
log.debug("Se intentara conseguir los egresos de la caja " + caja);
|
||||||
@@ -191,12 +169,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return egresoList;
|
return egresoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una lista de Egreso dado su nro en la base de datos
|
|
||||||
*
|
|
||||||
* @param nro nro del egreso que se busca
|
|
||||||
* @return una lista con los Egresos con el nro entregado
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Egreso> getByNro(String nro) {
|
public List<Egreso> getByNro(String nro) {
|
||||||
log.debug("Se intentara conseguir los Egreso con nro " + nro);
|
log.debug("Se intentara conseguir los Egreso con nro " + nro);
|
||||||
@@ -236,13 +208,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return egresoList;
|
return egresoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una lista de Egreso pertenecientes a un tipoEgreso
|
|
||||||
*
|
|
||||||
* @param tipoEgreso TipoEgreso al que pertenecen los Egreso requeridos
|
|
||||||
* @return Una lista con los egresos, en caso que tipoEgreso sea TipoEgreso.EMPTY se retorna una
|
|
||||||
* lista vacia.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Egreso> getByTipoEgreso(TipoEgreso tipoEgreso) {
|
public List<Egreso> getByTipoEgreso(TipoEgreso tipoEgreso) {
|
||||||
log.debug("Se intentara conseguir los Egreso con TipoEgreso " + tipoEgreso);
|
log.debug("Se intentara conseguir los Egreso con TipoEgreso " + tipoEgreso);
|
||||||
@@ -283,13 +248,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return egresoList;
|
return egresoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene los Egreso que pertenecen a un TipoEgreso y Caja
|
|
||||||
*
|
|
||||||
* @param tipoEgreso TipoEgreso al que pertence el Egreso
|
|
||||||
* @param caja Caja al que pertence el egreso
|
|
||||||
* @return Lista de egreso, se retoranara una lista vacia en caso que tipoEgreso o caja sean EMPTY
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Egreso> getByTipoEgresoEnCaja(TipoEgreso tipoEgreso, Caja caja) {
|
public List<Egreso> getByTipoEgresoEnCaja(TipoEgreso tipoEgreso, Caja caja) {
|
||||||
log.debug("Se intentara conseguir los Egresos pertencienes al tipoEgreso " + tipoEgreso
|
log.debug("Se intentara conseguir los Egresos pertencienes al tipoEgreso " + tipoEgreso
|
||||||
@@ -328,12 +286,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return egresoList;
|
return egresoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la suma de los egresos en una caja
|
|
||||||
*
|
|
||||||
* @param caja caja a la que pertenecen los egresos a sumar
|
|
||||||
* @return La suma de los egresos, se retonara siempre 0 en caso que la Caja sea Caja.EMPTY
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalEgreso(Caja caja) {
|
public int getTotalEgreso(Caja caja) {
|
||||||
log.debug("Se intentara conseguir la suma de egreso de la caja " + caja);
|
log.debug("Se intentara conseguir la suma de egreso de la caja " + caja);
|
||||||
@@ -362,14 +314,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la suma de egresos en un mes de un tipoEgreso
|
|
||||||
*
|
|
||||||
* @param mes Mes del que se necesita la suma
|
|
||||||
* @param tipo TipoEgreso al que pertencen los egresos
|
|
||||||
* @return La suma de los egresos dentro del mes y con el tipo entregado, en caso que el
|
|
||||||
* tipoEgreso sea TipoEgreso.EMPTY se retornara siempre 0
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalEgresoMesPorTipo(YearMonth mes, TipoEgreso tipo) {
|
public int getTotalEgresoMesPorTipo(YearMonth mes, TipoEgreso tipo) {
|
||||||
log.debug(
|
log.debug(
|
||||||
@@ -404,11 +348,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta en la base de datos una instancia de egreso
|
|
||||||
*
|
|
||||||
* @param egreso Egreso a insertar, una vez que ocurra se le otorga un id.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insert(Egreso egreso) {
|
public void insert(Egreso egreso) {
|
||||||
log.debug("Se intentara insertar el egreso " + egreso);
|
log.debug("Se intentara insertar el egreso " + egreso);
|
||||||
@@ -434,10 +373,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
log.debug("Se inserto el egreso " + egreso);
|
log.debug("Se inserto el egreso " + egreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Actualiza un Egreso existente en la base de datos
|
|
||||||
* @param egreso Egreso a actualizar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Egreso egreso) {
|
public void update(Egreso egreso) {
|
||||||
log.debug("Se intentara actualizar el egreso " + egreso);
|
log.debug("Se intentara actualizar el egreso " + egreso);
|
||||||
@@ -458,10 +393,6 @@ public class SQLiteEgresoDAO implements EgresoDAO {
|
|||||||
log.debug("Se actualizo el egreso " + egreso);
|
log.debug("Se actualizo el egreso " + egreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Elimina un Egreso existente en la base de datos
|
|
||||||
* @param egreso Egreso a eliminar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(Egreso egreso) {
|
public void delete(Egreso egreso) {
|
||||||
log.debug("Se intentara eliminar el egreso " + egreso);
|
log.debug("Se intentara eliminar el egreso " + egreso);
|
||||||
|
|||||||
@@ -6,16 +6,42 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public interface EstadoResultadoDAO {
|
public interface EstadoResultadoDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los EstadoResultado
|
||||||
|
* @return Lista con los EstadoResultado
|
||||||
|
*/
|
||||||
List<EstadoResultado> getAll();
|
List<EstadoResultado> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un EstadoResultado por su Id
|
||||||
|
* @param id El id del EstadoResultado
|
||||||
|
* @return Optional que puede contener un EstadoResultado o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<EstadoResultado> getById(int id);
|
Optional<EstadoResultado> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un EstadoResultado por su mes
|
||||||
|
* @param month El mes del EstadoResultado
|
||||||
|
* @return Optional que puede contener un EstadoResultado o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<EstadoResultado> getByMonth(YearMonth month);
|
Optional<EstadoResultado> getByMonth(YearMonth month);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda un EstadoResultado y le otorga un id
|
||||||
|
* @param estadoResultado EstadoResultado a guardar
|
||||||
|
*/
|
||||||
void insert(EstadoResultado estadoResultado);
|
void insert(EstadoResultado estadoResultado);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza un EstadoResultado
|
||||||
|
* @param estadoResultado EstadoResultado a actualizar
|
||||||
|
*/
|
||||||
void update(EstadoResultado estadoResultado);
|
void update(EstadoResultado estadoResultado);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Elimina un EstadoResultado
|
||||||
|
* @param estadoResultado EstadoResultado a eliminar
|
||||||
|
*/
|
||||||
void delete(EstadoResultado estadoResultado);
|
void delete(EstadoResultado estadoResultado);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objeto EstadoResultado. En especifico
|
|
||||||
* esta implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
||||||
|
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteEstadoResultadoDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteEstadoResultadoDAO.class);
|
||||||
@@ -26,11 +22,6 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todos los EstadoResultado.
|
|
||||||
*
|
|
||||||
* @return una Lista con los EstadoResultado
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<EstadoResultado> getAll() {
|
public List<EstadoResultado> getAll() {
|
||||||
log.debug("Se intentara conseguir todos los EstadoResultado");
|
log.debug("Se intentara conseguir todos los EstadoResultado");
|
||||||
@@ -72,13 +63,6 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
return estadoResultadoList;
|
return estadoResultadoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un EstadoResultado dado su id en la base de datos
|
|
||||||
*
|
|
||||||
* @param id id de la fila de EstadoResultado en la base de datos
|
|
||||||
* @return Un optional que contiene al EstadoResultado que puede estar vacio, esto porque no es
|
|
||||||
* 100% seguro que la base de datos tenga una fila con ese id o que el id sea valido
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<EstadoResultado> getById(int id) {
|
public Optional<EstadoResultado> getById(int id) {
|
||||||
log.debug("Se intentara conseguir el EstadoResultado con el id " + id);
|
log.debug("Se intentara conseguir el EstadoResultado con el id " + id);
|
||||||
@@ -120,13 +104,6 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
return Optional.ofNullable(estadoResultado);
|
return Optional.ofNullable(estadoResultado);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un EstadoResultado dado su mes
|
|
||||||
*
|
|
||||||
* @param month YearMonth que tiene el EstadoResultado.
|
|
||||||
* @return Un optional que contiene el EstadoResultado que puede estar vacio, esto porque no es
|
|
||||||
* 100% seguro que exista un EstadoResultado en ese mes.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<EstadoResultado> getByMonth(YearMonth month) {
|
public Optional<EstadoResultado> getByMonth(YearMonth month) {
|
||||||
log.debug("Se intentara conseguir un EstadoResultado con el mes " + month);
|
log.debug("Se intentara conseguir un EstadoResultado con el mes " + month);
|
||||||
@@ -169,11 +146,6 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
return Optional.ofNullable(estadoResultado);
|
return Optional.ofNullable(estadoResultado);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta en la base de datos el EstadoResultado, al terminar le otorga un id
|
|
||||||
*
|
|
||||||
* @param estadoResultado EstadoResultado a insertar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insert(EstadoResultado estadoResultado) {
|
public void insert(EstadoResultado estadoResultado) {
|
||||||
log.debug("Se intentara insertar el EstadoResultado " + estadoResultado);
|
log.debug("Se intentara insertar el EstadoResultado " + estadoResultado);
|
||||||
@@ -213,11 +185,6 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
log.debug("Se inserto el EstadoResultado " + estadoResultado);
|
log.debug("Se inserto el EstadoResultado " + estadoResultado);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Actualiza un EstadoResultado existente en la base de datos
|
|
||||||
*
|
|
||||||
* @param estadoResultado EstadoResultado a actualizar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void update(EstadoResultado estadoResultado) {
|
public void update(EstadoResultado estadoResultado) {
|
||||||
log.debug("Se intentara actualizar el estadoResultado " + estadoResultado);
|
log.debug("Se intentara actualizar el estadoResultado " + estadoResultado);
|
||||||
@@ -253,11 +220,6 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Elimina un EstadoResultado desde la base de datos
|
|
||||||
*
|
|
||||||
* @param estadoResultado EstadoResultado a eliminar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(EstadoResultado estadoResultado) {
|
public void delete(EstadoResultado estadoResultado) {
|
||||||
log.debug("Se intentara eliminar el EstadoResultado " + estadoResultado);
|
log.debug("Se intentara eliminar el EstadoResultado " + estadoResultado);
|
||||||
|
|||||||
@@ -32,34 +32,109 @@ import java.util.List;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public interface IngresoDAO {
|
public interface IngresoDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los Ingreso
|
||||||
|
* @return Lista con los Ingreso
|
||||||
|
*/
|
||||||
List<Ingreso> getAll();
|
List<Ingreso> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene los Ingreso pertenecientes a una Caja
|
||||||
|
* @param caja Caja a la que pertenece los Ingreso
|
||||||
|
* @return Lista con los Ingreso
|
||||||
|
*/
|
||||||
List<Ingreso> getByCaja(Caja caja);
|
List<Ingreso> getByCaja(Caja caja);
|
||||||
|
|
||||||
Optional<Ingreso> getById(int id);
|
/**
|
||||||
|
* Obtiene los Ingreso segun su TipoIngreso
|
||||||
|
* @param tipoIngreso TipoIngreso al que pertenece el Ingreso
|
||||||
|
* @return Lista con los Ingreso
|
||||||
|
*/
|
||||||
List<Ingreso> getByTipoIngreso(TipoIngreso tipoIngreso);
|
List<Ingreso> getByTipoIngreso(TipoIngreso tipoIngreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un Ingreso segun su Id
|
||||||
|
* @param id Id del Ingreso
|
||||||
|
* @return Optional que puede contener un Ingreso o puede estar Vacio
|
||||||
|
*/
|
||||||
|
Optional<Ingreso> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene la suma de los valores de los Ingreso en una Caja
|
||||||
|
* @param caja Caja a la que pertenecen los Ingreso a sumar
|
||||||
|
* @return La suma de los valores de los Ingreso
|
||||||
|
*/
|
||||||
int getTotalIngreso(Caja caja);
|
int getTotalIngreso(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el total de la suma de los valores de los Ingresos en un mes
|
||||||
|
* @param mes Mes al que pertenecen los Ingreso
|
||||||
|
* @return La suma del valor de los Ingreso en el mes
|
||||||
|
*/
|
||||||
int getTotalIngresoMes(YearMonth mes);
|
int getTotalIngresoMes(YearMonth mes);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el total de Ingresos de TipoIngreso 'Boleta Exenta'.
|
||||||
|
* @param mes Mes en el que estan los Ingreso
|
||||||
|
* @return La suma de los valores de los Ingreso
|
||||||
|
*/
|
||||||
int getTotalExentasMes(YearMonth mes);
|
int getTotalExentasMes(YearMonth mes);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el total de la suma de los Ingreso de una Caja segun su TipoIngreso
|
||||||
|
* @param caja Caja a la que pertenecen los Ingreso
|
||||||
|
* @param tipoIngreso TipoIngreso a los que pertenecen los Ingreso
|
||||||
|
* @return El total de la suma de los Ingreso
|
||||||
|
*/
|
||||||
int getTotalIngresoEnCajaPorTipo(Caja caja, TipoIngreso tipoIngreso);
|
int getTotalIngresoEnCajaPorTipo(Caja caja, TipoIngreso tipoIngreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el Primer numero de los NroInicial de los Ingreso de una Caja pertenecientes a un TipoIngreso
|
||||||
|
* @param caja Caja a la que pertenecen los Ingreso
|
||||||
|
* @param tipoIngreso TipoIngreso al que pertenecen los Ingreso
|
||||||
|
* @return Un Optional que puede contener el NroInicial o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<String> getPrimerNroInicialDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso);
|
Optional<String> getPrimerNroInicialDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el Ultimo numero de los NroFinal de los Ingreso de una Caja pertenecientes a un TipoIngreso
|
||||||
|
* @param caja Caja a la que pertenecen los Ingreso
|
||||||
|
* @param tipoIngreso TipoIngreso al que pertenecen los Ingreso
|
||||||
|
* @return Un Optional que puede contener el NroFinal o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<String> getUltimoNroFinalDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso);
|
Optional<String> getUltimoNroFinalDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el Primer numero de los NroZInicial de los Ingreso de una Caja pertenecientes al TipoIngreso Boleta Fiscal
|
||||||
|
* @param caja Caja a la que pertenecen los Ingreso
|
||||||
|
* @return Un Optional que puede contener el NroZInicial o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<String> getPrimerNroZInicialDeCaja(Caja caja);
|
Optional<String> getPrimerNroZInicialDeCaja(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el Ultimo numero de los NroZFinal de los Ingresos de una Caja pertenecientes al TipoIngreso Boleta Fiscal
|
||||||
|
* @param caja Caja a la que pertenecen los Ingreso
|
||||||
|
* @return Un Optional que puede contener el NroZFinal o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<String> getUltimoNroZFinalDeCaja(Caja caja);
|
Optional<String> getUltimoNroZFinalDeCaja(Caja caja);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarda un Ingreso y le otorga un id
|
||||||
|
* @param ingreso Ingreso a guardar
|
||||||
|
*/
|
||||||
void insert(Ingreso ingreso);
|
void insert(Ingreso ingreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza un Ingreso
|
||||||
|
* @param ingreso Ingreso a actualizar
|
||||||
|
*/
|
||||||
void update(Ingreso ingreso);
|
void update(Ingreso ingreso);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Elimina un Ingreso
|
||||||
|
* @param ingreso Ingreso a eliminar
|
||||||
|
*/
|
||||||
void delete(Ingreso ingreso);
|
void delete(Ingreso ingreso);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,10 +43,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objeto Ingreso. En especifico
|
|
||||||
* esta implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteIngresoDAO implements IngresoDAO {
|
public class SQLiteIngresoDAO implements IngresoDAO {
|
||||||
|
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteIngresoDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteIngresoDAO.class);
|
||||||
@@ -56,11 +52,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene todos los Ingreso
|
|
||||||
*
|
|
||||||
* @return Una lista con los Ingreso
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Ingreso> getAll() {
|
public List<Ingreso> getAll() {
|
||||||
log.debug("Se intententaran conseguir todos los Ingreso");
|
log.debug("Se intententaran conseguir todos los Ingreso");
|
||||||
@@ -104,12 +95,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return ingresosList;
|
return ingresosList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la lista de Ingreso perteneciente a una Caja
|
|
||||||
*
|
|
||||||
* @param caja Caja a la que pertence los Ingreso buscados
|
|
||||||
* @return Una lista de ingreso, en caso que la caja sea Caja.EMPTY se retoranara una lista vacia.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Ingreso> getByCaja(Caja caja) {
|
public List<Ingreso> getByCaja(Caja caja) {
|
||||||
log.debug("Se intentara buscar los ingresos de la caja " + caja);
|
log.debug("Se intentara buscar los ingresos de la caja " + caja);
|
||||||
@@ -152,13 +137,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return ingresosList;
|
return ingresosList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un Ingreso dado su id en la base de datos
|
|
||||||
*
|
|
||||||
* @param id de la fila de Ingreso en la base de datos
|
|
||||||
* @return Un Optional que contiene el Ingreso que puede estar vacio,esto porque no es 100% seguro
|
|
||||||
* que exista en la base de datos o que sea valido
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Ingreso> getById(int id) {
|
public Optional<Ingreso> getById(int id) {
|
||||||
log.debug("Se intentara conseguir un Ingreso con id " + id);
|
log.debug("Se intentara conseguir un Ingreso con id " + id);
|
||||||
@@ -201,12 +179,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return Optional.ofNullable(ingreso);
|
return Optional.ofNullable(ingreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene los Ingreso pertenecientes a un tipoIngreso
|
|
||||||
*
|
|
||||||
* @param tipoIngreso TipoIngreso al que pertenece los Ingreso deseados
|
|
||||||
* @return Lista con los ingreso.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<Ingreso> getByTipoIngreso(TipoIngreso tipoIngreso) {
|
public List<Ingreso> getByTipoIngreso(TipoIngreso tipoIngreso) {
|
||||||
log.debug("Se intentara conseguir los Ingreso con TipoIngreso" + tipoIngreso);
|
log.debug("Se intentara conseguir los Ingreso con TipoIngreso" + tipoIngreso);
|
||||||
@@ -245,12 +217,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return ingresosList;
|
return ingresosList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la suma de los ingresos en una caja
|
|
||||||
*
|
|
||||||
* @param caja Caja a la que pertencen los ingresos a sumar
|
|
||||||
* @return la suma de los ingresos, en caso que la caja sea Caja.EMPTY siempre retoranara 0
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalIngreso(Caja caja) {
|
public int getTotalIngreso(Caja caja) {
|
||||||
log.debug("Se intentara conseguir el total de ingreso en la caja " + caja);
|
log.debug("Se intentara conseguir el total de ingreso en la caja " + caja);
|
||||||
@@ -277,12 +243,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene la suma de ingresos en un mes
|
|
||||||
*
|
|
||||||
* @param mes Mes dentro del cual estan los ingresos
|
|
||||||
* @return la suma de los ingresos.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalIngresoMes(YearMonth mes) {
|
public int getTotalIngresoMes(YearMonth mes) {
|
||||||
log.debug("Se intentara conseguir la suma de los ingreso en el mes " + mes);
|
log.debug("Se intentara conseguir la suma de los ingreso en el mes " + mes);
|
||||||
@@ -309,12 +269,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene el total de ingresos con el tipo boleta exenta dentro de un mes
|
|
||||||
*
|
|
||||||
* @param mes Mes al cual pertenecen los ingresos
|
|
||||||
* @return La suma de los ingresos con el tipo boleta exenta en el mes
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalExentasMes(YearMonth mes) {
|
public int getTotalExentasMes(YearMonth mes) {
|
||||||
log.debug("Se intentara conseguir el total de boletas exentas en el mes " + mes);
|
log.debug("Se intentara conseguir el total de boletas exentas en el mes " + mes);
|
||||||
@@ -340,13 +294,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene el total de ingresos en una caja, de un tipo especifico
|
|
||||||
*
|
|
||||||
* @param caja Caja a la que pertenen los ingresos
|
|
||||||
* @param tipoIngreso TipoIngreso al cual pertencen los ingresos
|
|
||||||
* @return La suma de los ingresos.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getTotalIngresoEnCajaPorTipo(Caja caja, TipoIngreso tipoIngreso) {
|
public int getTotalIngresoEnCajaPorTipo(Caja caja, TipoIngreso tipoIngreso) {
|
||||||
log.debug("Se intentara obtener el total de ingresos de la caja " + caja + " y el tipo "
|
log.debug("Se intentara obtener el total de ingresos de la caja " + caja + " y el tipo "
|
||||||
@@ -374,14 +321,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene el primer numero inicial de ingreso de un tipo de ingreso, dentro de una caja.
|
|
||||||
*
|
|
||||||
* @param caja Caja a la que pertencen los ingreso
|
|
||||||
* @param tipoIngreso TipoIngreso al cual pertenecen los ingreso
|
|
||||||
* @return Un Optional que contiene el primer numero inicial de ingreso,este puede estar vacio ya
|
|
||||||
* que no es seguro que exista tal numero inicial.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<String> getPrimerNroInicialDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso) {
|
public Optional<String> getPrimerNroInicialDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso) {
|
||||||
log.debug("Se intentara conseguir el primer numero inicial de ingreso en la caja " + caja
|
log.debug("Se intentara conseguir el primer numero inicial de ingreso en la caja " + caja
|
||||||
@@ -412,14 +351,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return Optional.ofNullable(nroInicial);
|
return Optional.ofNullable(nroInicial);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene el ultimo numero final de ingreso de un tipo de ingrso, dentro de una caja
|
|
||||||
*
|
|
||||||
* @param caja Caja a la que pertencen los ingreso
|
|
||||||
* @param tipoIngreso TipoIngreso al cual pertenecen los ingreso
|
|
||||||
* @return Un Optional que contiene el ultimo numero final de ingreso, este puede estar vacio ya
|
|
||||||
* que no es seguro que exista tal numero final.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<String> getUltimoNroFinalDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso) {
|
public Optional<String> getUltimoNroFinalDeCajaDeTipo(Caja caja, TipoIngreso tipoIngreso) {
|
||||||
log.debug(
|
log.debug(
|
||||||
@@ -450,13 +381,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return Optional.ofNullable(nroFinal);
|
return Optional.ofNullable(nroFinal);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene el primer numero z inicial dentro de una caja
|
|
||||||
*
|
|
||||||
* @param caja caja a la que pertenecen los ingresos en los que buscar
|
|
||||||
* @return Un optional que contiene el primer numero z inicial, este puede estar vacio ya que no
|
|
||||||
* es seguro que exista tal numero z inicial
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<String> getPrimerNroZInicialDeCaja(Caja caja) {
|
public Optional<String> getPrimerNroZInicialDeCaja(Caja caja) {
|
||||||
log.debug("Se intentara conseguir el primero numero z inicial dentro de la caja " + caja);
|
log.debug("Se intentara conseguir el primero numero z inicial dentro de la caja " + caja);
|
||||||
@@ -484,13 +408,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return Optional.ofNullable(nroZInicial);
|
return Optional.ofNullable(nroZInicial);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene el ultimo numero z final dentro de una caja
|
|
||||||
*
|
|
||||||
* @param caja caja a la que pertenecen los ingresos en los que buscar
|
|
||||||
* @return Un optional que contiene el ultimo numero z final, este puede estar vacio ya que no
|
|
||||||
* es seguro que exista tal numero z final
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<String> getUltimoNroZFinalDeCaja(Caja caja) {
|
public Optional<String> getUltimoNroZFinalDeCaja(Caja caja) {
|
||||||
log.debug("Se intentara conseguir el ultimo numero z final dentro de la caja " + caja);
|
log.debug("Se intentara conseguir el ultimo numero z final dentro de la caja " + caja);
|
||||||
@@ -516,10 +433,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
return Optional.ofNullable(nroZFinal);
|
return Optional.ofNullable(nroZFinal);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Inserta un ingreso en la base de datos
|
|
||||||
* @param ingreso Ingreso a insertar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void insert(Ingreso ingreso) {
|
public void insert(Ingreso ingreso) {
|
||||||
log.debug("Se intentara insertar el ingreso " + ingreso);
|
log.debug("Se intentara insertar el ingreso " + ingreso);
|
||||||
@@ -548,10 +461,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
log.debug("Se inserto el ingreso " + ingreso);
|
log.debug("Se inserto el ingreso " + ingreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Actualiza un ingreso existente en la base de datos
|
|
||||||
* @param ingreso Ingreso a actualizar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Ingreso ingreso) {
|
public void update(Ingreso ingreso) {
|
||||||
log.debug("Se intentara actualizar el ingreso " + ingreso);
|
log.debug("Se intentara actualizar el ingreso " + ingreso);
|
||||||
@@ -574,10 +483,6 @@ public class SQLiteIngresoDAO implements IngresoDAO {
|
|||||||
log.debug("Se actualizo el ingreso " + ingreso);
|
log.debug("Se actualizo el ingreso " + ingreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Elimnina un ingreso existente en la base de datos
|
|
||||||
* @param ingreso Ingreso a eliminar
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(Ingreso ingreso) {
|
public void delete(Ingreso ingreso) {
|
||||||
log.debug("Se intentara eliminar el ingreso " + ingreso);
|
log.debug("Se intentara eliminar el ingreso " + ingreso);
|
||||||
|
|||||||
@@ -49,11 +49,6 @@ public class SQLiteTipoEgresoDAO implements TipoEgresoDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una lista todos los TipoEgreso existentes
|
|
||||||
*
|
|
||||||
* @return Una lista de tipoEgreso
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<TipoEgreso> getAll() {
|
public List<TipoEgreso> getAll() {
|
||||||
log.debug("Se intentara conseguir todos los tipoEgreso");
|
log.debug("Se intentara conseguir todos los tipoEgreso");
|
||||||
@@ -77,13 +72,6 @@ public class SQLiteTipoEgresoDAO implements TipoEgresoDAO {
|
|||||||
return tipoEgresoList;
|
return tipoEgresoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un TipoEgreso dado su id en la base de datos
|
|
||||||
*
|
|
||||||
* @param id Id pertenciente al TipoEgreso
|
|
||||||
* @return Un optional que contiene el TipoEgreso y puede estar vacio, dado que no es 100% seguro
|
|
||||||
* que el id entregado exista o siquiera sea valido.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<TipoEgreso> getById(int id) {
|
public Optional<TipoEgreso> getById(int id) {
|
||||||
log.debug("Se intentara conseguir un TipoEgreso con id " + id);
|
log.debug("Se intentara conseguir un TipoEgreso con id " + id);
|
||||||
@@ -107,13 +95,6 @@ public class SQLiteTipoEgresoDAO implements TipoEgresoDAO {
|
|||||||
return Optional.ofNullable(tipoEgreso);
|
return Optional.ofNullable(tipoEgreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un TipoEgreso dado su nombre
|
|
||||||
* @param nombre Nombre del TipoEgreso buscado
|
|
||||||
* @return Un optional que contiene el TipoEgreso y puede estar vacio, dado que no es 100% seguro
|
|
||||||
* que el nombre entregado exista o siquiera sea valido.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<TipoEgreso> getByNombre(String nombre) {
|
public Optional<TipoEgreso> getByNombre(String nombre) {
|
||||||
log.debug("Se intentara conseguir un TipoEgreso con nombre" + nombre);
|
log.debug("Se intentara conseguir un TipoEgreso con nombre" + nombre);
|
||||||
|
|||||||
@@ -52,9 +52,24 @@ import java.util.List;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public interface TipoEgresoDAO {
|
public interface TipoEgresoDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los TipoEgreso
|
||||||
|
* @return Lista de TipoEgreso
|
||||||
|
*/
|
||||||
List<TipoEgreso> getAll();
|
List<TipoEgreso> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un TipoEgreso dado su Id
|
||||||
|
* @param id Id del TipoEgreso
|
||||||
|
* @return Un Optional que puede contener el TipoEgreso o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<TipoEgreso> getById(int id);
|
Optional<TipoEgreso> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un TipoEgreso dado su nombre
|
||||||
|
* @param nombre Nombre del TipoEgreso
|
||||||
|
* @return Un Optional que puede contener el TipoEgreso o puede estar vacio
|
||||||
|
*/
|
||||||
Optional<TipoEgreso> getByNombre(String nombre);
|
Optional<TipoEgreso> getByNombre(String nombre);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ import java.util.Optional;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
/**
|
|
||||||
* Objeto DAO que realiza las querys y mapeos necesarios del objeto TipoIngreso. En especifico esta
|
|
||||||
* implementacion se comunica con la base de datos SQLite
|
|
||||||
*/
|
|
||||||
public class SQLiteTipoIngresoDAO implements TipoIngresoDAO {
|
public class SQLiteTipoIngresoDAO implements TipoIngresoDAO {
|
||||||
|
|
||||||
private static final Logger log = LogManager.getLogger(SQLiteTipoIngresoDAO.class);
|
private static final Logger log = LogManager.getLogger(SQLiteTipoIngresoDAO.class);
|
||||||
@@ -49,11 +45,6 @@ public class SQLiteTipoIngresoDAO implements TipoIngresoDAO {
|
|||||||
this.connectionHolder = new SQLiteConnectionHolder();
|
this.connectionHolder = new SQLiteConnectionHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene una lista todos los TipoIngreso existentes
|
|
||||||
*
|
|
||||||
* @return Una lista de TipoIngreso
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<TipoIngreso> getAll() {
|
public List<TipoIngreso> getAll() {
|
||||||
log.debug("Se intentara conseguir todos los TipoIngreso");
|
log.debug("Se intentara conseguir todos los TipoIngreso");
|
||||||
@@ -77,13 +68,6 @@ public class SQLiteTipoIngresoDAO implements TipoIngresoDAO {
|
|||||||
return tiposIngresoList;
|
return tiposIngresoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un TipoIngreso por su id
|
|
||||||
*
|
|
||||||
* @param id Id unico del TipoIngreso
|
|
||||||
* @return Un optional que puede contener TipoIngreso o puede estar vacio, dado que no es seguro
|
|
||||||
* que exista un TipoIngreso con el id indicado
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<TipoIngreso> getById(int id) {
|
public Optional<TipoIngreso> getById(int id) {
|
||||||
log.debug("Se intentara conseguir un TipoIngreso con id " + id);
|
log.debug("Se intentara conseguir un TipoIngreso con id " + id);
|
||||||
@@ -107,13 +91,6 @@ public class SQLiteTipoIngresoDAO implements TipoIngresoDAO {
|
|||||||
return Optional.ofNullable(tipoIngreso);
|
return Optional.ofNullable(tipoIngreso);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Obtiene un TipoIngreso dado su nombre
|
|
||||||
*
|
|
||||||
* @param nombre Nombre del TipoIngreso
|
|
||||||
* @return Un optional que puede contenter un TipoIngreso o puede estar vacio, ya que no es seguro
|
|
||||||
* que exista un TipoIngreso para dado nombre
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<TipoIngreso> getByNombre(String nombre) {
|
public Optional<TipoIngreso> getByNombre(String nombre) {
|
||||||
log.debug("Se intentara conseguir un TipoIngreso con nombre " + nombre);
|
log.debug("Se intentara conseguir un TipoIngreso con nombre " + nombre);
|
||||||
|
|||||||
@@ -28,9 +28,24 @@ import java.util.List;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public interface TipoIngresoDAO {
|
public interface TipoIngresoDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene todos los TipoIngreso
|
||||||
|
* @return Una lista con los TipoIngreso
|
||||||
|
*/
|
||||||
List<TipoIngreso> getAll();
|
List<TipoIngreso> getAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un TipoIngreso dado su id
|
||||||
|
* @param id Id del TipoIngreso
|
||||||
|
* @return Un Optional que puede contener el TipoIngreso o puede estar Vacio
|
||||||
|
*/
|
||||||
Optional<TipoIngreso> getById(int id);
|
Optional<TipoIngreso> getById(int id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene un TipoIngreso dado su nombre
|
||||||
|
* @param nombre Nombre del TipoIngreso
|
||||||
|
* @return Un Optional que puede contener el TipoIngreso o puede estar Vacio
|
||||||
|
*/
|
||||||
Optional<TipoIngreso> getByNombre(String nombre);
|
Optional<TipoIngreso> getByNombre(String nombre);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
package danielcortes.xyz.models.version;
|
package danielcortes.xyz.models.version;
|
||||||
|
|
||||||
public interface VersionDAO {
|
public interface VersionDAO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Actualiza la base de datos a una version superior a la actual
|
||||||
|
* Este metodo no puede volver la base de datos a una version anterior
|
||||||
|
*
|
||||||
|
* @param version Version a la que actualizar
|
||||||
|
*/
|
||||||
void updateTo(int version);
|
void updateTo(int version);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,311 +41,451 @@ import javax.swing.border.TitledBorder;
|
|||||||
|
|
||||||
public class ArqueoView {
|
public class ArqueoView {
|
||||||
|
|
||||||
private JPanel contentPanel;
|
private JPanel contentPanel;
|
||||||
private NumberFormatedTextField veinteMilField;
|
private NumberFormatedTextField veinteMilField;
|
||||||
private NumberFormatedTextField diezMilField;
|
private NumberFormatedTextField diezMilField;
|
||||||
private NumberFormatedTextField cincoMilField;
|
private NumberFormatedTextField cincoMilField;
|
||||||
private NumberFormatedTextField dosMilField;
|
private NumberFormatedTextField dosMilField;
|
||||||
private NumberFormatedTextField milField;
|
private NumberFormatedTextField milField;
|
||||||
private NumberFormatedTextField quinientosField;
|
private NumberFormatedTextField quinientosField;
|
||||||
private NumberFormatedTextField cienField;
|
private NumberFormatedTextField cienField;
|
||||||
private NumberFormatedTextField cincuentaField;
|
private NumberFormatedTextField cincuentaField;
|
||||||
private NumberFormatedTextField diezField;
|
private NumberFormatedTextField diezField;
|
||||||
private NumberFormatedTextField chequesField;
|
private NumberFormatedTextField chequesField;
|
||||||
private NumberFormatedTextField tarjetasField;
|
private NumberFormatedTextField tarjetasField;
|
||||||
private NumberFormatedTextField efectivoField;
|
private NumberFormatedTextField efectivoField;
|
||||||
private NumberFormatedTextField documentosField;
|
private NumberFormatedTextField documentosField;
|
||||||
private NumberFormatedTextField egresosField;
|
private NumberFormatedTextField egresosField;
|
||||||
private NumberFormatedTextField rendidoField;
|
private NumberFormatedTextField rendidoField;
|
||||||
private JButton guardarEfectivoButton;
|
private JButton guardarEfectivoButton;
|
||||||
private JButton guardarDocumentosButton;
|
private JButton guardarDocumentosButton;
|
||||||
private JButton calcularFondoButton;
|
private JButton calcularFondoButton;
|
||||||
private NumberFormatedTextField diferenciaField;
|
private NumberFormatedTextField diferenciaField;
|
||||||
private NumberFormatedTextField debeRendirField;
|
private NumberFormatedTextField debeRendirField;
|
||||||
private NumberFormatedTextField retiroField;
|
private NumberFormatedTextField retiroField;
|
||||||
|
|
||||||
public JPanel getContentPanel() {
|
public JPanel getContentPanel() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getVeinteMilField() {
|
public NumberFormatedTextField getVeinteMilField() {
|
||||||
return veinteMilField;
|
return veinteMilField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getDiezMilField() {
|
public NumberFormatedTextField getDiezMilField() {
|
||||||
return diezMilField;
|
return diezMilField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getCincoMilField() {
|
public NumberFormatedTextField getCincoMilField() {
|
||||||
return cincoMilField;
|
return cincoMilField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getDosMilField() {
|
public NumberFormatedTextField getDosMilField() {
|
||||||
return dosMilField;
|
return dosMilField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getMilField() {
|
public NumberFormatedTextField getMilField() {
|
||||||
return milField;
|
return milField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getQuinientosField() {
|
public NumberFormatedTextField getQuinientosField() {
|
||||||
return quinientosField;
|
return quinientosField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getCienField() {
|
public NumberFormatedTextField getCienField() {
|
||||||
return cienField;
|
return cienField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getCincuentaField() {
|
public NumberFormatedTextField getCincuentaField() {
|
||||||
return cincuentaField;
|
return cincuentaField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getDiezField() {
|
public NumberFormatedTextField getDiezField() {
|
||||||
return diezField;
|
return diezField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getChequesField() {
|
public NumberFormatedTextField getChequesField() {
|
||||||
return chequesField;
|
return chequesField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getTarjetasField() {
|
public NumberFormatedTextField getTarjetasField() {
|
||||||
return tarjetasField;
|
return tarjetasField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getEfectivoField() {
|
public NumberFormatedTextField getEfectivoField() {
|
||||||
return efectivoField;
|
return efectivoField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getDocumentosField() {
|
public NumberFormatedTextField getDocumentosField() {
|
||||||
return documentosField;
|
return documentosField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getEgresosField() {
|
public NumberFormatedTextField getEgresosField() {
|
||||||
return egresosField;
|
return egresosField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getRendidoField() {
|
public NumberFormatedTextField getRendidoField() {
|
||||||
return rendidoField;
|
return rendidoField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getGuardarEfectivoButton() {
|
public JButton getGuardarEfectivoButton() {
|
||||||
return guardarEfectivoButton;
|
return guardarEfectivoButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getGuardarDocumentosButton() {
|
public JButton getGuardarDocumentosButton() {
|
||||||
return guardarDocumentosButton;
|
return guardarDocumentosButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getCalcularFondoButton() {
|
public JButton getCalcularFondoButton() {
|
||||||
return calcularFondoButton;
|
return calcularFondoButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getDiferenciaField() {
|
public NumberFormatedTextField getDiferenciaField() {
|
||||||
return diferenciaField;
|
return diferenciaField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getDebeRendirField() {
|
public NumberFormatedTextField getDebeRendirField() {
|
||||||
return debeRendirField;
|
return debeRendirField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getRetiroField() {
|
public NumberFormatedTextField getRetiroField() {
|
||||||
return retiroField;
|
return retiroField;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
// >>> IMPORTANT!! <<<
|
// >>> IMPORTANT!! <<<
|
||||||
// DO NOT EDIT OR ADD ANY CODE HERE!
|
// DO NOT EDIT OR ADD ANY CODE HERE!
|
||||||
$$$setupUI$$$();
|
$$$setupUI$$$();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
|
||||||
* >>> IMPORTANT!! <<<
|
* call it in your code!
|
||||||
* DO NOT edit this method OR call it in your code!
|
*
|
||||||
*
|
* @noinspection ALL
|
||||||
* @noinspection ALL
|
*/
|
||||||
*/
|
private void $$$setupUI$$$() {
|
||||||
private void $$$setupUI$$$() {
|
contentPanel = new JPanel();
|
||||||
contentPanel = new JPanel();
|
contentPanel.setLayout(new GridLayoutManager(3, 2, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
contentPanel.setLayout(new GridLayoutManager(3, 2, new Insets(0, 0, 0, 0), -1, -1));
|
final JPanel panel1 = new JPanel();
|
||||||
final JPanel panel1 = new JPanel();
|
panel1.setLayout(new GridLayoutManager(7, 2, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
panel1.setLayout(new GridLayoutManager(7, 2, new Insets(10, 10, 10, 10), -1, -1));
|
contentPanel.add(panel1,
|
||||||
contentPanel.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Resumen"));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
final JLabel label1 = new JLabel();
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
label1.setText("Total Egresos");
|
null, 0, false));
|
||||||
panel1.add(label1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel1
|
||||||
egresosField = new NumberFormatedTextField();
|
.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Resumen"));
|
||||||
egresosField.setEditable(false);
|
final JLabel label1 = new JLabel();
|
||||||
egresosField.setText("");
|
label1.setText("Total Egresos");
|
||||||
panel1.add(egresosField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
panel1.add(label1,
|
||||||
diferenciaField = new NumberFormatedTextField();
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
diferenciaField.setEditable(false);
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
Font diferenciaFieldFont = this.$$$getFont$$$(null, Font.BOLD, -1, diferenciaField.getFont());
|
false));
|
||||||
if (diferenciaFieldFont != null) diferenciaField.setFont(diferenciaFieldFont);
|
egresosField = new NumberFormatedTextField();
|
||||||
diferenciaField.setText("");
|
egresosField.setEditable(false);
|
||||||
panel1.add(diferenciaField, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
egresosField.setText("");
|
||||||
final JLabel label2 = new JLabel();
|
panel1.add(egresosField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
label2.setText("Diferencia");
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
panel1.add(label2, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
final JSeparator separator1 = new JSeparator();
|
diferenciaField = new NumberFormatedTextField();
|
||||||
panel1.add(separator1, new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
|
diferenciaField.setEditable(false);
|
||||||
final JLabel label3 = new JLabel();
|
Font diferenciaFieldFont = this.$$$getFont$$$(null, Font.BOLD, -1, diferenciaField.getFont());
|
||||||
label3.setText("Debe Rendir");
|
if (diferenciaFieldFont != null) {
|
||||||
panel1.add(label3, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
diferenciaField.setFont(diferenciaFieldFont);
|
||||||
debeRendirField = new NumberFormatedTextField();
|
|
||||||
debeRendirField.setEditable(false);
|
|
||||||
Font debeRendirFieldFont = this.$$$getFont$$$(null, Font.BOLD, -1, debeRendirField.getFont());
|
|
||||||
if (debeRendirFieldFont != null) debeRendirField.setFont(debeRendirFieldFont);
|
|
||||||
debeRendirField.setText("");
|
|
||||||
panel1.add(debeRendirField, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
rendidoField = new NumberFormatedTextField();
|
|
||||||
rendidoField.setEditable(false);
|
|
||||||
Font rendidoFieldFont = this.$$$getFont$$$(null, Font.BOLD, -1, rendidoField.getFont());
|
|
||||||
if (rendidoFieldFont != null) rendidoField.setFont(rendidoFieldFont);
|
|
||||||
rendidoField.setText("");
|
|
||||||
panel1.add(rendidoField, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
final JLabel label4 = new JLabel();
|
|
||||||
label4.setText("Rendido");
|
|
||||||
panel1.add(label4, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
final JLabel label5 = new JLabel();
|
|
||||||
label5.setText("Total Documentos");
|
|
||||||
panel1.add(label5, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
documentosField = new NumberFormatedTextField();
|
|
||||||
documentosField.setEditable(false);
|
|
||||||
documentosField.setText("");
|
|
||||||
panel1.add(documentosField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
final JLabel label6 = new JLabel();
|
|
||||||
label6.setText("Total Efectivo");
|
|
||||||
panel1.add(label6, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
efectivoField = new NumberFormatedTextField();
|
|
||||||
efectivoField.setEditable(false);
|
|
||||||
efectivoField.setText("");
|
|
||||||
panel1.add(efectivoField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
final JPanel panel2 = new JPanel();
|
|
||||||
panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));
|
|
||||||
contentPanel.add(panel2, new GridConstraints(0, 0, 3, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
|
||||||
final JPanel panel3 = new JPanel();
|
|
||||||
panel3.setLayout(new GridLayoutManager(10, 2, new Insets(10, 10, 10, 10), -1, -1));
|
|
||||||
panel2.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
|
||||||
panel3.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Detalle Efectivo", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, -1, -1, panel3.getFont())));
|
|
||||||
final JLabel label7 = new JLabel();
|
|
||||||
label7.setText("$20000");
|
|
||||||
panel3.add(label7, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
veinteMilField = new NumberFormatedTextField();
|
|
||||||
veinteMilField.setText("");
|
|
||||||
panel3.add(veinteMilField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
final JLabel label8 = new JLabel();
|
|
||||||
label8.setText("$10000");
|
|
||||||
panel3.add(label8, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
diezMilField = new NumberFormatedTextField();
|
|
||||||
diezMilField.setText("");
|
|
||||||
panel3.add(diezMilField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
cincoMilField = new NumberFormatedTextField();
|
|
||||||
cincoMilField.setText("");
|
|
||||||
panel3.add(cincoMilField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
final JLabel label9 = new JLabel();
|
|
||||||
label9.setText("$5000");
|
|
||||||
panel3.add(label9, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
final JLabel label10 = new JLabel();
|
|
||||||
label10.setText("$2000");
|
|
||||||
panel3.add(label10, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
dosMilField = new NumberFormatedTextField();
|
|
||||||
dosMilField.setText("");
|
|
||||||
panel3.add(dosMilField, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
milField = new NumberFormatedTextField();
|
|
||||||
milField.setText("");
|
|
||||||
panel3.add(milField, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
final JLabel label11 = new JLabel();
|
|
||||||
label11.setText("$1000");
|
|
||||||
panel3.add(label11, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
final JLabel label12 = new JLabel();
|
|
||||||
label12.setText("$500");
|
|
||||||
panel3.add(label12, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
quinientosField = new NumberFormatedTextField();
|
|
||||||
quinientosField.setText("");
|
|
||||||
panel3.add(quinientosField, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
final JLabel label13 = new JLabel();
|
|
||||||
label13.setText("$100");
|
|
||||||
panel3.add(label13, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
cienField = new NumberFormatedTextField();
|
|
||||||
cienField.setText("");
|
|
||||||
panel3.add(cienField, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
final JLabel label14 = new JLabel();
|
|
||||||
label14.setText("$50");
|
|
||||||
panel3.add(label14, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
cincuentaField = new NumberFormatedTextField();
|
|
||||||
cincuentaField.setText("");
|
|
||||||
panel3.add(cincuentaField, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
final JLabel label15 = new JLabel();
|
|
||||||
label15.setText("$10");
|
|
||||||
panel3.add(label15, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
diezField = new NumberFormatedTextField();
|
|
||||||
diezField.setText("");
|
|
||||||
panel3.add(diezField, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
guardarEfectivoButton = new JButton();
|
|
||||||
guardarEfectivoButton.setText("Guardar");
|
|
||||||
panel3.add(guardarEfectivoButton, new GridConstraints(9, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
|
||||||
final JPanel panel4 = new JPanel();
|
|
||||||
panel4.setLayout(new GridLayoutManager(4, 2, new Insets(10, 10, 10, 10), -1, -1));
|
|
||||||
panel2.add(panel4, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
|
||||||
panel4.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Detalle Documentos", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, -1, -1, panel4.getFont())));
|
|
||||||
chequesField = new NumberFormatedTextField();
|
|
||||||
chequesField.setText("");
|
|
||||||
panel4.add(chequesField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
final JLabel label16 = new JLabel();
|
|
||||||
label16.setText("Tarjetas de Credito");
|
|
||||||
panel4.add(label16, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
tarjetasField = new NumberFormatedTextField();
|
|
||||||
tarjetasField.setText("");
|
|
||||||
panel4.add(tarjetasField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
guardarDocumentosButton = new JButton();
|
|
||||||
guardarDocumentosButton.setText("Guardar");
|
|
||||||
panel4.add(guardarDocumentosButton, new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
final JLabel label17 = new JLabel();
|
|
||||||
label17.setText("Cheques al Dia");
|
|
||||||
panel4.add(label17, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
retiroField = new NumberFormatedTextField();
|
|
||||||
retiroField.setText("");
|
|
||||||
panel4.add(retiroField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
final JLabel label18 = new JLabel();
|
|
||||||
label18.setText("Retiro");
|
|
||||||
panel4.add(label18, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
final JPanel panel5 = new JPanel();
|
|
||||||
panel5.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
|
||||||
contentPanel.add(panel5, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
|
||||||
calcularFondoButton = new JButton();
|
|
||||||
calcularFondoButton.setText("Calcular Fondo");
|
|
||||||
panel5.add(calcularFondoButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
final Spacer spacer1 = new Spacer();
|
|
||||||
contentPanel.add(spacer1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
|
|
||||||
}
|
}
|
||||||
|
diferenciaField.setText("");
|
||||||
|
panel1.add(diferenciaField, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final JLabel label2 = new JLabel();
|
||||||
|
label2.setText("Diferencia");
|
||||||
|
panel1.add(label2,
|
||||||
|
new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
final JSeparator separator1 = new JSeparator();
|
||||||
|
panel1.add(separator1,
|
||||||
|
new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
final JLabel label3 = new JLabel();
|
||||||
|
label3.setText("Debe Rendir");
|
||||||
|
panel1.add(label3,
|
||||||
|
new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
debeRendirField = new NumberFormatedTextField();
|
||||||
|
debeRendirField.setEditable(false);
|
||||||
|
Font debeRendirFieldFont = this.$$$getFont$$$(null, Font.BOLD, -1, debeRendirField.getFont());
|
||||||
|
if (debeRendirFieldFont != null) {
|
||||||
|
debeRendirField.setFont(debeRendirFieldFont);
|
||||||
|
}
|
||||||
|
debeRendirField.setText("");
|
||||||
|
panel1.add(debeRendirField, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
rendidoField = new NumberFormatedTextField();
|
||||||
|
rendidoField.setEditable(false);
|
||||||
|
Font rendidoFieldFont = this.$$$getFont$$$(null, Font.BOLD, -1, rendidoField.getFont());
|
||||||
|
if (rendidoFieldFont != null) {
|
||||||
|
rendidoField.setFont(rendidoFieldFont);
|
||||||
|
}
|
||||||
|
rendidoField.setText("");
|
||||||
|
panel1.add(rendidoField, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final JLabel label4 = new JLabel();
|
||||||
|
label4.setText("Rendido");
|
||||||
|
panel1.add(label4,
|
||||||
|
new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
final JLabel label5 = new JLabel();
|
||||||
|
label5.setText("Total Documentos");
|
||||||
|
panel1.add(label5,
|
||||||
|
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
documentosField = new NumberFormatedTextField();
|
||||||
|
documentosField.setEditable(false);
|
||||||
|
documentosField.setText("");
|
||||||
|
panel1.add(documentosField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final JLabel label6 = new JLabel();
|
||||||
|
label6.setText("Total Efectivo");
|
||||||
|
panel1.add(label6,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
efectivoField = new NumberFormatedTextField();
|
||||||
|
efectivoField.setEditable(false);
|
||||||
|
efectivoField.setText("");
|
||||||
|
panel1.add(efectivoField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final JPanel panel2 = new JPanel();
|
||||||
|
panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
contentPanel.add(panel2,
|
||||||
|
new GridConstraints(0, 0, 3, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
final JPanel panel3 = new JPanel();
|
||||||
|
panel3.setLayout(new GridLayoutManager(10, 2, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
|
panel2.add(panel3,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
panel3.setBorder(BorderFactory
|
||||||
|
.createTitledBorder(BorderFactory.createEtchedBorder(), "Detalle Efectivo",
|
||||||
|
TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
|
||||||
|
this.$$$getFont$$$(null, -1, -1, panel3.getFont())));
|
||||||
|
final JLabel label7 = new JLabel();
|
||||||
|
label7.setText("$20000");
|
||||||
|
panel3.add(label7,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
veinteMilField = new NumberFormatedTextField();
|
||||||
|
veinteMilField.setText("");
|
||||||
|
panel3.add(veinteMilField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
final JLabel label8 = new JLabel();
|
||||||
|
label8.setText("$10000");
|
||||||
|
panel3.add(label8,
|
||||||
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
diezMilField = new NumberFormatedTextField();
|
||||||
|
diezMilField.setText("");
|
||||||
|
panel3.add(diezMilField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
cincoMilField = new NumberFormatedTextField();
|
||||||
|
cincoMilField.setText("");
|
||||||
|
panel3.add(cincoMilField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
final JLabel label9 = new JLabel();
|
||||||
|
label9.setText("$5000");
|
||||||
|
panel3.add(label9,
|
||||||
|
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
final JLabel label10 = new JLabel();
|
||||||
|
label10.setText("$2000");
|
||||||
|
panel3.add(label10,
|
||||||
|
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
dosMilField = new NumberFormatedTextField();
|
||||||
|
dosMilField.setText("");
|
||||||
|
panel3.add(dosMilField, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
milField = new NumberFormatedTextField();
|
||||||
|
milField.setText("");
|
||||||
|
panel3.add(milField, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
final JLabel label11 = new JLabel();
|
||||||
|
label11.setText("$1000");
|
||||||
|
panel3.add(label11,
|
||||||
|
new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
final JLabel label12 = new JLabel();
|
||||||
|
label12.setText("$500");
|
||||||
|
panel3.add(label12,
|
||||||
|
new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
quinientosField = new NumberFormatedTextField();
|
||||||
|
quinientosField.setText("");
|
||||||
|
panel3.add(quinientosField, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
final JLabel label13 = new JLabel();
|
||||||
|
label13.setText("$100");
|
||||||
|
panel3.add(label13,
|
||||||
|
new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
cienField = new NumberFormatedTextField();
|
||||||
|
cienField.setText("");
|
||||||
|
panel3.add(cienField, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
final JLabel label14 = new JLabel();
|
||||||
|
label14.setText("$50");
|
||||||
|
panel3.add(label14,
|
||||||
|
new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
cincuentaField = new NumberFormatedTextField();
|
||||||
|
cincuentaField.setText("");
|
||||||
|
panel3.add(cincuentaField, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
final JLabel label15 = new JLabel();
|
||||||
|
label15.setText("$10");
|
||||||
|
panel3.add(label15,
|
||||||
|
new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
diezField = new NumberFormatedTextField();
|
||||||
|
diezField.setText("");
|
||||||
|
panel3.add(diezField, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
guardarEfectivoButton = new JButton();
|
||||||
|
guardarEfectivoButton.setText("Guardar");
|
||||||
|
panel3.add(guardarEfectivoButton, new GridConstraints(9, 0, 1, 2, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null, 0, false));
|
||||||
|
final JPanel panel4 = new JPanel();
|
||||||
|
panel4.setLayout(new GridLayoutManager(4, 2, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
|
panel2.add(panel4,
|
||||||
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
panel4.setBorder(BorderFactory
|
||||||
|
.createTitledBorder(BorderFactory.createEtchedBorder(), "Detalle Documentos",
|
||||||
|
TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
|
||||||
|
this.$$$getFont$$$(null, -1, -1, panel4.getFont())));
|
||||||
|
chequesField = new NumberFormatedTextField();
|
||||||
|
chequesField.setText("");
|
||||||
|
panel4.add(chequesField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final JLabel label16 = new JLabel();
|
||||||
|
label16.setText("Tarjetas de Credito");
|
||||||
|
panel4.add(label16,
|
||||||
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
tarjetasField = new NumberFormatedTextField();
|
||||||
|
tarjetasField.setText("");
|
||||||
|
panel4.add(tarjetasField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
guardarDocumentosButton = new JButton();
|
||||||
|
guardarDocumentosButton.setText("Guardar");
|
||||||
|
panel4.add(guardarDocumentosButton,
|
||||||
|
new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final JLabel label17 = new JLabel();
|
||||||
|
label17.setText("Cheques al Dia");
|
||||||
|
panel4.add(label17,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
retiroField = new NumberFormatedTextField();
|
||||||
|
retiroField.setText("");
|
||||||
|
panel4.add(retiroField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final JLabel label18 = new JLabel();
|
||||||
|
label18.setText("Retiro");
|
||||||
|
panel4.add(label18,
|
||||||
|
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
final JPanel panel5 = new JPanel();
|
||||||
|
panel5.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
contentPanel.add(panel5,
|
||||||
|
new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
calcularFondoButton = new JButton();
|
||||||
|
calcularFondoButton.setText("Calcular Fondo");
|
||||||
|
panel5.add(calcularFondoButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final Spacer spacer1 = new Spacer();
|
||||||
|
contentPanel.add(spacer1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @noinspection ALL
|
* @noinspection ALL
|
||||||
*/
|
*/
|
||||||
private Font $$$getFont$$$(String fontName, int style, int size, Font currentFont) {
|
private Font $$$getFont$$$(String fontName, int style, int size, Font currentFont) {
|
||||||
if (currentFont == null) return null;
|
if (currentFont == null) {
|
||||||
String resultName;
|
return null;
|
||||||
if (fontName == null) {
|
|
||||||
resultName = currentFont.getName();
|
|
||||||
} else {
|
|
||||||
Font testFont = new Font(fontName, Font.PLAIN, 10);
|
|
||||||
if (testFont.canDisplay('a') && testFont.canDisplay('1')) {
|
|
||||||
resultName = fontName;
|
|
||||||
} else {
|
|
||||||
resultName = currentFont.getName();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new Font(resultName, style >= 0 ? style : currentFont.getStyle(), size >= 0 ? size : currentFont.getSize());
|
|
||||||
}
|
}
|
||||||
|
String resultName;
|
||||||
|
if (fontName == null) {
|
||||||
|
resultName = currentFont.getName();
|
||||||
|
} else {
|
||||||
|
Font testFont = new Font(fontName, Font.PLAIN, 10);
|
||||||
|
if (testFont.canDisplay('a') && testFont.canDisplay('1')) {
|
||||||
|
resultName = fontName;
|
||||||
|
} else {
|
||||||
|
resultName = currentFont.getName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return new Font(resultName, style >= 0 ? style : currentFont.getStyle(),
|
||||||
|
size >= 0 ? size : currentFont.getSize());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @noinspection ALL
|
* @noinspection ALL
|
||||||
*/
|
*/
|
||||||
public JComponent $$$getRootComponent$$$() {
|
public JComponent $$$getRootComponent$$$() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,215 +48,287 @@ import javax.swing.table.TableRowSorter;
|
|||||||
|
|
||||||
public class EgresosView {
|
public class EgresosView {
|
||||||
|
|
||||||
public JPanel contentPanel;
|
public JPanel contentPanel;
|
||||||
private JTable egresosTable;
|
private JTable egresosTable;
|
||||||
private JButton guardarButton;
|
private JButton guardarButton;
|
||||||
private NumberFormatedTextField valorField;
|
private NumberFormatedTextField valorField;
|
||||||
private JTextField descripcionField;
|
private JTextField descripcionField;
|
||||||
private JTextField nroField;
|
private JTextField nroField;
|
||||||
private NumberFormatedTextField totalEgresosField;
|
private NumberFormatedTextField totalEgresosField;
|
||||||
private JComboBox<TipoEgresoToStringWrapper> tipoCombo;
|
private JComboBox<TipoEgresoToStringWrapper> tipoCombo;
|
||||||
|
|
||||||
|
|
||||||
private JButton eliminarButton;
|
private JButton eliminarButton;
|
||||||
private JLabel errorNumero;
|
private JLabel errorNumero;
|
||||||
private JLabel errorDescripcion;
|
private JLabel errorDescripcion;
|
||||||
private JLabel errorValor;
|
private JLabel errorValor;
|
||||||
private JLabel errorTipoEgreso;
|
private JLabel errorTipoEgreso;
|
||||||
private JButton editarButton;
|
private JButton editarButton;
|
||||||
|
|
||||||
private EgresosTableModel egresosTableModel;
|
private EgresosTableModel egresosTableModel;
|
||||||
|
|
||||||
private void createUIComponents() {
|
private void createUIComponents() {
|
||||||
createEgresosTable();
|
createEgresosTable();
|
||||||
createTipoCombo();
|
createTipoCombo();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createEgresosTable() {
|
private void createEgresosTable() {
|
||||||
egresosTableModel = new EgresosTableModel();
|
egresosTableModel = new EgresosTableModel();
|
||||||
egresosTable = new JTable(egresosTableModel);
|
egresosTable = new JTable(egresosTableModel);
|
||||||
|
|
||||||
RowSorter<EgresosTableModel> sorter = new TableRowSorter<>(egresosTableModel);
|
RowSorter<EgresosTableModel> sorter = new TableRowSorter<>(egresosTableModel);
|
||||||
egresosTable.setRowSorter(sorter);
|
egresosTable.setRowSorter(sorter);
|
||||||
egresosTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
egresosTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createTipoCombo() {
|
private void createTipoCombo() {
|
||||||
this.tipoCombo = new JComboBox<>();
|
this.tipoCombo = new JComboBox<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public JPanel getContentPanel() {
|
public JPanel getContentPanel() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getGuardarButton() {
|
public JButton getGuardarButton() {
|
||||||
return guardarButton;
|
return guardarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getEliminarButton() {
|
public JButton getEliminarButton() {
|
||||||
return eliminarButton;
|
return eliminarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getEditarButton() {
|
public JButton getEditarButton() {
|
||||||
return editarButton;
|
return editarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getValorField() {
|
public NumberFormatedTextField getValorField() {
|
||||||
return valorField;
|
return valorField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTextField getDescripcionField() {
|
public JTextField getDescripcionField() {
|
||||||
return descripcionField;
|
return descripcionField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTextField getNroField() {
|
public JTextField getNroField() {
|
||||||
return nroField;
|
return nroField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getTotalEgresosField() {
|
public NumberFormatedTextField getTotalEgresosField() {
|
||||||
return totalEgresosField;
|
return totalEgresosField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JComboBox<TipoEgresoToStringWrapper> getTipoCombo() {
|
public JComboBox<TipoEgresoToStringWrapper> getTipoCombo() {
|
||||||
return tipoCombo;
|
return tipoCombo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTable getEgresosTable() {
|
public JTable getEgresosTable() {
|
||||||
return egresosTable;
|
return egresosTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EgresosTableModel getEgresosTableModel() {
|
public EgresosTableModel getEgresosTableModel() {
|
||||||
return egresosTableModel;
|
return egresosTableModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorNumero() {
|
public JLabel getErrorNumero() {
|
||||||
return errorNumero;
|
return errorNumero;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorDescripcion() {
|
public JLabel getErrorDescripcion() {
|
||||||
return errorDescripcion;
|
return errorDescripcion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorValor() {
|
public JLabel getErrorValor() {
|
||||||
return errorValor;
|
return errorValor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorTipoEgreso() {
|
public JLabel getErrorTipoEgreso() {
|
||||||
return errorTipoEgreso;
|
return errorTipoEgreso;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
// >>> IMPORTANT!! <<<
|
// >>> IMPORTANT!! <<<
|
||||||
// DO NOT EDIT OR ADD ANY CODE HERE!
|
// DO NOT EDIT OR ADD ANY CODE HERE!
|
||||||
$$$setupUI$$$();
|
$$$setupUI$$$();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
|
||||||
* >>> IMPORTANT!! <<<
|
* call it in your code!
|
||||||
* DO NOT edit this method OR call it in your code!
|
*
|
||||||
*
|
* @noinspection ALL
|
||||||
* @noinspection ALL
|
*/
|
||||||
*/
|
private void $$$setupUI$$$() {
|
||||||
private void $$$setupUI$$$() {
|
createUIComponents();
|
||||||
createUIComponents();
|
contentPanel = new JPanel();
|
||||||
contentPanel = new JPanel();
|
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
final JPanel panel1 = new JPanel();
|
||||||
final JPanel panel1 = new JPanel();
|
panel1.setLayout(new GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
panel1.setLayout(new GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));
|
contentPanel.add(panel1,
|
||||||
contentPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Egresos"));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
final JScrollPane scrollPane1 = new JScrollPane();
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
panel1.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
|
null, 0, false));
|
||||||
scrollPane1.setViewportView(egresosTable);
|
panel1
|
||||||
final JPanel panel2 = new JPanel();
|
.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Egresos"));
|
||||||
panel2.setLayout(new GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), -1, -1));
|
final JScrollPane scrollPane1 = new JScrollPane();
|
||||||
panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
panel1.add(scrollPane1,
|
||||||
final JLabel label1 = new JLabel();
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
label1.setText("N°");
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
panel2.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null,
|
||||||
final JLabel label2 = new JLabel();
|
null, null, 0, false));
|
||||||
label2.setText("Descripcion");
|
scrollPane1.setViewportView(egresosTable);
|
||||||
panel2.add(label2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
final JPanel panel2 = new JPanel();
|
||||||
descripcionField = new JTextField();
|
panel2.setLayout(new GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
panel2.add(descripcionField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
panel1.add(panel2,
|
||||||
nroField = new JTextField();
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
panel2.add(nroField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
valorField = new NumberFormatedTextField();
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
panel2.add(valorField, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
null, 0, false));
|
||||||
final JLabel label3 = new JLabel();
|
final JLabel label1 = new JLabel();
|
||||||
label3.setText("Valor");
|
label1.setText("N°");
|
||||||
panel2.add(label3, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel2.add(label1,
|
||||||
final JLabel label4 = new JLabel();
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
label4.setText("Tipo");
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
panel2.add(label4, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
false));
|
||||||
panel2.add(tipoCombo, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
final JLabel label2 = new JLabel();
|
||||||
errorNumero = new JLabel();
|
label2.setText("Descripcion");
|
||||||
errorNumero.setEnabled(true);
|
panel2.add(label2,
|
||||||
errorNumero.setForeground(new Color(-65536));
|
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
errorNumero.setText("Error");
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
errorNumero.setVisible(false);
|
false));
|
||||||
panel2.add(errorNumero, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
descripcionField = new JTextField();
|
||||||
errorDescripcion = new JLabel();
|
panel2.add(descripcionField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
errorDescripcion.setEnabled(true);
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
errorDescripcion.setForeground(new Color(-65536));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
errorDescripcion.setText("Error");
|
nroField = new JTextField();
|
||||||
errorDescripcion.setVisible(false);
|
panel2.add(nroField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
panel2.add(errorDescripcion, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
errorValor = new JLabel();
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
errorValor.setEnabled(true);
|
valorField = new NumberFormatedTextField();
|
||||||
errorValor.setForeground(new Color(-65536));
|
panel2.add(valorField, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
errorValor.setText("Error");
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
errorValor.setVisible(false);
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
panel2.add(errorValor, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
final JLabel label3 = new JLabel();
|
||||||
errorTipoEgreso = new JLabel();
|
label3.setText("Valor");
|
||||||
errorTipoEgreso.setEnabled(true);
|
panel2.add(label3,
|
||||||
errorTipoEgreso.setForeground(new Color(-65536));
|
new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
errorTipoEgreso.setText("Error");
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
errorTipoEgreso.setVisible(false);
|
false));
|
||||||
panel2.add(errorTipoEgreso, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
final JLabel label4 = new JLabel();
|
||||||
final JPanel panel3 = new JPanel();
|
label4.setText("Tipo");
|
||||||
panel3.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
panel2.add(label4,
|
||||||
panel1.add(panel3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
final JPanel panel4 = new JPanel();
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
panel4.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
false));
|
||||||
panel3.add(panel4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
panel2.add(tipoCombo, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
guardarButton = new JButton();
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
guardarButton.setText("Añadir");
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
guardarButton.setMnemonic('A');
|
errorNumero = new JLabel();
|
||||||
guardarButton.setDisplayedMnemonicIndex(0);
|
errorNumero.setEnabled(true);
|
||||||
panel4.add(guardarButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
errorNumero.setForeground(new Color(-65536));
|
||||||
eliminarButton = new JButton();
|
errorNumero.setText("Error");
|
||||||
eliminarButton.setEnabled(false);
|
errorNumero.setVisible(false);
|
||||||
eliminarButton.setText("Eliminar");
|
panel2.add(errorNumero,
|
||||||
eliminarButton.setMnemonic('E');
|
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
eliminarButton.setDisplayedMnemonicIndex(0);
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
panel4.add(eliminarButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
false));
|
||||||
editarButton = new JButton();
|
errorDescripcion = new JLabel();
|
||||||
editarButton.setEnabled(false);
|
errorDescripcion.setEnabled(true);
|
||||||
editarButton.setText("Editar");
|
errorDescripcion.setForeground(new Color(-65536));
|
||||||
editarButton.setMnemonic('D');
|
errorDescripcion.setText("Error");
|
||||||
editarButton.setDisplayedMnemonicIndex(1);
|
errorDescripcion.setVisible(false);
|
||||||
panel4.add(editarButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
panel2.add(errorDescripcion,
|
||||||
final Spacer spacer1 = new Spacer();
|
new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
panel3.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
final JPanel panel5 = new JPanel();
|
false));
|
||||||
panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));
|
errorValor = new JLabel();
|
||||||
panel3.add(panel5, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
errorValor.setEnabled(true);
|
||||||
final JLabel label5 = new JLabel();
|
errorValor.setForeground(new Color(-65536));
|
||||||
label5.setText("Total Egresos:");
|
errorValor.setText("Error");
|
||||||
panel5.add(label5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
errorValor.setVisible(false);
|
||||||
totalEgresosField = new NumberFormatedTextField();
|
panel2.add(errorValor,
|
||||||
totalEgresosField.setEditable(false);
|
new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
panel5.add(totalEgresosField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
}
|
false));
|
||||||
|
errorTipoEgreso = new JLabel();
|
||||||
|
errorTipoEgreso.setEnabled(true);
|
||||||
|
errorTipoEgreso.setForeground(new Color(-65536));
|
||||||
|
errorTipoEgreso.setText("Error");
|
||||||
|
errorTipoEgreso.setVisible(false);
|
||||||
|
panel2.add(errorTipoEgreso,
|
||||||
|
new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
final JPanel panel3 = new JPanel();
|
||||||
|
panel3.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
panel1.add(panel3,
|
||||||
|
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
final JPanel panel4 = new JPanel();
|
||||||
|
panel4.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
panel3.add(panel4,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
guardarButton = new JButton();
|
||||||
|
guardarButton.setText("Añadir");
|
||||||
|
guardarButton.setMnemonic('A');
|
||||||
|
guardarButton.setDisplayedMnemonicIndex(0);
|
||||||
|
panel4.add(guardarButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
eliminarButton = new JButton();
|
||||||
|
eliminarButton.setEnabled(false);
|
||||||
|
eliminarButton.setText("Eliminar");
|
||||||
|
eliminarButton.setMnemonic('E');
|
||||||
|
eliminarButton.setDisplayedMnemonicIndex(0);
|
||||||
|
panel4.add(eliminarButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
editarButton = new JButton();
|
||||||
|
editarButton.setEnabled(false);
|
||||||
|
editarButton.setText("Editar");
|
||||||
|
editarButton.setMnemonic('D');
|
||||||
|
editarButton.setDisplayedMnemonicIndex(1);
|
||||||
|
panel4.add(editarButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final Spacer spacer1 = new Spacer();
|
||||||
|
panel3.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null,
|
||||||
|
0, false));
|
||||||
|
final JPanel panel5 = new JPanel();
|
||||||
|
panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
panel3.add(panel5,
|
||||||
|
new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
final JLabel label5 = new JLabel();
|
||||||
|
label5.setText("Total Egresos:");
|
||||||
|
panel5.add(label5,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
totalEgresosField = new NumberFormatedTextField();
|
||||||
|
totalEgresosField.setEditable(false);
|
||||||
|
panel5.add(totalEgresosField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @noinspection ALL
|
* @noinspection ALL
|
||||||
*/
|
*/
|
||||||
public JComponent $$$getRootComponent$$$() {
|
public JComponent $$$getRootComponent$$$() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -35,82 +35,106 @@ import javax.swing.JPanel;
|
|||||||
|
|
||||||
public class InformesSideBar {
|
public class InformesSideBar {
|
||||||
|
|
||||||
private JButton generarLibroVentasButton;
|
private JButton generarLibroVentasButton;
|
||||||
private JPanel contentPanel;
|
private JPanel contentPanel;
|
||||||
private JButton GenerarEgresosFacturasMateriaPrimaButton;
|
private JButton GenerarEgresosFacturasMateriaPrimaButton;
|
||||||
private JButton estadoResultadoButton;
|
private JButton estadoResultadoButton;
|
||||||
private JButton generarResumenArqueoButton;
|
private JButton generarResumenArqueoButton;
|
||||||
private JButton volverButton;
|
private JButton volverButton;
|
||||||
|
|
||||||
public JPanel getContentPanel() {
|
public JPanel getContentPanel() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getInformeLibroDeVentasButton() {
|
public JButton getInformeLibroDeVentasButton() {
|
||||||
return generarLibroVentasButton;
|
return generarLibroVentasButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getGenerarEgresosFacturasMateriaPrimaButton() {
|
public JButton getGenerarEgresosFacturasMateriaPrimaButton() {
|
||||||
return GenerarEgresosFacturasMateriaPrimaButton;
|
return GenerarEgresosFacturasMateriaPrimaButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getEstadoResultadoButton() {
|
public JButton getEstadoResultadoButton() {
|
||||||
return estadoResultadoButton;
|
return estadoResultadoButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getGenerarResumenArqueoButton() {
|
public JButton getGenerarResumenArqueoButton() {
|
||||||
return generarResumenArqueoButton;
|
return generarResumenArqueoButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getVolverButton() {
|
public JButton getVolverButton() {
|
||||||
return volverButton;
|
return volverButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
// >>> IMPORTANT!! <<<
|
// >>> IMPORTANT!! <<<
|
||||||
// DO NOT EDIT OR ADD ANY CODE HERE!
|
// DO NOT EDIT OR ADD ANY CODE HERE!
|
||||||
$$$setupUI$$$();
|
$$$setupUI$$$();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
|
||||||
* >>> IMPORTANT!! <<<
|
* call it in your code!
|
||||||
* DO NOT edit this method OR call it in your code!
|
*
|
||||||
*
|
* @noinspection ALL
|
||||||
* @noinspection ALL
|
*/
|
||||||
*/
|
private void $$$setupUI$$$() {
|
||||||
private void $$$setupUI$$$() {
|
contentPanel = new JPanel();
|
||||||
contentPanel = new JPanel();
|
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
final JPanel panel1 = new JPanel();
|
||||||
final JPanel panel1 = new JPanel();
|
panel1.setLayout(new GridLayoutManager(6, 1, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
panel1.setLayout(new GridLayoutManager(6, 1, new Insets(10, 10, 10, 10), -1, -1));
|
contentPanel.add(panel1,
|
||||||
contentPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Informes Mensuales"));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
generarLibroVentasButton = new JButton();
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
generarLibroVentasButton.setText("Libro de Ventas Mensual");
|
null, 0, false));
|
||||||
panel1.add(generarLibroVentasButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel1.setBorder(
|
||||||
GenerarEgresosFacturasMateriaPrimaButton = new JButton();
|
BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Informes Mensuales"));
|
||||||
GenerarEgresosFacturasMateriaPrimaButton.setText("Informe de Egresos");
|
generarLibroVentasButton = new JButton();
|
||||||
panel1.add(GenerarEgresosFacturasMateriaPrimaButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
generarLibroVentasButton.setText("Libro de Ventas Mensual");
|
||||||
final Spacer spacer1 = new Spacer();
|
panel1.add(generarLibroVentasButton,
|
||||||
panel1.add(spacer1, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
estadoResultadoButton = new JButton();
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
estadoResultadoButton.setText("Estado Resultado");
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
panel1.add(estadoResultadoButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
volverButton = new JButton();
|
GenerarEgresosFacturasMateriaPrimaButton = new JButton();
|
||||||
volverButton.setText("Volver");
|
GenerarEgresosFacturasMateriaPrimaButton.setText("Informe de Egresos");
|
||||||
panel1.add(volverButton, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel1.add(GenerarEgresosFacturasMateriaPrimaButton,
|
||||||
generarResumenArqueoButton = new JButton();
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
generarResumenArqueoButton.setText("Resumen Arqueo");
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
panel1.add(generarResumenArqueoButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
}
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final Spacer spacer1 = new Spacer();
|
||||||
|
panel1.add(spacer1, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
estadoResultadoButton = new JButton();
|
||||||
|
estadoResultadoButton.setText("Estado Resultado");
|
||||||
|
panel1.add(estadoResultadoButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
volverButton = new JButton();
|
||||||
|
volverButton.setText("Volver");
|
||||||
|
panel1.add(volverButton, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
generarResumenArqueoButton = new JButton();
|
||||||
|
generarResumenArqueoButton.setText("Resumen Arqueo");
|
||||||
|
panel1.add(generarResumenArqueoButton,
|
||||||
|
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @noinspection ALL
|
* @noinspection ALL
|
||||||
*/
|
*/
|
||||||
public JComponent $$$getRootComponent$$$() {
|
public JComponent $$$getRootComponent$$$() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,240 +49,325 @@ import javax.swing.table.TableRowSorter;
|
|||||||
|
|
||||||
public class IngresosView {
|
public class IngresosView {
|
||||||
|
|
||||||
private JPanel contentPanel;
|
private JPanel contentPanel;
|
||||||
private JTable ingresosTable;
|
private JTable ingresosTable;
|
||||||
private JButton guardarButton;
|
private JButton guardarButton;
|
||||||
private JButton eliminarButton;
|
private JButton eliminarButton;
|
||||||
private NumberFormatedTextField totalIngresoField;
|
private NumberFormatedTextField totalIngresoField;
|
||||||
private NumberFormatedTextField valorField;
|
private NumberFormatedTextField valorField;
|
||||||
private JComboBox<TipoIngresoToStringWrapper> tipoCombo;
|
private JComboBox<TipoIngresoToStringWrapper> tipoCombo;
|
||||||
private JLabel errorTipoIngreso;
|
private JLabel errorTipoIngreso;
|
||||||
private JLabel errorValor;
|
private JLabel errorValor;
|
||||||
private JButton editarButton;
|
private JButton editarButton;
|
||||||
private JTextField nroInicialField;
|
private JTextField nroInicialField;
|
||||||
private JTextField nroFinalField;
|
private JTextField nroFinalField;
|
||||||
private JLabel errorNroInicial;
|
private JLabel errorNroInicial;
|
||||||
private JLabel errorNroFinal;
|
private JLabel errorNroFinal;
|
||||||
private JTextField nroZInicialField;
|
private JTextField nroZInicialField;
|
||||||
private JTextField nroZFinalField;
|
private JTextField nroZFinalField;
|
||||||
private JLabel errorNroZFinal;
|
private JLabel errorNroZFinal;
|
||||||
private JLabel errorNroZInicial;
|
private JLabel errorNroZInicial;
|
||||||
|
|
||||||
private IngresosTableModel ingresosTableModel;
|
private IngresosTableModel ingresosTableModel;
|
||||||
|
|
||||||
private void createUIComponents() {
|
private void createUIComponents() {
|
||||||
this.createIngresosTable();
|
this.createIngresosTable();
|
||||||
this.createTipoCombo();
|
this.createTipoCombo();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createIngresosTable() {
|
private void createIngresosTable() {
|
||||||
this.ingresosTableModel = new IngresosTableModel();
|
this.ingresosTableModel = new IngresosTableModel();
|
||||||
this.ingresosTable = new JTable(ingresosTableModel);
|
this.ingresosTable = new JTable(ingresosTableModel);
|
||||||
|
|
||||||
RowSorter<IngresosTableModel> sorter = new TableRowSorter<>(ingresosTableModel);
|
RowSorter<IngresosTableModel> sorter = new TableRowSorter<>(ingresosTableModel);
|
||||||
this.ingresosTable.setRowSorter(sorter);
|
this.ingresosTable.setRowSorter(sorter);
|
||||||
this.ingresosTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
this.ingresosTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createTipoCombo() {
|
private void createTipoCombo() {
|
||||||
this.tipoCombo = new JComboBox<>();
|
this.tipoCombo = new JComboBox<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public JPanel getContentPanel() {
|
public JPanel getContentPanel() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTable getIngresosTable() {
|
public JTable getIngresosTable() {
|
||||||
return ingresosTable;
|
return ingresosTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getGuardarButton() {
|
public JButton getGuardarButton() {
|
||||||
return guardarButton;
|
return guardarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getEliminarButton() {
|
public JButton getEliminarButton() {
|
||||||
return eliminarButton;
|
return eliminarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getTotalIngresoField() {
|
public NumberFormatedTextField getTotalIngresoField() {
|
||||||
return totalIngresoField;
|
return totalIngresoField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NumberFormatedTextField getValorField() {
|
public NumberFormatedTextField getValorField() {
|
||||||
return valorField;
|
return valorField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JComboBox<TipoIngresoToStringWrapper> getTipoCombo() {
|
public JComboBox<TipoIngresoToStringWrapper> getTipoCombo() {
|
||||||
return tipoCombo;
|
return tipoCombo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorTipoIngreso() {
|
public JLabel getErrorTipoIngreso() {
|
||||||
return errorTipoIngreso;
|
return errorTipoIngreso;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorValor() {
|
public JLabel getErrorValor() {
|
||||||
return errorValor;
|
return errorValor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getEditarButton() {
|
public JButton getEditarButton() {
|
||||||
return editarButton;
|
return editarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTextField getNroInicialField() {
|
public JTextField getNroInicialField() {
|
||||||
return nroInicialField;
|
return nroInicialField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTextField getNroFinalField() {
|
public JTextField getNroFinalField() {
|
||||||
return nroFinalField;
|
return nroFinalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorNroInicial() {
|
public JLabel getErrorNroInicial() {
|
||||||
return errorNroInicial;
|
return errorNroInicial;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorNroFinal() {
|
public JLabel getErrorNroFinal() {
|
||||||
return errorNroFinal;
|
return errorNroFinal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IngresosTableModel getIngresosTableModel() {
|
public IngresosTableModel getIngresosTableModel() {
|
||||||
return ingresosTableModel;
|
return ingresosTableModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTextField getNroZInicialField() {
|
public JTextField getNroZInicialField() {
|
||||||
return nroZInicialField;
|
return nroZInicialField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JTextField getNroZFinalField() {
|
public JTextField getNroZFinalField() {
|
||||||
return nroZFinalField;
|
return nroZFinalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorNroZFinal() {
|
public JLabel getErrorNroZFinal() {
|
||||||
return errorNroZFinal;
|
return errorNroZFinal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JLabel getErrorNroZInicial() {
|
public JLabel getErrorNroZInicial() {
|
||||||
return errorNroZInicial;
|
return errorNroZInicial;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
// >>> IMPORTANT!! <<<
|
// >>> IMPORTANT!! <<<
|
||||||
// DO NOT EDIT OR ADD ANY CODE HERE!
|
// DO NOT EDIT OR ADD ANY CODE HERE!
|
||||||
$$$setupUI$$$();
|
$$$setupUI$$$();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
|
||||||
* >>> IMPORTANT!! <<<
|
* call it in your code!
|
||||||
* DO NOT edit this method OR call it in your code!
|
*
|
||||||
*
|
* @noinspection ALL
|
||||||
* @noinspection ALL
|
*/
|
||||||
*/
|
private void $$$setupUI$$$() {
|
||||||
private void $$$setupUI$$$() {
|
createUIComponents();
|
||||||
createUIComponents();
|
contentPanel = new JPanel();
|
||||||
contentPanel = new JPanel();
|
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
final JPanel panel1 = new JPanel();
|
||||||
final JPanel panel1 = new JPanel();
|
panel1.setLayout(new GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
panel1.setLayout(new GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));
|
contentPanel.add(panel1,
|
||||||
contentPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Ingresos"));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
final JScrollPane scrollPane1 = new JScrollPane();
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
panel1.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
|
null, 0, false));
|
||||||
scrollPane1.setViewportView(ingresosTable);
|
panel1.setBorder(
|
||||||
final JPanel panel2 = new JPanel();
|
BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Ingresos"));
|
||||||
panel2.setLayout(new GridLayoutManager(3, 6, new Insets(0, 0, 0, 0), -1, -1));
|
final JScrollPane scrollPane1 = new JScrollPane();
|
||||||
panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(150, -1), null, 0, false));
|
panel1.add(scrollPane1,
|
||||||
final JLabel label1 = new JLabel();
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
label1.setText("Tipo");
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
panel2.add(label1, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null,
|
||||||
final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();
|
null, null, 0, false));
|
||||||
tipoCombo.setModel(defaultComboBoxModel1);
|
scrollPane1.setViewportView(ingresosTable);
|
||||||
panel2.add(tipoCombo, new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
final JPanel panel2 = new JPanel();
|
||||||
final JLabel label2 = new JLabel();
|
panel2.setLayout(new GridLayoutManager(3, 6, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
label2.setText("Valor");
|
panel1.add(panel2,
|
||||||
panel2.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
valorField = new NumberFormatedTextField();
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
panel2.add(valorField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null,
|
||||||
final JLabel label3 = new JLabel();
|
new Dimension(150, -1), null, 0, false));
|
||||||
label3.setText("N° Inicial");
|
final JLabel label1 = new JLabel();
|
||||||
panel2.add(label3, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
label1.setText("Tipo");
|
||||||
final JLabel label4 = new JLabel();
|
panel2.add(label1,
|
||||||
label4.setText("N° Final");
|
new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
panel2.add(label4, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
nroInicialField = new JTextField();
|
false));
|
||||||
panel2.add(nroInicialField, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();
|
||||||
nroFinalField = new JTextField();
|
tipoCombo.setModel(defaultComboBoxModel1);
|
||||||
panel2.add(nroFinalField, new GridConstraints(1, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
panel2.add(tipoCombo, new GridConstraints(1, 5, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
errorTipoIngreso = new JLabel();
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
errorTipoIngreso.setForeground(new Color(-65536));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
errorTipoIngreso.setText("Label");
|
final JLabel label2 = new JLabel();
|
||||||
errorTipoIngreso.setVisible(false);
|
label2.setText("Valor");
|
||||||
panel2.add(errorTipoIngreso, new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel2.add(label2,
|
||||||
errorNroInicial = new JLabel();
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
errorNroInicial.setForeground(new Color(-65536));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
errorNroInicial.setText("Label");
|
false));
|
||||||
errorNroInicial.setVisible(false);
|
valorField = new NumberFormatedTextField();
|
||||||
panel2.add(errorNroInicial, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel2.add(valorField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
errorNroFinal = new JLabel();
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
errorNroFinal.setForeground(new Color(-65536));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
errorNroFinal.setText("Label");
|
final JLabel label3 = new JLabel();
|
||||||
errorNroFinal.setVisible(false);
|
label3.setText("N° Inicial");
|
||||||
panel2.add(errorNroFinal, new GridConstraints(2, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel2.add(label3,
|
||||||
final JLabel label5 = new JLabel();
|
new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
label5.setText("N° Z Inicial");
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
panel2.add(label5, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
false));
|
||||||
final JLabel label6 = new JLabel();
|
final JLabel label4 = new JLabel();
|
||||||
label6.setText("N° Z Final");
|
label4.setText("N° Final");
|
||||||
panel2.add(label6, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel2.add(label4,
|
||||||
nroZInicialField = new JTextField();
|
new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
panel2.add(nroZInicialField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
nroZFinalField = new JTextField();
|
false));
|
||||||
panel2.add(nroZFinalField, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
nroInicialField = new JTextField();
|
||||||
errorNroZInicial = new JLabel();
|
panel2.add(nroInicialField, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
errorNroZInicial.setForeground(new Color(-65536));
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
errorNroZInicial.setText("Label");
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
errorNroZInicial.setVisible(false);
|
nroFinalField = new JTextField();
|
||||||
panel2.add(errorNroZInicial, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
panel2.add(nroFinalField, new GridConstraints(1, 4, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
errorNroZFinal = new JLabel();
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
errorNroZFinal.setForeground(new Color(-65536));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
errorNroZFinal.setText("Label");
|
errorTipoIngreso = new JLabel();
|
||||||
errorNroZFinal.setVisible(false);
|
errorTipoIngreso.setForeground(new Color(-65536));
|
||||||
panel2.add(errorNroZFinal, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
errorTipoIngreso.setText("Label");
|
||||||
final JPanel panel3 = new JPanel();
|
errorTipoIngreso.setVisible(false);
|
||||||
panel3.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
panel2.add(errorTipoIngreso,
|
||||||
panel1.add(panel3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
new GridConstraints(2, 5, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
final JPanel panel4 = new JPanel();
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
panel4.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));
|
false));
|
||||||
panel3.add(panel4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
errorNroInicial = new JLabel();
|
||||||
final JLabel label7 = new JLabel();
|
errorNroInicial.setForeground(new Color(-65536));
|
||||||
label7.setText("Total Ingresos");
|
errorNroInicial.setText("Label");
|
||||||
panel4.add(label7, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
errorNroInicial.setVisible(false);
|
||||||
totalIngresoField = new NumberFormatedTextField();
|
panel2.add(errorNroInicial,
|
||||||
totalIngresoField.setEditable(false);
|
new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
panel4.add(totalIngresoField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
final JPanel panel5 = new JPanel();
|
false));
|
||||||
panel5.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
errorNroFinal = new JLabel();
|
||||||
panel3.add(panel5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
errorNroFinal.setForeground(new Color(-65536));
|
||||||
guardarButton = new JButton();
|
errorNroFinal.setText("Label");
|
||||||
guardarButton.setText("Añadir");
|
errorNroFinal.setVisible(false);
|
||||||
guardarButton.setMnemonic('A');
|
panel2.add(errorNroFinal,
|
||||||
guardarButton.setDisplayedMnemonicIndex(0);
|
new GridConstraints(2, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
panel5.add(guardarButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
eliminarButton = new JButton();
|
false));
|
||||||
eliminarButton.setText("Eliminar");
|
final JLabel label5 = new JLabel();
|
||||||
panel5.add(eliminarButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
label5.setText("N° Z Inicial");
|
||||||
editarButton = new JButton();
|
panel2.add(label5,
|
||||||
editarButton.setText("Editar");
|
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
panel5.add(editarButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
final Spacer spacer1 = new Spacer();
|
false));
|
||||||
panel3.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));
|
final JLabel label6 = new JLabel();
|
||||||
}
|
label6.setText("N° Z Final");
|
||||||
|
panel2.add(label6,
|
||||||
|
new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
nroZInicialField = new JTextField();
|
||||||
|
panel2.add(nroZInicialField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
nroZFinalField = new JTextField();
|
||||||
|
panel2.add(nroZFinalField, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
errorNroZInicial = new JLabel();
|
||||||
|
errorNroZInicial.setForeground(new Color(-65536));
|
||||||
|
errorNroZInicial.setText("Label");
|
||||||
|
errorNroZInicial.setVisible(false);
|
||||||
|
panel2.add(errorNroZInicial,
|
||||||
|
new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
errorNroZFinal = new JLabel();
|
||||||
|
errorNroZFinal.setForeground(new Color(-65536));
|
||||||
|
errorNroZFinal.setText("Label");
|
||||||
|
errorNroZFinal.setVisible(false);
|
||||||
|
panel2.add(errorNroZFinal,
|
||||||
|
new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
final JPanel panel3 = new JPanel();
|
||||||
|
panel3.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
panel1.add(panel3,
|
||||||
|
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
final JPanel panel4 = new JPanel();
|
||||||
|
panel4.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
panel3.add(panel4,
|
||||||
|
new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
final JLabel label7 = new JLabel();
|
||||||
|
label7.setText("Total Ingresos");
|
||||||
|
panel4.add(label7,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
totalIngresoField = new NumberFormatedTextField();
|
||||||
|
totalIngresoField.setEditable(false);
|
||||||
|
panel4.add(totalIngresoField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final JPanel panel5 = new JPanel();
|
||||||
|
panel5.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
panel3.add(panel5,
|
||||||
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
|
null, 0, false));
|
||||||
|
guardarButton = new JButton();
|
||||||
|
guardarButton.setText("Añadir");
|
||||||
|
guardarButton.setMnemonic('A');
|
||||||
|
guardarButton.setDisplayedMnemonicIndex(0);
|
||||||
|
panel5.add(guardarButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
eliminarButton = new JButton();
|
||||||
|
eliminarButton.setText("Eliminar");
|
||||||
|
panel5.add(eliminarButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
editarButton = new JButton();
|
||||||
|
editarButton.setText("Editar");
|
||||||
|
panel5.add(editarButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
final Spacer spacer1 = new Spacer();
|
||||||
|
panel3.add(spacer1,
|
||||||
|
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @noinspection ALL
|
* @noinspection ALL
|
||||||
*/
|
*/
|
||||||
public JComponent $$$getRootComponent$$$() {
|
public JComponent $$$getRootComponent$$$() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,63 +11,76 @@ import javax.swing.JPanel;
|
|||||||
|
|
||||||
public class MainSideBar {
|
public class MainSideBar {
|
||||||
|
|
||||||
private JPanel contentPanel;
|
private JPanel contentPanel;
|
||||||
private JButton informesMensualesButton;
|
private JButton informesMensualesButton;
|
||||||
private JButton cajasButton;
|
private JButton cajasButton;
|
||||||
private JPanel buttonPanel;
|
private JPanel buttonPanel;
|
||||||
|
|
||||||
public JPanel getContentPanel() {
|
public JPanel getContentPanel() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JPanel getButtonPanel() {
|
public JPanel getButtonPanel() {
|
||||||
return buttonPanel;
|
return buttonPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getInformesMensualesButton() {
|
public JButton getInformesMensualesButton() {
|
||||||
return informesMensualesButton;
|
return informesMensualesButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JButton getCajasButton() {
|
public JButton getCajasButton() {
|
||||||
return cajasButton;
|
return cajasButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
// >>> IMPORTANT!! <<<
|
// >>> IMPORTANT!! <<<
|
||||||
// DO NOT EDIT OR ADD ANY CODE HERE!
|
// DO NOT EDIT OR ADD ANY CODE HERE!
|
||||||
$$$setupUI$$$();
|
$$$setupUI$$$();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
|
||||||
* >>> IMPORTANT!! <<<
|
* call it in your code!
|
||||||
* DO NOT edit this method OR call it in your code!
|
*
|
||||||
*
|
* @noinspection ALL
|
||||||
* @noinspection ALL
|
*/
|
||||||
*/
|
private void $$$setupUI$$$() {
|
||||||
private void $$$setupUI$$$() {
|
contentPanel = new JPanel();
|
||||||
contentPanel = new JPanel();
|
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
contentPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
|
buttonPanel = new JPanel();
|
||||||
buttonPanel = new JPanel();
|
buttonPanel.setLayout(new GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
buttonPanel.setLayout(new GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));
|
contentPanel.add(buttonPanel,
|
||||||
contentPanel.add(buttonPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
buttonPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
cajasButton = new JButton();
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
||||||
cajasButton.setText("Cajas");
|
null, 0, false));
|
||||||
buttonPanel.add(cajasButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
buttonPanel
|
||||||
final Spacer spacer1 = new Spacer();
|
.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));
|
||||||
buttonPanel.add(spacer1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
|
cajasButton = new JButton();
|
||||||
informesMensualesButton = new JButton();
|
cajasButton.setText("Cajas");
|
||||||
informesMensualesButton.setText("Informes Mensuales");
|
buttonPanel.add(cajasButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
buttonPanel.add(informesMensualesButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
}
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final Spacer spacer1 = new Spacer();
|
||||||
|
buttonPanel.add(spacer1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
||||||
|
false));
|
||||||
|
informesMensualesButton = new JButton();
|
||||||
|
informesMensualesButton.setText("Informes Mensuales");
|
||||||
|
buttonPanel.add(informesMensualesButton,
|
||||||
|
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
|
||||||
|
GridConstraints.FILL_HORIZONTAL,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @noinspection ALL
|
* @noinspection ALL
|
||||||
*/
|
*/
|
||||||
public JComponent $$$getRootComponent$$$() {
|
public JComponent $$$getRootComponent$$$() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user