if (committee.getMemberList().size() == 0) {
MessageBox.showWarning(MessageBox.W_COMMITTEE_NOT_MADE);
}
else {
CommitteeDirectionData dirData = committee.getDirectionList().get(row);
CommitteeResolutionData comResData = committee.getResolutionByDirection(dirData);
if (comResData != null) {
jTabbedPane1.setSelectedComponent(panelResolution);
for (int i = 0; i < comResList.size(); i++) {
if (comResList.get(i).equals(comResData)) {
tabResolutionList.setRowSelectionInterval(i, i);
break;
}
}
}
else {
comResData = new CommitteeResolutionData(dirData);
ComResDlg dlg = new ComResDlg(MainWindow.mainWindow, comResData, getAuditManager());
dlg.setVisible(true);
if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
comResData.setCollaborator(UserInfo.get().getCollaborator());
committee.getResolutionList(false).append(comResData);
DirectionLocal direction = dirData.getDirection(getAuditManager());
direction.addContentStateListener(emptyListener);
direction.setOrdered(true);
directions.add(direction);