}//GEN-LAST:event_btServiceActionPerformed
private void btContractActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btContractActionPerformed
try {
EmptyDialog dlg = new EmptyDialog(MainWindow.mainWindow, "Выбор контракта", getAuditManager());
PanelContractSearch panel = new PanelContractSearch(dlg, true);
dlg.addNewPage(panel, null);
dlg.setVisible(true);
if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
contract = panel.getSelectedContract();
if (contract != null) {
tfContract.setText(contract.getInfo());
}
else {
btContract.setEnabled(false);