Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #52

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
e45ada8
Diseño mejorado y ajustes a todas las ventanas del proyecto
isamed92 Feb 23, 2018
0823f38
Merge pull request #28 from isamed92/develop
isamed92 Feb 23, 2018
3e0dcbb
Reportes con viewer de JasperReports funcional
isamed92 Feb 23, 2018
b211a3c
mejora en el viewer para javaFX en reportes
isamed92 Feb 23, 2018
95222ce
optimizacion de imports en todas las clases, funcionalidad de reporte…
isamed92 Feb 24, 2018
af7927f
Merge pull request #29 from isamed92/develop
isamed92 Feb 24, 2018
7024f5a
Cambios en Liquidacion y Viajes
zafe Feb 25, 2018
82cd237
avances en liquidacion
isamed92 Feb 25, 2018
6729a22
Merge pull request #30 from isamed92/develop
isamed92 Feb 25, 2018
fa9a811
Cambios en Liquidacion
isamed92 Feb 25, 2018
0d943bf
Merge pull request #31 from isamed92/develop
isamed92 Feb 25, 2018
3a0f980
Liquidacion escribe en la base de datos
zafe Feb 26, 2018
aaf96a0
Cambios en Liquidacion
isamed92 Feb 26, 2018
00fc5b3
Merge pull request #32 from isamed92/develop
isamed92 Feb 26, 2018
03bc4be
Liquidacion funcionando correctamente... quizas
zafe Feb 26, 2018
4934234
Merge branch 'release-one' into master
zafe Feb 26, 2018
f4af99d
liquidacion
isamed92 Feb 26, 2018
01cc5b6
Liquidacion actualizada
isamed92 Feb 27, 2018
5336a52
Merge branch 'master' into develop
isamed92 Feb 27, 2018
a1dfdb9
Merge pull request #33 from isamed92/develop
isamed92 Feb 27, 2018
a5325a3
Icono del sistema agregado a ventanas de login y principal, resto de …
isamed92 Feb 27, 2018
340fa20
Merge remote-tracking branch 'repoIsaias/develop' into develop
isamed92 Feb 27, 2018
fb26620
Merge branch 'master' of https://github.com/isamed92/LogiservStudio i…
isamed92 Feb 27, 2018
32c3ebe
ventana de liquidaciones arreglada por nanogesima octava vez
isamed92 Feb 27, 2018
338ec1d
Merge pull request #34 from isamed92/develop
isamed92 Feb 27, 2018
c855614
viajes sin hardcode y funcional
isamed92 Feb 27, 2018
3fd1483
Merge pull request #35 from isamed92/develop
isamed92 Feb 27, 2018
875c608
impactados cambios del merge
isamed92 Feb 28, 2018
7dd28c9
reportes de recibo de sueldos por empleado
isamed92 Mar 1, 2018
e62fdda
reportes de recibo de sueldos
isamed92 Mar 1, 2018
b53993d
Merge branch 'develop' of https://github.com/isamed92/LogiservStudio
isamed92 Mar 1, 2018
83d95b2
agregada validacion de fechas en nueva liquidacion
isamed92 Mar 2, 2018
49d3c18
Merge branch 'develop' of https://github.com/isamed92/LogiservStudio
isamed92 Mar 2, 2018
5a0577e
reportes de recibo de sueldos por liquidacion
isamed92 Mar 2, 2018
732b8cc
CORRECION DE ERRORES 1.0: MODULO COMPRAS
isamed92 Mar 2, 2018
7805a91
CORRECION DE ERRORES 1.1: MODULO view/COMPRAS y view/INFO
isamed92 Mar 2, 2018
db054ce
CORRECION DE ERRORES 1.2: MODULO view/CALCULO
isamed92 Mar 3, 2018
45d9ad6
CORRECION DE ERRORES 1.3: MODULOS VARIOS
isamed92 Mar 3, 2018
0dfb308
Merge pull request #36 from isamed92/develop
isamed92 Mar 3, 2018
667159c
CORRECION DE ERRORES 1.4: MODULOS SUELDOS
isamed92 Mar 3, 2018
410c271
Merge pull request #37 from isamed92/develop
isamed92 Mar 3, 2018
7d73032
CORRECION DE ERRORES 1.5: MODULOS INFO
isamed92 Mar 3, 2018
69ecd8b
Merge pull request #38 from isamed92/develop
isamed92 Mar 3, 2018
fe179a3
Arreglos en facturacion y viajes
isamed92 Mar 5, 2018
6aff67a
Merge branch 'develop' of https://github.com/isamed92/LogiservStudio
isamed92 Mar 5, 2018
30fb785
reportes de facturas
isamed92 Mar 5, 2018
2217110
imprimir factura de venta funcional
isamed92 Mar 5, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
821 changes: 386 additions & 435 deletions .idea/workspace.xml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
encoding//src/application/reports/ControlStock.jrxml=UTF-8
encoding//src/application/reports/DatosOrganizacion.jrxml=UTF-8
encoding//src/application/reports/DetalleLiquidacion.jrxml=UTF-8
encoding//src/application/reports/ReciboSueldo.jrxml=UTF-8
encoding//src/application/reports/RecibosPorLiquidacion.jrxml=UTF-8
encoding//target/classes/application/reports/DatosOrganizacion.jrxml=UTF-8
30 changes: 29 additions & 1 deletion LogiservStudio.iml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<orderEntry type="library" name="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER" level="application" />
<orderEntry type="library" name="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER" level="application" />
<orderEntry type="library" name="com.google.maps:google-maps-services:0.2.5" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.13" level="project" />
<orderEntry type="library" name="Maven: org.controlsfx:controlsfx:8.0.6_20" level="project" />
<orderEntry type="library" name="Maven: com.google.maps:google-maps-services:0.2.5" level="project" />
Expand All @@ -31,5 +30,34 @@
<orderEntry type="library" name="Maven: org.slf4j:slf4j-nop:1.7.25" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.5" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
<orderEntry type="library" name="Maven: net.sf.jasperreports:jasperreports:6.5.1" level="project" />
<orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.9.3" level="project" />
<orderEntry type="library" name="Maven: commons-collections:commons-collections:3.2.2" level="project" />
<orderEntry type="library" name="Maven: commons-digester:commons-digester:2.1" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.1.1" level="project" />
<orderEntry type="library" name="Maven: com.lowagie:itext:2.1.7.js6" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.52" level="project" />
<orderEntry type="library" name="Maven: org.jfree:jcommon:1.0.23" level="project" />
<orderEntry type="library" name="Maven: org.jfree:jfreechart:1.0.19" level="project" />
<orderEntry type="library" name="Maven: org.eclipse.jdt.core.compiler:ecj:4.4.2" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.castor:castor-xml:1.3.3" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.castor:castor-core:1.3.3" level="project" />
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" name="Maven: javax.inject:javax.inject:1" level="project" />
<orderEntry type="library" name="Maven: stax:stax:1.2.0" level="project" />
<orderEntry type="library" name="Maven: stax:stax-api:1.0.1" level="project" />
<orderEntry type="library" name="Maven: javax.xml.stream:stax-api:1.0-2" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.1.4" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.1.4" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.1.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-core:4.5.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-analyzers-common:4.5.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-queryparser:4.5.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-queries:4.5.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-sandbox:4.5.1" level="project" />
<orderEntry type="library" name="Maven: jakarta-regexp:jakarta-regexp:1.4" level="project" />
<orderEntry type="library" name="Maven: org.olap4j:olap4j:0.9.7.309-JS-3" level="project" />
<orderEntry type="library" name="Maven: com.google.zxing:core:3.2.1" level="project" />
<orderEntry type="library" name="Maven: com.ibm.icu:icu4j:57.1" level="project" />
</component>
</module>
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,10 @@
<artifactId>commons-codec</artifactId>
<version>1.11</version>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.5.1</version>
</dependency>
</dependencies>
</project>
9 changes: 7 additions & 2 deletions src/application/Main.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package application;

