Agregado nro z inicial y nro z final a tabla ingresos
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user