if(lst.size() == 0) {
Message.error(this, "Нет доступных подотчетов");
} else {
SubReportChooseDlg dlg = new SubReportChooseDlg(parent, lst);
dlg.setVisible(true);
if(dlg.isOK()) {
Report selected = dlg.getSelectedReport();
ItemSelectorEditable<QueryExecuterSub> subreports = reportQuery.getSubReports();
QueryExecuterSub srq = new QueryExecuterSub(
selected.getID(), selected.getQuery(), selected.getTitle(),
selected.getDescription(), "", "", 1, RowCount.SINGLE);
subreports.add(srq);