import application.view.*;
import java.io.IOException;
import application.database.JDBCConnection;
import application.view.LoginController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

import java.io.IOException;

public class Main extends Application {
private Stage primaryStage;
private BorderPane rootLayout;
Expand All @@ -17,6 +19,9 @@ public class Main extends Application {
public void start(Stage primaryStage) {
this.primaryStage = primaryStage;
this.primaryStage.setTitle("Logiserv Studio");
// Set the application icon.
this.primaryStage.getIcons().add(new Image("resources/logiserv-icon.png"));

JDBCConnection.getInstanceConnection();
initRootLayout();
}
Expand Down
4 changes: 2 additions & 2 deletions src/application/comunes/Alerta.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ protected Alerta(){

}
public static void alertaInfo(String titulo, String contenido){
Alert alert = new Alert(Alert.AlertType.WARNING);
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setTitle(titulo);
alert.setContentText(contenido);
alert.initStyle(StageStyle.UNDECORATED);
alert.showAndWait();

}
public static void alertaInfo(String titulo, String header, String contenido){
Alert alert = new Alert(Alert.AlertType.WARNING);
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setTitle(titulo);
alert.setHeaderText(header);
alert.setContentText(contenido);
Expand Down
18 changes: 16 additions & 2 deletions src/application/model/calculo/Acoplado.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ public class Acoplado {
private IntegerProperty id;
private StringProperty marca;
private StringProperty patente;
private StringProperty chasisNumero;

public String getChasisNumero() {
return chasisNumero.get();
}

public StringProperty chasisNumeroProperty() {
return chasisNumero;
}

public void setChasisNumero(String chasisNumero) {
this.chasisNumero.set(chasisNumero);
}

public int getId() {
return id.get();
Expand Down Expand Up @@ -46,13 +59,14 @@ public void setPatente(String patente) {
this.patente.set(patente);
}

public Acoplado(Integer id, String marca, String patente) {
public Acoplado(Integer id, String marca, String patente, String chasisNumero) {
this.id = new SimpleIntegerProperty(id);
this.marca = new SimpleStringProperty(marca);
this.patente = new SimpleStringProperty(patente);
this.chasisNumero = new SimpleStringProperty(chasisNumero);
}

public Acoplado() {
this(0,null,null);
this(0,null,null,null);
}
}
32 changes: 30 additions & 2 deletions src/application/model/calculo/Camion.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,32 @@ public class Camion {
private StringProperty marca;
private StringProperty modelo;
private StringProperty patente;
private StringProperty motor;
private StringProperty chasis;

public String getMotor() {
return motor.get();
}

public StringProperty motorProperty() {
return motor;
}

public void setMotor(String motor) {
this.motor.set(motor);
}

public String getChasis() {
return chasis.get();
}

public StringProperty chasisProperty() {
return chasis;
}

public void setChasis(String chasis) {
this.chasis.set(chasis);
}

public int getId() {
return id.get();
Expand Down Expand Up @@ -59,14 +85,16 @@ public void setPatente(String patente) {
this.patente.set(patente);
}

public Camion(Integer id, String marca, String modelo, String patente) {
public Camion(Integer id, String marca, String modelo, String patente, String motor, String chasis) {
this.id = new SimpleIntegerProperty(id);
this.marca = new SimpleStringProperty(marca);
this.modelo = new SimpleStringProperty(modelo);
this.patente = new SimpleStringProperty(patente);
this.motor = new SimpleStringProperty(motor);
this.chasis = new SimpleStringProperty(chasis);
}

public Camion() {
this(0,null,null,null);
this(0,null,null,null, null,null);
}
}
4 changes: 4 additions & 0 deletions src/application/model/calculo/Ingenio.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ public Ingenio() {
this(0,0.0,0.0,null,0.0,0.0);
}

@Override
public String toString() {
return getNombre();
}
}
2 changes: 0 additions & 2 deletions src/application/model/compra/DetalleCompra.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleFloatProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class DetalleCompra {

Expand Down
7 changes: 1 addition & 6 deletions src/application/model/compra/FacturaCompra.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package application.model.compra;

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.beans.property.*;

public class FacturaCompra {

Expand Down
5 changes: 4 additions & 1 deletion src/application/model/info/CategoriaEmpleado.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package application.model.info;

import javafx.beans.property.*;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.scene.control.CheckBox;

public class CategoriaEmpleado {
Expand Down
1 change: 0 additions & 1 deletion src/application/model/info/Domicilio.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import application.repository.info.LocalidadRepository;

public class Domicilio {

Expand Down
1 change: 0 additions & 1 deletion src/application/model/info/Empleado.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import application.repository.info.DomicilioRepository;


public class Empleado {
Expand Down
7 changes: 7 additions & 0 deletions src/application/model/sueldo/ConceptoCalculado.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,11 @@ private void calcularMontoCalculado(){
break;
}
}

@Override
public String toString() {
return "ConceptoCalculado{" +
"montoCalculado=" + montoCalculado + "\n"+ super.toString()+
'}';
}
}
12 changes: 12 additions & 0 deletions src/application/model/sueldo/ConceptoSueldo.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,16 @@ public ConceptoSueldo(){
this(0, null, 0f, null, null, 1.0);
}

@Override
public String toString() {
return "ConceptoSueldo{" +
"idConceptoSueldo=" + idConceptoSueldo +
", descripcion=" + descripcion +
", cantidad=" + cantidad +
", tipoConcepto=" + tipoConcepto +
", tipoCantidad=" + tipoCantidad +
", select=" + select +
", factor=" + factor +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@

import javafx.beans.property.*;

import java.util.ArrayList;
import java.util.List;

public class Liquidaciones {
public class Liquidacion {
private IntegerProperty id;
private StringProperty fechaLiquidacion;
private DoubleProperty totalHaberesRemunerativos;
private DoubleProperty totalHaberesNoRemunerativos;
private DoubleProperty totalRetenciones;
private List<LiquidacionEmpleado> liquidacionesEmpleados = new ArrayList<>();

public Liquidaciones() {
public Liquidacion() {
this(0,null,0.0,
0.0,0.0);
}

public Liquidaciones(Integer id, String fechaLiquidacion, Double totalHaberesRemunerativos, Double totalHaberesNoRemunerativos,
Double totalRetenciones) {
public Liquidacion(Integer id, String fechaLiquidacion, Double totalHaberesRemunerativos, Double totalHaberesNoRemunerativos,
Double totalRetenciones) {
this.id = new SimpleIntegerProperty(id);
this.fechaLiquidacion = new SimpleStringProperty(fechaLiquidacion);

Expand Down Expand Up @@ -88,4 +90,11 @@ public void setTotalRetenciones(double totalRetenciones) {
this.totalRetenciones.set(totalRetenciones);
}

public List<LiquidacionEmpleado> getLiquidacionesEmpleados() {
return liquidacionesEmpleados;
}

public void setLiquidacionesEmpleados(List<LiquidacionEmpleado> liquidacionesEmpleados) {
this.liquidacionesEmpleados = liquidacionesEmpleados;
}
}
1 change: 0 additions & 1 deletion src/application/model/sueldo/LiquidacionEmpleado.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import application.model.info.Empleado;
import javafx.beans.property.*;
import javafx.collections.ObservableList;

import java.util.List;

Expand Down
1 change: 0 additions & 1 deletion src/application/model/venta/Cliente.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package application.model.venta;

import application.model.info.Domicilio;
import application.model.info.Localidad;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
Expand Down
7 changes: 4 additions & 3 deletions src/application/model/venta/FacturaVenta.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,17 @@ public void setOrganizacion(Organizacion organizacion) {


public FacturaVenta(Integer idFacturaVenta, String cuit, String nombreEmpresa,
String fechaEmision, String nombreCliente, String cuitCliente) {
String fechaEmision, String nombreCliente, String cuitCliente, Double montoTotal) {
this.idFacturaVenta = new SimpleIntegerProperty(idFacturaVenta);
this.cuit = new SimpleStringProperty(cuit);
this.nombreEmpresa = new SimpleStringProperty(nombreEmpresa);
this.fechaEmision = new SimpleStringProperty(fechaEmision);
this.nombreCliente = new SimpleStringProperty(nombreCliente);
this.cuitCliente = new SimpleStringProperty(cuitCliente);
this.montoFactura = new SimpleDoubleProperty(montoTotal);
}

public FacturaVenta() {
this(0,null,null,null,null,null);
this(0,null,null,null,null,null,0.0);
}
}
}
4 changes: 2 additions & 2 deletions src/application/model/venta/Viaje.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import javafx.beans.property.*;
import javafx.scene.control.CheckBox;

import java.math.BigDecimal;

public class Viaje {

private IntegerProperty idRemito;
Expand Down Expand Up @@ -228,6 +226,7 @@ public Viaje(Integer idRemito, String fecha, String horaEntrada,
this.ingenioDestino = new SimpleStringProperty(ingenioDestino);
this.camionNombre = new SimpleStringProperty(camionNombre);
this.facturaVenta = new SimpleStringProperty(facturaVenta);
this.monto = new SimpleDoubleProperty();
this.conductor = conductor;
this.ingenio = new Ingenio();
this.conductor = new Empleado();
Expand All @@ -241,5 +240,6 @@ public Viaje() {
this.setDistanciaRecorrida("0");
this.setBruto(0);
this.setTara(0);
this.setMonto(0);
}
}
Binary file added src/application/reports/ControlStock.jasper
Binary file not shown.
Loading