CommitteeResolutionData comRes = committee.getResolutionList(false).get(row);
if(comRes.getId() == 0) {
throw new ClipsException("Перед данным действием необходимо сохранить список решений КЭК");
}
InabilityData inability = committee.getInabilityByResolution(comRes);
if (inability != null) {
jTabbedPane1.setSelectedComponent(panelInability);
for (int i = 0; i < inabilityList.size(); i++) {
if (inabilityList.get(i).equals(inability)) {
tabInabilidityList.setRowSelectionInterval(i, i);
break;
}
}
} else {
if (comRes.isRendered()) {
return;
}
inability = new InabilityData(comRes);
DlgInabilityEdit dlg = new DlgInabilityEdit(MainWindow.mainWindow, inability, getAuditManager());
dlg.setVisible(true);
if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
comRes.setRendered(true);
committee.getInabilityList(false).append(inability);