Agregado promedio ventas mensual segun dias trabajados
This commit is contained in:
2
database/4.sql
Normal file
2
database/4.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
alter table estado_resultado add column dias_rendidos integer default 0;
|
||||||
|
update version set version = 4;
|
||||||
BIN
dist/Programa Caja.jar
vendored
BIN
dist/Programa Caja.jar
vendored
Binary file not shown.
0
dist/data/local.data
vendored
Normal file
0
dist/data/local.data
vendored
Normal file
BIN
dist/data/version_scripts
vendored
BIN
dist/data/version_scripts
vendored
Binary file not shown.
@@ -12,8 +12,8 @@ import javax.swing.UnsupportedLookAndFeelException;
|
|||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
private static final int DATABASE_VERSION = 3;
|
private static final int DATABASE_VERSION = 4;
|
||||||
private static final String VERSION = "1.0";
|
private static final String VERSION = "1.1";
|
||||||
|
|
||||||
static {
|
static {
|
||||||
setUpSystemProperties();
|
setUpSystemProperties();
|
||||||
@@ -25,6 +25,8 @@ public class Main {
|
|||||||
System.out.println("--------------------------------------------------------------------------------");
|
System.out.println("--------------------------------------------------------------------------------");
|
||||||
System.out.println("Software version: " + VERSION);
|
System.out.println("Software version: " + VERSION);
|
||||||
System.out.println("Database version: " + DATABASE_VERSION);
|
System.out.println("Database version: " + DATABASE_VERSION);
|
||||||
|
System.out.println("Last Update Message: ");
|
||||||
|
System.out.println("Agregado promedio de ventas en el mes en estado resultado");
|
||||||
System.out.println("--------------------------------------------------------------------------------");
|
System.out.println("--------------------------------------------------------------------------------");
|
||||||
run();
|
run();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ public class EstadoResultadoController extends BaseController {
|
|||||||
.addFocusListener((FocusLostListener) e -> EstadoResultadoController.this.updateResumen());
|
.addFocusListener((FocusLostListener) e -> EstadoResultadoController.this.updateResumen());
|
||||||
this.view.getResumenPPM()
|
this.view.getResumenPPM()
|
||||||
.addFocusListener((FocusLostListener) e -> EstadoResultadoController.this.updateResumen());
|
.addFocusListener((FocusLostListener) e -> EstadoResultadoController.this.updateResumen());
|
||||||
|
this.view.getDiasRendidosField().addFocusListener((FocusLostListener) e -> this.updateResumen());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupMovementViewEvents() {
|
private void setupMovementViewEvents() {
|
||||||
@@ -234,9 +235,14 @@ public class EstadoResultadoController extends BaseController {
|
|||||||
private void fillResumen() {
|
private void fillResumen() {
|
||||||
double ppm = this.estadoResultado.getPpm();
|
double ppm = this.estadoResultado.getPpm();
|
||||||
int aFavor = this.estadoResultado.getIvaFavor();
|
int aFavor = this.estadoResultado.getIvaFavor();
|
||||||
|
int dias = this.estadoResultado.getDiasRendidos();
|
||||||
|
|
||||||
|
if(dias == 0)
|
||||||
|
dias = this.mes.lengthOfMonth();
|
||||||
|
|
||||||
this.view.getResumenPPM().setValue(ppm);
|
this.view.getResumenPPM().setValue(ppm);
|
||||||
this.view.getResumenIVAFavor().setValue(aFavor);
|
this.view.getResumenIVAFavor().setValue(aFavor);
|
||||||
|
this.view.getDiasRendidosField().setValue(dias);
|
||||||
|
|
||||||
this.updateResumen();
|
this.updateResumen();
|
||||||
}
|
}
|
||||||
@@ -343,6 +349,7 @@ public class EstadoResultadoController extends BaseController {
|
|||||||
int iva = this.view.getVentaIVAField().getValue();
|
int iva = this.view.getVentaIVAField().getValue();
|
||||||
double ppm = this.view.getResumenPPM().getValue();
|
double ppm = this.view.getResumenPPM().getValue();
|
||||||
int ivaFavor = this.view.getResumenIVAFavor().getValue();
|
int ivaFavor = this.view.getResumenIVAFavor().getValue();
|
||||||
|
int diasRendidos = this.view.getDiasRendidosField().getValue();
|
||||||
|
|
||||||
int utilidad = bruto - totalGastosGenerales - totalGastosOperacionales - totalServicios;
|
int utilidad = bruto - totalGastosGenerales - totalGastosOperacionales - totalServicios;
|
||||||
int ppmMes = (int) Math.round(ppm * (double) netoExentas / 100d);
|
int ppmMes = (int) Math.round(ppm * (double) netoExentas / 100d);
|
||||||
@@ -356,9 +363,11 @@ public class EstadoResultadoController extends BaseController {
|
|||||||
this.view.getResumenIVAPPM().setValue(IVAPPM);
|
this.view.getResumenIVAPPM().setValue(IVAPPM);
|
||||||
this.view.getResumenAPagar().setValue(aPagar);
|
this.view.getResumenAPagar().setValue(aPagar);
|
||||||
this.view.getResumenResultado().setValue(resultado);
|
this.view.getResumenResultado().setValue(resultado);
|
||||||
|
this.view.getPromedioVentasField().setValue(resultado / diasRendidos);
|
||||||
|
|
||||||
this.estadoResultado.setPpm(ppm);
|
this.estadoResultado.setPpm(ppm);
|
||||||
this.estadoResultado.setIvaFavor(ivaFavor);
|
this.estadoResultado.setIvaFavor(ivaFavor);
|
||||||
|
this.estadoResultado.setDiasRendidos(diasRendidos);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class EstadoResultado {
|
|||||||
private int otroServicio;
|
private int otroServicio;
|
||||||
private double ppm;
|
private double ppm;
|
||||||
private int ivaFavor;
|
private int ivaFavor;
|
||||||
|
private int diasRendidos;
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return id;
|
return id;
|
||||||
@@ -184,6 +185,14 @@ public class EstadoResultado {
|
|||||||
this.ivaFavor = ivaFavor;
|
this.ivaFavor = ivaFavor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getDiasRendidos() {
|
||||||
|
return diasRendidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDiasRendidos(int diasRendidos) {
|
||||||
|
this.diasRendidos = diasRendidos;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "EstadoResultado{" +
|
return "EstadoResultado{" +
|
||||||
@@ -206,17 +215,16 @@ public class EstadoResultado {
|
|||||||
", otroServicio=" + otroServicio +
|
", otroServicio=" + otroServicio +
|
||||||
", ppm=" + ppm +
|
", ppm=" + ppm +
|
||||||
", ivaFavor=" + ivaFavor +
|
", ivaFavor=" + ivaFavor +
|
||||||
|
", diasRendidos=" + diasRendidos +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o)
|
||||||
return true;
|
return true;
|
||||||
}
|
if (o == null || getClass() != o.getClass())
|
||||||
if (!(o instanceof EstadoResultado)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
EstadoResultado that = (EstadoResultado) o;
|
EstadoResultado that = (EstadoResultado) o;
|
||||||
return id == that.id &&
|
return id == that.id &&
|
||||||
costoVenta == that.costoVenta &&
|
costoVenta == that.costoVenta &&
|
||||||
@@ -236,14 +244,15 @@ public class EstadoResultado {
|
|||||||
otroServicio == that.otroServicio &&
|
otroServicio == that.otroServicio &&
|
||||||
Double.compare(that.ppm, ppm) == 0 &&
|
Double.compare(that.ppm, ppm) == 0 &&
|
||||||
ivaFavor == that.ivaFavor &&
|
ivaFavor == that.ivaFavor &&
|
||||||
|
diasRendidos == that.diasRendidos &&
|
||||||
Objects.equals(mes, that.mes);
|
Objects.equals(mes, that.mes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, mes, costoVenta, cuentaCorrienteFactura, cuentaCorrienteBoleta,
|
return Objects
|
||||||
cuentaCorrienteSinRespaldo, remuneraciones, finiquitos, aguinaldo, bonosPersonal,
|
.hash(id, mes, costoVenta, cuentaCorrienteFactura, cuentaCorrienteBoleta, cuentaCorrienteSinRespaldo, remuneraciones, finiquitos, aguinaldo,
|
||||||
honorariosContador, arriendo, agua, luz, gas, telefono, otroServicio, ppm, ivaFavor);
|
bonosPersonal, honorariosContador, arriendo, agua, luz, gas, telefono, otroServicio, ppm, ivaFavor, diasRendidos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
estadoResultado.setOtroServicio(rs.getInt("otro_servicio"));
|
estadoResultado.setOtroServicio(rs.getInt("otro_servicio"));
|
||||||
estadoResultado.setPpm(rs.getDouble("ppm"));
|
estadoResultado.setPpm(rs.getDouble("ppm"));
|
||||||
estadoResultado.setIvaFavor(rs.getInt("ivaFavor"));
|
estadoResultado.setIvaFavor(rs.getInt("ivaFavor"));
|
||||||
|
estadoResultado.setDiasRendidos(rs.getInt("dias_rendidos"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -99,6 +100,7 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
estadoResultado.setOtroServicio(rs.getInt("otro_servicio"));
|
estadoResultado.setOtroServicio(rs.getInt("otro_servicio"));
|
||||||
estadoResultado.setPpm(rs.getDouble("ppm"));
|
estadoResultado.setPpm(rs.getDouble("ppm"));
|
||||||
estadoResultado.setIvaFavor(rs.getInt("ivaFavor"));
|
estadoResultado.setIvaFavor(rs.getInt("ivaFavor"));
|
||||||
|
estadoResultado.setDiasRendidos(rs.getInt("dias_rendidos"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -140,6 +142,7 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
estadoResultado.setOtroServicio(rs.getInt("otro_servicio"));
|
estadoResultado.setOtroServicio(rs.getInt("otro_servicio"));
|
||||||
estadoResultado.setPpm(rs.getDouble("ppm"));
|
estadoResultado.setPpm(rs.getDouble("ppm"));
|
||||||
estadoResultado.setIvaFavor(rs.getInt("ivaFavor"));
|
estadoResultado.setIvaFavor(rs.getInt("ivaFavor"));
|
||||||
|
estadoResultado.setDiasRendidos(rs.getInt("dias_rendidos"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -154,7 +157,7 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
@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);
|
||||||
String query = "insert into estado_resultado (mes, costo_venta, cuenta_corriente_factura, cuenta_corriente_boleta, cuenta_corriente_sin_respaldo, remuneraciones, finiquitos, aguinaldo, bonos_personal, honorarios_contador, arriendo, agua, luz, gas, telefono, otro_servicio, ppm, ivaFavor) values (?, ?, ?, ?, ?, ? , ?, ? , ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
String query = "insert into estado_resultado (mes, costo_venta, cuenta_corriente_factura, cuenta_corriente_boleta, cuenta_corriente_sin_respaldo, remuneraciones, finiquitos, aguinaldo, bonos_personal, honorarios_contador, arriendo, agua, luz, gas, telefono, otro_servicio, ppm, ivaFavor, dias_rendidos) values (?, ?, ?, ?, ?, ? , ?, ? , ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
||||||
try (Connection conn = connectionHolder.getConnection()) {
|
try (Connection conn = connectionHolder.getConnection()) {
|
||||||
try (PreparedStatement ps = conn.prepareStatement(query)) {
|
try (PreparedStatement ps = conn.prepareStatement(query)) {
|
||||||
ps.setString(1, estadoResultado.getMes().atDay(1).toString());
|
ps.setString(1, estadoResultado.getMes().atDay(1).toString());
|
||||||
@@ -175,6 +178,7 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
ps.setInt(16, estadoResultado.getOtroServicio());
|
ps.setInt(16, estadoResultado.getOtroServicio());
|
||||||
ps.setDouble(17, estadoResultado.getPpm());
|
ps.setDouble(17, estadoResultado.getPpm());
|
||||||
ps.setDouble(18, estadoResultado.getIvaFavor());
|
ps.setDouble(18, estadoResultado.getIvaFavor());
|
||||||
|
ps.setInt(19, estadoResultado.getDiasRendidos());
|
||||||
|
|
||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
}
|
}
|
||||||
@@ -193,7 +197,7 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
@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);
|
||||||
String query = "update estado_resultado set mes = ?, costo_venta = ?, cuenta_corriente_factura = ?, cuenta_corriente_boleta = ?, cuenta_corriente_sin_respaldo = ?, remuneraciones = ?, finiquitos = ?, aguinaldo = ?, bonos_personal = ?, honorarios_contador = ?, arriendo = ?, agua = ?, luz = ?, gas = ?, telefono = ?, otro_servicio = ?, ppm = ?, ivaFavor = ? where id = ?";
|
String query = "update estado_resultado set mes = ?, costo_venta = ?, cuenta_corriente_factura = ?, cuenta_corriente_boleta = ?, cuenta_corriente_sin_respaldo = ?, remuneraciones = ?, finiquitos = ?, aguinaldo = ?, bonos_personal = ?, honorarios_contador = ?, arriendo = ?, agua = ?, luz = ?, gas = ?, telefono = ?, otro_servicio = ?, ppm = ?, ivaFavor = ?, dias_rendidos = ? where id = ?";
|
||||||
try (Connection conn = connectionHolder.getConnection()) {
|
try (Connection conn = connectionHolder.getConnection()) {
|
||||||
try (PreparedStatement ps = conn.prepareStatement(query)) {
|
try (PreparedStatement ps = conn.prepareStatement(query)) {
|
||||||
ps.setString(1, estadoResultado.getMes().atDay(1).toString());
|
ps.setString(1, estadoResultado.getMes().atDay(1).toString());
|
||||||
@@ -214,7 +218,8 @@ public class SQLiteEstadoResultadoDAO implements EstadoResultadoDAO {
|
|||||||
ps.setInt(16, estadoResultado.getOtroServicio());
|
ps.setInt(16, estadoResultado.getOtroServicio());
|
||||||
ps.setDouble(17, estadoResultado.getPpm());
|
ps.setDouble(17, estadoResultado.getPpm());
|
||||||
ps.setDouble(18, estadoResultado.getIvaFavor());
|
ps.setDouble(18, estadoResultado.getIvaFavor());
|
||||||
ps.setInt(19, estadoResultado.getId());
|
ps.setInt(19, estadoResultado.getDiasRendidos());
|
||||||
|
ps.setInt(20, estadoResultado.getId());
|
||||||
|
|
||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<grid id="27dc6" binding="contentPanel" layout-manager="GridLayoutManager" row-count="3" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="27dc6" binding="contentPanel" layout-manager="GridLayoutManager" row-count="3" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
<margin top="10" left="10" bottom="10" right="10"/>
|
<margin top="10" left="10" bottom="10" right="10"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<xy x="20" y="20" width="1199" height="949"/>
|
<xy x="20" y="20" width="996" height="700"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties/>
|
<properties/>
|
||||||
<border type="none"/>
|
<border type="none"/>
|
||||||
@@ -53,6 +53,7 @@
|
|||||||
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
|
<font style="1"/>
|
||||||
<text value="Neto + Exentas:"/>
|
<text value="Neto + Exentas:"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
@@ -113,10 +114,10 @@
|
|||||||
</vspacer>
|
</vspacer>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
<grid id="b518" layout-manager="GridLayoutManager" row-count="9" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="b518" layout-manager="GridLayoutManager" row-count="11" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
<margin top="10" left="10" bottom="10" right="10"/>
|
<margin top="10" left="10" bottom="10" right="10"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="1" column="2" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
|
<grid row="1" column="2" row-span="2" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties/>
|
<properties/>
|
||||||
<border type="etched" title="Resumen"/>
|
<border type="etched" title="Resumen"/>
|
||||||
@@ -163,7 +164,7 @@
|
|||||||
</component>
|
</component>
|
||||||
<component id="48770" class="danielcortes.xyz.views.components.NumberFormatedTextField" binding="resumenResultado">
|
<component id="48770" class="danielcortes.xyz.views.components.NumberFormatedTextField" binding="resumenResultado">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="8" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
|
<grid row="7" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
|
||||||
<preferred-size width="150" height="-1"/>
|
<preferred-size width="150" height="-1"/>
|
||||||
</grid>
|
</grid>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -205,17 +206,13 @@
|
|||||||
</component>
|
</component>
|
||||||
<component id="2195d" class="javax.swing.JLabel">
|
<component id="2195d" class="javax.swing.JLabel">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="8" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="7" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
|
<font style="1"/>
|
||||||
<text value="Resultado:"/>
|
<text value="Resultado:"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<vspacer id="bda77">
|
|
||||||
<constraints>
|
|
||||||
<grid row="7" column="1" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
|
||||||
</constraints>
|
|
||||||
</vspacer>
|
|
||||||
<component id="94da9" class="javax.swing.JLabel">
|
<component id="94da9" class="javax.swing.JLabel">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
@@ -260,6 +257,46 @@
|
|||||||
</constraints>
|
</constraints>
|
||||||
<properties/>
|
<properties/>
|
||||||
</component>
|
</component>
|
||||||
|
<component id="5827f" class="danielcortes.xyz.views.components.NumberFormatedTextField" binding="diasRendidosField">
|
||||||
|
<constraints>
|
||||||
|
<grid row="8" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="150" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties/>
|
||||||
|
</component>
|
||||||
|
<component id="66811" class="javax.swing.JLabel">
|
||||||
|
<constraints>
|
||||||
|
<grid row="8" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<text value="Dias Rendidos:"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
<component id="f0d28" class="javax.swing.JLabel">
|
||||||
|
<constraints>
|
||||||
|
<grid row="9" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<font style="1"/>
|
||||||
|
<text value="Promedio Ventas:"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
<component id="15f7" class="danielcortes.xyz.views.components.NumberFormatedTextField" binding="promedioVentasField">
|
||||||
|
<constraints>
|
||||||
|
<grid row="9" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="150" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<editable value="false"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
<vspacer id="9bc90">
|
||||||
|
<constraints>
|
||||||
|
<grid row="10" column="1" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||||
|
</constraints>
|
||||||
|
</vspacer>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
<grid id="b9feb" layout-manager="GridLayoutManager" row-count="1" column-count="7" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="b9feb" layout-manager="GridLayoutManager" row-count="1" column-count="7" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
@@ -472,6 +509,7 @@
|
|||||||
<grid row="9" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="9" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
|
<font style="1"/>
|
||||||
<text value="Total:"/>
|
<text value="Total:"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
@@ -546,6 +584,7 @@
|
|||||||
<grid row="6" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="6" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
|
<font style="1"/>
|
||||||
<text value="Total:"/>
|
<text value="Total:"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
@@ -589,6 +628,7 @@
|
|||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<editable value="false"/>
|
<editable value="false"/>
|
||||||
|
<text value=""/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<vspacer id="d36a2">
|
<vspacer id="d36a2">
|
||||||
@@ -739,6 +779,7 @@
|
|||||||
<grid row="7" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="7" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
|
<font style="1"/>
|
||||||
<text value="Total:"/>
|
<text value="Total:"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import danielcortes.xyz.views.components.DoubleFormatedTextField;
|
|||||||
import danielcortes.xyz.views.components.NumberFormatedTextField;
|
import danielcortes.xyz.views.components.NumberFormatedTextField;
|
||||||
import danielcortes.xyz.views.components.YearSpinnerModel;
|
import danielcortes.xyz.views.components.YearSpinnerModel;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
|
import java.awt.Font;
|
||||||
import java.awt.Insets;
|
import java.awt.Insets;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.YearMonth;
|
import java.time.YearMonth;
|
||||||
@@ -64,6 +65,8 @@ public class EstadoResultadoView {
|
|||||||
private JButton guardarButton;
|
private JButton guardarButton;
|
||||||
private JButton exportarButton;
|
private JButton exportarButton;
|
||||||
private DoubleFormatedTextField gastosOperacionesPorcentajeCostoVenta;
|
private DoubleFormatedTextField gastosOperacionesPorcentajeCostoVenta;
|
||||||
|
private NumberFormatedTextField promedioVentasField;
|
||||||
|
private NumberFormatedTextField diasRendidosField;
|
||||||
|
|
||||||
private ArrayList<String> months;
|
private ArrayList<String> months;
|
||||||
|
|
||||||
@@ -243,9 +246,16 @@ public class EstadoResultadoView {
|
|||||||
return exportarButton;
|
return exportarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NumberFormatedTextField getPromedioVentasField() {
|
||||||
|
return promedioVentasField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NumberFormatedTextField getDiasRendidosField() {
|
||||||
|
return diasRendidosField;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
||||||
* call it in your code!
|
|
||||||
*
|
*
|
||||||
* @noinspection ALL
|
* @noinspection ALL
|
||||||
*/
|
*/
|
||||||
@@ -255,496 +265,442 @@ public class EstadoResultadoView {
|
|||||||
contentPanel.setLayout(new GridLayoutManager(3, 3, new Insets(10, 10, 10, 10), -1, -1));
|
contentPanel.setLayout(new GridLayoutManager(3, 3, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
final JPanel panel1 = new JPanel();
|
final JPanel panel1 = new JPanel();
|
||||||
panel1.setLayout(new GridLayoutManager(6, 2, new Insets(10, 10, 10, 10), -1, -1));
|
panel1.setLayout(new GridLayoutManager(6, 2, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
contentPanel.add(panel1,
|
contentPanel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
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,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
|
||||||
null, 0, false));
|
|
||||||
panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Venta"));
|
panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Venta"));
|
||||||
final JLabel label1 = new JLabel();
|
final JLabel label1 = new JLabel();
|
||||||
label1.setText("Bruto:");
|
label1.setText("Bruto:");
|
||||||
panel1.add(label1,
|
panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label2 = new JLabel();
|
final JLabel label2 = new JLabel();
|
||||||
label2.setText("Neto:");
|
label2.setText("Neto:");
|
||||||
panel1.add(label2,
|
panel1.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label3 = new JLabel();
|
final JLabel label3 = new JLabel();
|
||||||
label3.setText("IVA:");
|
label3.setText("IVA:");
|
||||||
panel1.add(label3,
|
panel1.add(label3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label4 = new JLabel();
|
final JLabel label4 = new JLabel();
|
||||||
label4.setText("Exentas:");
|
label4.setText("Exentas:");
|
||||||
panel1.add(label4,
|
panel1.add(label4, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label5 = new JLabel();
|
final JLabel label5 = new JLabel();
|
||||||
|
Font label5Font = this.$$$getFont$$$(null, Font.BOLD, -1, label5.getFont());
|
||||||
|
if (label5Font != null)
|
||||||
|
label5.setFont(label5Font);
|
||||||
label5.setText("Neto + Exentas:");
|
label5.setText("Neto + Exentas:");
|
||||||
panel1.add(label5,
|
panel1.add(label5, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
ventaBrutaField = new NumberFormatedTextField();
|
ventaBrutaField = new NumberFormatedTextField();
|
||||||
ventaBrutaField.setEditable(false);
|
ventaBrutaField.setEditable(false);
|
||||||
panel1.add(ventaBrutaField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel1.add(ventaBrutaField,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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, null, new Dimension(150, -1), null, 0, false));
|
||||||
ventaNetaField = new NumberFormatedTextField();
|
ventaNetaField = new NumberFormatedTextField();
|
||||||
ventaNetaField.setEditable(false);
|
ventaNetaField.setEditable(false);
|
||||||
panel1.add(ventaNetaField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel1.add(ventaNetaField,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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, null, new Dimension(150, -1), null, 0, false));
|
||||||
ventaIVAField = new NumberFormatedTextField();
|
ventaIVAField = new NumberFormatedTextField();
|
||||||
ventaIVAField.setEditable(false);
|
ventaIVAField.setEditable(false);
|
||||||
panel1.add(ventaIVAField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel1.add(ventaIVAField,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
ventaExentasField = new NumberFormatedTextField();
|
ventaExentasField = new NumberFormatedTextField();
|
||||||
ventaExentasField.setEditable(false);
|
ventaExentasField.setEditable(false);
|
||||||
panel1.add(ventaExentasField, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel1.add(ventaExentasField,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(3, 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, null, new Dimension(150, -1), null, 0, false));
|
||||||
ventasNetaExentasField = new NumberFormatedTextField();
|
ventasNetaExentasField = new NumberFormatedTextField();
|
||||||
ventasNetaExentasField.setEditable(false);
|
ventasNetaExentasField.setEditable(false);
|
||||||
panel1.add(ventasNetaExentasField, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel1.add(ventasNetaExentasField,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
final Spacer spacer1 = new Spacer();
|
final Spacer spacer1 = new Spacer();
|
||||||
panel1.add(spacer1, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel1.add(spacer1,
|
||||||
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null,
|
||||||
false));
|
null, null, 0, false));
|
||||||
final JPanel panel2 = new JPanel();
|
final JPanel panel2 = new JPanel();
|
||||||
panel2.setLayout(new GridLayoutManager(9, 2, new Insets(10, 10, 10, 10), -1, -1));
|
panel2.setLayout(new GridLayoutManager(11, 2, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
contentPanel.add(panel2,
|
contentPanel.add(panel2, new GridConstraints(1, 2, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
new GridConstraints(1, 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,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
panel2.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Resumen"));
|
||||||
null, 0, false));
|
|
||||||
panel2
|
|
||||||
.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Resumen"));
|
|
||||||
resumenUtilidad = new NumberFormatedTextField();
|
resumenUtilidad = new NumberFormatedTextField();
|
||||||
resumenUtilidad.setEditable(false);
|
resumenUtilidad.setEditable(false);
|
||||||
panel2.add(resumenUtilidad, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel2.add(resumenUtilidad,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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, null, new Dimension(150, -1), null, 0, false));
|
||||||
resumenPPMMes = new NumberFormatedTextField();
|
resumenPPMMes = new NumberFormatedTextField();
|
||||||
resumenPPMMes.setEditable(false);
|
resumenPPMMes.setEditable(false);
|
||||||
panel2.add(resumenPPMMes, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel2.add(resumenPPMMes,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
resumenIVAMes = new NumberFormatedTextField();
|
resumenIVAMes = new NumberFormatedTextField();
|
||||||
resumenIVAMes.setEditable(false);
|
resumenIVAMes.setEditable(false);
|
||||||
panel2.add(resumenIVAMes, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel2.add(resumenIVAMes,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(3, 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, null, new Dimension(150, -1), null, 0, false));
|
||||||
resumenIVAFavor = new NumberFormatedTextField();
|
resumenIVAFavor = new NumberFormatedTextField();
|
||||||
resumenIVAFavor.setEditable(true);
|
resumenIVAFavor.setEditable(true);
|
||||||
panel2.add(resumenIVAFavor, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel2.add(resumenIVAFavor,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
resumenResultado = new NumberFormatedTextField();
|
resumenResultado = new NumberFormatedTextField();
|
||||||
resumenResultado.setEditable(false);
|
resumenResultado.setEditable(false);
|
||||||
panel2.add(resumenResultado, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel2.add(resumenResultado,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(7, 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, null, new Dimension(150, -1), null, 0, false));
|
||||||
final JLabel label6 = new JLabel();
|
final JLabel label6 = new JLabel();
|
||||||
label6.setText("Utilidad:");
|
label6.setText("Utilidad:");
|
||||||
panel2.add(label6,
|
panel2.add(label6, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label7 = new JLabel();
|
final JLabel label7 = new JLabel();
|
||||||
label7.setText("PPM Mes:");
|
label7.setText("PPM Mes:");
|
||||||
panel2.add(label7,
|
panel2.add(label7, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label8 = new JLabel();
|
final JLabel label8 = new JLabel();
|
||||||
label8.setText("+ IVA Mes:");
|
label8.setText("+ IVA Mes:");
|
||||||
panel2.add(label8,
|
panel2.add(label8, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label9 = new JLabel();
|
final JLabel label9 = new JLabel();
|
||||||
label9.setText("- IVA A Favor:");
|
label9.setText("- IVA A Favor:");
|
||||||
panel2.add(label9,
|
panel2.add(label9, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label10 = new JLabel();
|
final JLabel label10 = new JLabel();
|
||||||
|
Font label10Font = this.$$$getFont$$$(null, Font.BOLD, -1, label10.getFont());
|
||||||
|
if (label10Font != null)
|
||||||
|
label10.setFont(label10Font);
|
||||||
label10.setText("Resultado:");
|
label10.setText("Resultado:");
|
||||||
panel2.add(label10,
|
panel2.add(label10, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final Spacer spacer2 = new Spacer();
|
|
||||||
panel2.add(spacer2, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
|
||||||
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label11 = new JLabel();
|
final JLabel label11 = new JLabel();
|
||||||
label11.setText("PPM:");
|
label11.setText("PPM:");
|
||||||
panel2.add(label11,
|
panel2.add(label11, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
resumenAPagar = new NumberFormatedTextField();
|
resumenAPagar = new NumberFormatedTextField();
|
||||||
resumenAPagar.setEditable(false);
|
resumenAPagar.setEditable(false);
|
||||||
panel2.add(resumenAPagar, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel2.add(resumenAPagar,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(6, 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, null, new Dimension(150, -1), null, 0, false));
|
||||||
final JLabel label12 = new JLabel();
|
final JLabel label12 = new JLabel();
|
||||||
label12.setText("A Pagar PPM + IVA");
|
label12.setText("A Pagar PPM + IVA");
|
||||||
panel2.add(label12,
|
panel2.add(label12, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
resumenIVAPPM = new NumberFormatedTextField();
|
resumenIVAPPM = new NumberFormatedTextField();
|
||||||
resumenIVAPPM.setEditable(false);
|
resumenIVAPPM.setEditable(false);
|
||||||
panel2.add(resumenIVAPPM, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel2.add(resumenIVAPPM,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
resumenPPM = new DoubleFormatedTextField();
|
resumenPPM = new DoubleFormatedTextField();
|
||||||
panel2.add(resumenPPM, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel2.add(resumenPPM, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
|
||||||
GridConstraints.FILL_HORIZONTAL,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,
|
null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
diasRendidosField = new NumberFormatedTextField();
|
||||||
|
panel2.add(diasRendidosField,
|
||||||
|
new GridConstraints(8, 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 label13 = new JLabel();
|
||||||
|
label13.setText("Dias Rendidos:");
|
||||||
|
panel2.add(label13, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final JLabel label14 = new JLabel();
|
||||||
|
Font label14Font = this.$$$getFont$$$(null, Font.BOLD, -1, label14.getFont());
|
||||||
|
if (label14Font != null)
|
||||||
|
label14.setFont(label14Font);
|
||||||
|
label14.setText("Promedio Ventas:");
|
||||||
|
panel2.add(label14, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
promedioVentasField = new NumberFormatedTextField();
|
||||||
|
promedioVentasField.setEditable(false);
|
||||||
|
panel2.add(promedioVentasField,
|
||||||
|
new GridConstraints(9, 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 Spacer spacer2 = new Spacer();
|
||||||
|
panel2.add(spacer2,
|
||||||
|
new GridConstraints(10, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null,
|
||||||
|
null, null, 0, false));
|
||||||
final JPanel panel3 = new JPanel();
|
final JPanel panel3 = new JPanel();
|
||||||
panel3.setLayout(new GridLayoutManager(1, 7, new Insets(0, 0, 0, 0), -1, -1));
|
panel3.setLayout(new GridLayoutManager(1, 7, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
contentPanel.add(panel3,
|
contentPanel.add(panel3, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
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 spacer3 = new Spacer();
|
final Spacer spacer3 = new Spacer();
|
||||||
panel3.add(spacer3, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel3.add(spacer3,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null,
|
new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null,
|
||||||
0, false));
|
null, null, 0, false));
|
||||||
final JLabel label13 = new JLabel();
|
final JLabel label15 = new JLabel();
|
||||||
label13.setText("Mes:");
|
label15.setText("Mes:");
|
||||||
panel3.add(label13,
|
panel3.add(label15, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
panel3.add(monthCombo, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
|
||||||
false));
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
panel3.add(monthCombo, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
null, 0, false));
|
||||||
GridConstraints.FILL_HORIZONTAL,
|
final JLabel label16 = new JLabel();
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
label16.setText("Año:");
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
panel3.add(label16, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
final JLabel label14 = new JLabel();
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
label14.setText("Año:");
|
panel3.add(yearSpinner, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
|
||||||
panel3.add(label14,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
|
null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
panel3.add(yearSpinner, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST,
|
|
||||||
GridConstraints.FILL_HORIZONTAL,
|
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
guardarButton = new JButton();
|
guardarButton = new JButton();
|
||||||
guardarButton.setText("Guardar");
|
guardarButton.setText("Guardar");
|
||||||
panel3.add(guardarButton, new GridConstraints(0, 6, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel3.add(guardarButton, new GridConstraints(0, 6, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
|
||||||
GridConstraints.FILL_HORIZONTAL,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
exportarButton = new JButton();
|
exportarButton = new JButton();
|
||||||
exportarButton.setText("Exportar");
|
exportarButton.setText("Exportar");
|
||||||
panel3.add(exportarButton, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel3.add(exportarButton, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
|
||||||
GridConstraints.FILL_HORIZONTAL,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
|
||||||
final JPanel panel4 = new JPanel();
|
final JPanel panel4 = new JPanel();
|
||||||
panel4.setLayout(new GridLayoutManager(10, 3, new Insets(10, 10, 10, 10), -1, -1));
|
panel4.setLayout(new GridLayoutManager(10, 3, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
contentPanel.add(panel4,
|
contentPanel.add(panel4, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
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,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
panel4.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Gastos Operacionales"));
|
||||||
null, 0, false));
|
|
||||||
panel4.setBorder(BorderFactory
|
|
||||||
.createTitledBorder(BorderFactory.createEtchedBorder(), "Gastos Operacionales"));
|
|
||||||
final JLabel label15 = new JLabel();
|
|
||||||
label15.setText("Costo de Venta:");
|
|
||||||
panel4.add(label15,
|
|
||||||
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label16 = new JLabel();
|
|
||||||
label16.setText("Remuneraciones:");
|
|
||||||
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));
|
|
||||||
final JLabel label17 = new JLabel();
|
final JLabel label17 = new JLabel();
|
||||||
label17.setText("Finiquitos:");
|
label17.setText("Costo de Venta:");
|
||||||
panel4.add(label17,
|
panel4.add(label17, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label18 = new JLabel();
|
final JLabel label18 = new JLabel();
|
||||||
label18.setText("Aguinaldo:");
|
label18.setText("Remuneraciones:");
|
||||||
panel4.add(label18,
|
panel4.add(label18, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label19 = new JLabel();
|
final JLabel label19 = new JLabel();
|
||||||
label19.setText("Partime:");
|
label19.setText("Finiquitos:");
|
||||||
panel4.add(label19,
|
panel4.add(label19, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label20 = new JLabel();
|
final JLabel label20 = new JLabel();
|
||||||
label20.setText("Bonos Personal:");
|
label20.setText("Aguinaldo:");
|
||||||
panel4.add(label20,
|
panel4.add(label20, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label21 = new JLabel();
|
final JLabel label21 = new JLabel();
|
||||||
label21.setText("Honorarios Contador:");
|
label21.setText("Partime:");
|
||||||
panel4.add(label21,
|
panel4.add(label21, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label22 = new JLabel();
|
final JLabel label22 = new JLabel();
|
||||||
label22.setText("Arriendo:");
|
label22.setText("Bonos Personal:");
|
||||||
panel4.add(label22,
|
panel4.add(label22, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
final JLabel label23 = new JLabel();
|
||||||
false));
|
label23.setText("Honorarios Contador:");
|
||||||
|
panel4.add(label23, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final JLabel label24 = new JLabel();
|
||||||
|
label24.setText("Arriendo:");
|
||||||
|
panel4.add(label24, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
gastosOperacionalesCostoVenta = new NumberFormatedTextField();
|
gastosOperacionalesCostoVenta = new NumberFormatedTextField();
|
||||||
panel4.add(gastosOperacionalesCostoVenta,
|
panel4.add(gastosOperacionalesCostoVenta,
|
||||||
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosOperacionalesRemuneraciones = new NumberFormatedTextField();
|
gastosOperacionalesRemuneraciones = new NumberFormatedTextField();
|
||||||
panel4.add(gastosOperacionalesRemuneraciones,
|
panel4.add(gastosOperacionalesRemuneraciones,
|
||||||
new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosOperacionalesFiniquitos = new NumberFormatedTextField();
|
gastosOperacionalesFiniquitos = new NumberFormatedTextField();
|
||||||
panel4.add(gastosOperacionalesFiniquitos,
|
panel4.add(gastosOperacionalesFiniquitos,
|
||||||
new GridConstraints(2, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(2, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosOperacionalesAguinaldo = new NumberFormatedTextField();
|
gastosOperacionalesAguinaldo = new NumberFormatedTextField();
|
||||||
panel4.add(gastosOperacionalesAguinaldo,
|
panel4.add(gastosOperacionalesAguinaldo,
|
||||||
new GridConstraints(3, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(3, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosOperacionalesPartime = new NumberFormatedTextField();
|
gastosOperacionalesPartime = new NumberFormatedTextField();
|
||||||
gastosOperacionalesPartime.setEditable(false);
|
gastosOperacionalesPartime.setEditable(false);
|
||||||
panel4.add(gastosOperacionalesPartime,
|
panel4.add(gastosOperacionalesPartime,
|
||||||
new GridConstraints(4, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(4, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosOperacionalesBonos = new NumberFormatedTextField();
|
gastosOperacionalesBonos = new NumberFormatedTextField();
|
||||||
panel4.add(gastosOperacionalesBonos,
|
panel4.add(gastosOperacionalesBonos,
|
||||||
new GridConstraints(5, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(5, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosOperacionalesHonorariosContador = new NumberFormatedTextField();
|
gastosOperacionalesHonorariosContador = new NumberFormatedTextField();
|
||||||
panel4.add(gastosOperacionalesHonorariosContador,
|
panel4.add(gastosOperacionalesHonorariosContador,
|
||||||
new GridConstraints(6, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(6, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosOperacionalesArriendo = new NumberFormatedTextField();
|
gastosOperacionalesArriendo = new NumberFormatedTextField();
|
||||||
panel4.add(gastosOperacionalesArriendo,
|
panel4.add(gastosOperacionalesArriendo,
|
||||||
new GridConstraints(7, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(7, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
final JLabel label23 = new JLabel();
|
final JLabel label25 = new JLabel();
|
||||||
label23.setText("Total:");
|
Font label25Font = this.$$$getFont$$$(null, Font.BOLD, -1, label25.getFont());
|
||||||
panel4.add(label23,
|
if (label25Font != null)
|
||||||
new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
label25.setFont(label25Font);
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
label25.setText("Total:");
|
||||||
false));
|
panel4.add(label25, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
gastosOperacionalesTotal = new NumberFormatedTextField();
|
gastosOperacionalesTotal = new NumberFormatedTextField();
|
||||||
gastosOperacionalesTotal.setEditable(false);
|
gastosOperacionalesTotal.setEditable(false);
|
||||||
panel4.add(gastosOperacionalesTotal,
|
panel4.add(gastosOperacionalesTotal,
|
||||||
new GridConstraints(9, 1, 1, 2, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(9, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
final Spacer spacer4 = new Spacer();
|
final Spacer spacer4 = new Spacer();
|
||||||
panel4.add(spacer4, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel4.add(spacer4,
|
||||||
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null,
|
||||||
false));
|
null, null, 0, false));
|
||||||
gastosOperacionesPorcentajeCostoVenta = new DoubleFormatedTextField();
|
gastosOperacionesPorcentajeCostoVenta = new DoubleFormatedTextField();
|
||||||
gastosOperacionesPorcentajeCostoVenta.setColumns(6);
|
gastosOperacionesPorcentajeCostoVenta.setColumns(6);
|
||||||
gastosOperacionesPorcentajeCostoVenta.setEditable(false);
|
gastosOperacionesPorcentajeCostoVenta.setEditable(false);
|
||||||
panel4.add(gastosOperacionesPorcentajeCostoVenta,
|
panel4.add(gastosOperacionesPorcentajeCostoVenta, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
||||||
new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
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 JPanel panel5 = new JPanel();
|
final JPanel panel5 = new JPanel();
|
||||||
panel5.setLayout(new GridLayoutManager(7, 2, new Insets(10, 10, 10, 10), -1, -1));
|
panel5.setLayout(new GridLayoutManager(7, 2, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
contentPanel.add(panel5,
|
contentPanel.add(panel5, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
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,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
panel5.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Servicios"));
|
||||||
null, 0, false));
|
|
||||||
panel5.setBorder(
|
|
||||||
BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Servicios"));
|
|
||||||
final JLabel label24 = new JLabel();
|
|
||||||
label24.setText("Agua:");
|
|
||||||
panel5.add(label24,
|
|
||||||
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label25 = new JLabel();
|
|
||||||
label25.setText("Luz:");
|
|
||||||
panel5.add(label25,
|
|
||||||
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label26 = new JLabel();
|
final JLabel label26 = new JLabel();
|
||||||
label26.setText("Gas:");
|
label26.setText("Agua:");
|
||||||
panel5.add(label26,
|
panel5.add(label26, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label27 = new JLabel();
|
final JLabel label27 = new JLabel();
|
||||||
label27.setText("Telefono:");
|
label27.setText("Luz:");
|
||||||
panel5.add(label27,
|
panel5.add(label27, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label28 = new JLabel();
|
final JLabel label28 = new JLabel();
|
||||||
label28.setText("Total:");
|
label28.setText("Gas:");
|
||||||
panel5.add(label28,
|
panel5.add(label28, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
final JLabel label29 = new JLabel();
|
||||||
false));
|
label29.setText("Telefono:");
|
||||||
|
panel5.add(label29, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final JLabel label30 = new JLabel();
|
||||||
|
Font label30Font = this.$$$getFont$$$(null, Font.BOLD, -1, label30.getFont());
|
||||||
|
if (label30Font != null)
|
||||||
|
label30.setFont(label30Font);
|
||||||
|
label30.setText("Total:");
|
||||||
|
panel5.add(label30, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
serviciosAgua = new NumberFormatedTextField();
|
serviciosAgua = new NumberFormatedTextField();
|
||||||
panel5.add(serviciosAgua, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel5.add(serviciosAgua,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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, null, new Dimension(150, -1), null, 0, false));
|
||||||
serviciosLuz = new NumberFormatedTextField();
|
serviciosLuz = new NumberFormatedTextField();
|
||||||
panel5.add(serviciosLuz, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel5.add(serviciosLuz,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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, null, new Dimension(150, -1), null, 0, false));
|
||||||
serviciosGas = new NumberFormatedTextField();
|
serviciosGas = new NumberFormatedTextField();
|
||||||
panel5.add(serviciosGas, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel5.add(serviciosGas,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
serviciosTelefono = new NumberFormatedTextField();
|
serviciosTelefono = new NumberFormatedTextField();
|
||||||
panel5.add(serviciosTelefono, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel5.add(serviciosTelefono,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(3, 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, null, new Dimension(150, -1), null, 0, false));
|
||||||
serviciosTotal = new NumberFormatedTextField();
|
serviciosTotal = new NumberFormatedTextField();
|
||||||
serviciosTotal.setEditable(false);
|
serviciosTotal.setEditable(false);
|
||||||
panel5.add(serviciosTotal, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
serviciosTotal.setText("");
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
panel5.add(serviciosTotal,
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
new GridConstraints(6, 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 Spacer spacer5 = new Spacer();
|
final Spacer spacer5 = new Spacer();
|
||||||
panel5.add(spacer5, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel5.add(spacer5,
|
||||||
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null,
|
||||||
false));
|
null, null, 0, false));
|
||||||
serviciosOtro = new NumberFormatedTextField();
|
serviciosOtro = new NumberFormatedTextField();
|
||||||
panel5.add(serviciosOtro, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel5.add(serviciosOtro,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
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));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
final JLabel label29 = new JLabel();
|
final JLabel label31 = new JLabel();
|
||||||
label29.setText("Otros:");
|
label31.setText("Otros:");
|
||||||
panel5.add(label29,
|
panel5.add(label31, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JPanel panel6 = new JPanel();
|
final JPanel panel6 = new JPanel();
|
||||||
panel6.setLayout(new GridLayoutManager(8, 2, new Insets(10, 10, 10, 10), -1, -1));
|
panel6.setLayout(new GridLayoutManager(8, 2, new Insets(10, 10, 10, 10), -1, -1));
|
||||||
contentPanel.add(panel6,
|
contentPanel.add(panel6, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
new GridConstraints(2, 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,
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
|
panel6.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Gastos Generales"));
|
||||||
null, 0, false));
|
|
||||||
panel6.setBorder(
|
|
||||||
BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Gastos Generales"));
|
|
||||||
gastosGeneralesCuentaCorrienteFactura = new NumberFormatedTextField();
|
gastosGeneralesCuentaCorrienteFactura = new NumberFormatedTextField();
|
||||||
panel6.add(gastosGeneralesCuentaCorrienteFactura,
|
panel6.add(gastosGeneralesCuentaCorrienteFactura,
|
||||||
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosGeneralesCuentaCorrienteBoleta = new NumberFormatedTextField();
|
gastosGeneralesCuentaCorrienteBoleta = new NumberFormatedTextField();
|
||||||
panel6.add(gastosGeneralesCuentaCorrienteBoleta,
|
panel6.add(gastosGeneralesCuentaCorrienteBoleta,
|
||||||
new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosGeneralesCuentaCorrienteSinRespaldo = new NumberFormatedTextField();
|
gastosGeneralesCuentaCorrienteSinRespaldo = new NumberFormatedTextField();
|
||||||
panel6.add(gastosGeneralesCuentaCorrienteSinRespaldo,
|
panel6.add(gastosGeneralesCuentaCorrienteSinRespaldo,
|
||||||
new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosGeneralesEfectivoFacturaField = new NumberFormatedTextField();
|
gastosGeneralesEfectivoFacturaField = new NumberFormatedTextField();
|
||||||
gastosGeneralesEfectivoFacturaField.setEditable(false);
|
gastosGeneralesEfectivoFacturaField.setEditable(false);
|
||||||
panel6.add(gastosGeneralesEfectivoFacturaField,
|
panel6.add(gastosGeneralesEfectivoFacturaField,
|
||||||
new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosGeneralesEfectivoBoletaField = new NumberFormatedTextField();
|
gastosGeneralesEfectivoBoletaField = new NumberFormatedTextField();
|
||||||
gastosGeneralesEfectivoBoletaField.setEditable(false);
|
gastosGeneralesEfectivoBoletaField.setEditable(false);
|
||||||
panel6.add(gastosGeneralesEfectivoBoletaField,
|
panel6.add(gastosGeneralesEfectivoBoletaField,
|
||||||
new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosGeneralesEfectivoSinRespaldo = new NumberFormatedTextField();
|
gastosGeneralesEfectivoSinRespaldo = new NumberFormatedTextField();
|
||||||
gastosGeneralesEfectivoSinRespaldo.setEditable(false);
|
gastosGeneralesEfectivoSinRespaldo.setEditable(false);
|
||||||
panel6.add(gastosGeneralesEfectivoSinRespaldo,
|
panel6.add(gastosGeneralesEfectivoSinRespaldo,
|
||||||
new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
gastosGeneralesTotal = new NumberFormatedTextField();
|
gastosGeneralesTotal = new NumberFormatedTextField();
|
||||||
gastosGeneralesTotal.setEditable(false);
|
gastosGeneralesTotal.setEditable(false);
|
||||||
panel6.add(gastosGeneralesTotal, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_WEST,
|
panel6.add(gastosGeneralesTotal,
|
||||||
GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(7, 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, null, new Dimension(150, -1), null, 0, false));
|
||||||
final JLabel label30 = new JLabel();
|
|
||||||
label30.setText("CTA CTE Con Factura:");
|
|
||||||
panel6.add(label30,
|
|
||||||
new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label31 = new JLabel();
|
|
||||||
label31.setText("CTA CTE Con Boleta:");
|
|
||||||
panel6.add(label31,
|
|
||||||
new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label32 = new JLabel();
|
final JLabel label32 = new JLabel();
|
||||||
label32.setText("CTA CTE Sin Respaldo:");
|
label32.setText("CTA CTE Con Factura:");
|
||||||
panel6.add(label32,
|
panel6.add(label32, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label33 = new JLabel();
|
final JLabel label33 = new JLabel();
|
||||||
label33.setText("Efectivo Con Factura:");
|
label33.setText("CTA CTE Con Boleta:");
|
||||||
panel6.add(label33,
|
panel6.add(label33, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label34 = new JLabel();
|
final JLabel label34 = new JLabel();
|
||||||
label34.setText("Efectivo Con Boleta:");
|
label34.setText("CTA CTE Sin Respaldo:");
|
||||||
panel6.add(label34,
|
panel6.add(label34, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label35 = new JLabel();
|
final JLabel label35 = new JLabel();
|
||||||
label35.setText("Efectivo Sin Respaldo");
|
label35.setText("Efectivo Con Factura:");
|
||||||
panel6.add(label35,
|
panel6.add(label35, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
|
||||||
false));
|
|
||||||
final JLabel label36 = new JLabel();
|
final JLabel label36 = new JLabel();
|
||||||
label36.setText("Total:");
|
label36.setText("Efectivo Con Boleta:");
|
||||||
panel6.add(label36,
|
panel6.add(label36, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE,
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
|
final JLabel label37 = new JLabel();
|
||||||
false));
|
label37.setText("Efectivo Sin Respaldo");
|
||||||
|
panel6.add(label37, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
final JLabel label38 = new JLabel();
|
||||||
|
Font label38Font = this.$$$getFont$$$(null, Font.BOLD, -1, label38.getFont());
|
||||||
|
if (label38Font != null)
|
||||||
|
label38.setFont(label38Font);
|
||||||
|
label38.setText("Total:");
|
||||||
|
panel6.add(label38, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
final Spacer spacer6 = new Spacer();
|
final Spacer spacer6 = new Spacer();
|
||||||
panel6.add(spacer6, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER,
|
panel6.add(spacer6,
|
||||||
GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0,
|
new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null,
|
||||||
false));
|
null, null, 0, false));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @noinspection ALL
|
||||||
|
*/
|
||||||
|
private Font $$$getFont$$$(String fontName, int style, int size, Font currentFont) {
|
||||||
|
if (currentFont == null)
|
||||||
|
return null;
|
||||||
|
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user