Agregado nro z inicial y nro z final a tabla ingresos

This commit is contained in:
Daniel Cortes
2019-01-05 18:15:49 -03:00
parent 543ee9ffde
commit 4c087680cd
13 changed files with 636 additions and 344 deletions

View File

@@ -35,7 +35,7 @@ public class IngresosTableModel extends AbstractTableModel {
public IngresosTableModel() {
super();
this.columns = new String[]{"Valor", "N° Inicial", "N° Final", "Tipo"};
this.columns = new String[]{"Valor","N° Z Inicial", "N° Z Final", "N° Inicial", "N° Final", "Tipo"};
this.rows = new ArrayList<>();
}
@@ -78,10 +78,14 @@ public class IngresosTableModel extends AbstractTableModel {
case 0:
return this.rows.get(row).getValor();
case 1:
return this.rows.get(row).getNroInicial();
return this.rows.get(row).getNroZInicial();
case 2:
return this.rows.get(row).getNroFinal();
return this.rows.get(row).getNroZFinal();
case 3:
return this.rows.get(row).getNroInicial();
case 4:
return this.rows.get(row).getNroFinal();
case 5:
return this.rows.get(row).getTipoIngreso().getNombre();
}
return null;
@@ -96,11 +100,4 @@ public class IngresosTableModel extends AbstractTableModel {
this.fireTableRowsUpdated(getRowCount() - 2, getRowCount() - 1);
}
@Override
public Class<?> getColumnClass(int columnIndex) {
if (rows.isEmpty()) {
return Object.class;
}
return getValueAt(0, columnIndex).getClass();
}
}