if (row < 0 || evt.getClickCount() < 2 || col != TableModelPollingCollabData.COL_CLIENT) {
return;
}
ColDataKey key = keyList.get(row);
try {
EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", getAuditManager());
PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
String surName = dirSurname.getItemFromID(key.surnameID).getTitle();
String name = dirName.getItemFromID(key.nameID).getTitle();
String pathron = dirPathron.getItemFromID(key.pathronID).getTitle();
panel.setFIO(surName + " " + name + " " + pathron);
dialog.addNewPage((PageGeneric) panel, null);
dialog.setVisible(true);
ClientLocal client = panel.getSelectedClient();
if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
ArrayList<ClientLocal> clientList = new ArrayList<ClientLocal>(1);
if (client != null) {
clientList.add(client);
}
map.put(key, clientList);