super(columns);
}
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
CustomerThoub thoub = (CustomerThoub) data.get(rowIndex);
switch (columnIndex) {
case 0:
return thoub.getId();
case 1:
return thoub.getCustomer();
case 2: return thoub.getCustomer().getMobileNo();
case 3:
return Utils.getHijriDate(thoub.getDesignDate());
case 4:
return Utils.getHijriDate(thoub.getDeliveryDate());
case 5:
return thoub.getThoubsCount();
case 6:
return thoub.getPrice();
case 7:
return thoub.getPaid();
case 8:
return thoub.getRemain();
default:
return null;
}
}