* @param evt
*/
private void btClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btClientActionPerformed
// Показываем диалог выбора человека
EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", getAuditManager());
PanelUserSearch pus = null;
try {
pus = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
dialog.addNewPage(pus, null);
dialog.setVisible(true);
} catch (Exception ex) {
if ((ex instanceof ClipsException) && !(ex instanceof PageException)) {
// setErrorMode();
}
MessageBox.showException(ex);
return;
}
if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
ClientLocal cl = pus.getSelectedClient();
tfClient.setText(cl.toString());
jPanel2.revalidate();
filter.clientId = chbClient.isSelected() ? cl.getID() : 0;
}
}//GEN-LAST:event_btClientActionPerformed