setEnabledComponents();
}//GEN-LAST:event_btAddActionPerformed
private void btPrescribeServiceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btPrescribeServiceActionPerformed
try {
DialogNewSerRen dlg = new DialogNewSerRen(MainWindow.mainWindow, diseaseLocal, getAuditManager());
dlg.setVisible(true);
if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
for (SerRenLocal serRenLocal : dlg.getNewSerrenList()) {
serRenLocal.addContentStateListener(getContainer());
diseaseLocal.addChild(serRenLocal);
}
diseaseLocal.save1();
}
if (dlg.getDlgResult() == ModalDialog.DLG_NEXTRESULT) {
DiseaseLocal diseaseMedexam = dlg.getNewDiseaseLocal();
diseaseLocal.getEmcLocal().addChild(diseaseMedexam);
}
} catch (Exception ex) {
MessageBox.showExceptionOnly(ex);
}