}
public void remove(){
if (curReport != null){
if (curReport.isNewlyCreated()){
DiseaseReportLocal tmp = curReport;
setPanelReport(null, false);
tReportListModel.remove(tmp);
}
else {
int res = MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT);
if (res == MessageBox.ANSWER_YES){
try {
DiseaseReportLocal tmp = curReport;
setPanelReport(null, false);
tmp.remove();
tReportListModel.remove(tmp);
} catch (ClipsException ex) {
MessageBox.showException(ex);
}
}