}
@Override
public Object getValueAt(int r, int c) {
try {
SerRenLocal serRenLocal = serRenIterator.get(r);
PolisData polisData = serRenLocal.getPolisData();
switch (c) {
case COL_SERVICE: {
//наименование услуги
return serRenLocal.getService();
}
case COL_CONTRACT: {
return polisData.getContract().getInfo();
}
case COL_CLIENT: {
return polisData.getClient().getFIO();
}
case COL_DIRECTED: {
DirectoryCollaboratorItem serRenDirector = serRenLocal.getSerRenDirector();
Date date = serRenLocal.getSerDate();
return Converter.dateToString(date) + " " + serRenDirector.toString();
}
case COL_RENDERED: {
if (serRenLocal.isRendered()) {
DirectoryCollaboratorItem cl = serRenLocal.getCollaboratorFunctions().getCollaborator();
Date dateOrder = serRenLocal.getSerRenderDate();
return Converter.dateToString(dateOrder) + " " + cl.toString();
} else {
return "Не оказана";
}
}