}
private void initTablesData() {
RegClass regObject = (RegClass) ClassManager.createClass(510);
Vector taxableRows = null;
if (stat.equals("Display no taxed regs")){
taxableRows = regObject.findAllNotTaxedByOtherTaxsRegs(selectedRow);
}
else if (stat.equals("Display all taxed regs"))
taxableRows = regObject.findAllTaxableRegs(selectedRow);
Iterator taxableRowsIter = taxableRows.iterator();
while (taxableRowsIter.hasNext()) {
Row row = (Row) taxableRowsIter.next();
Vector rowData = new Vector();
Cell cell = ObjectUtil.findNewCell(row, "RI", "R");
rowData.add(cell.getColumnValue());
cell = ObjectUtil.findNewCell(row, "RI", "RI");
rowData.add(cell.getColumnValue());
cell = ObjectUtil.findNewCell(row, "RI", "TXT256");
rowData.add(cell.getColumnValue());
cell = ObjectUtil.findNewCell(row, "RI", "LD");
rowData.add(cell.getColumnValue());
cell = ObjectUtil.findNewCell(row, "RI", "LC");
rowData.add(cell.getColumnValue());
cell = ObjectUtil.findNewCell(row, "RI", "LAMT");
rowData.add(cell.getColumnValue());
cell = ObjectUtil.findNewCell(row, "RI", "TC");
rowData.add(cell.getColumnValue());
cell = ObjectUtil.findNewCell(row, "RI", "TAMT");
rowData.add(cell.getColumnValue());
rowData.add(row);
cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAXT");
String taxt = (String) cell.getColumnValue();
cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAX");
String tax = (String) cell.getColumnValue();
cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAXI");
String taxi = (String) cell.getColumnValue();
if (regObject.isRowTaxedBySpecifyTax(row, taxt, tax, taxi)) {
if (regObject.getRowSignBySpecifyTax(row, taxt, tax, taxi) == 1) {
DefaultTableModel model = (DefaultTableModel) addedTaxRegsTable
.getModel();
model.addRow(rowData);
} else if (regObject.getRowSignBySpecifyTax(row, taxt, tax,
taxi) == -1) {
DefaultTableModel model = (DefaultTableModel) subedTaxRegsTable
.getModel();
model.addRow(rowData);
}