((AbstractDocument) tfMoney.getDocument()).setDocumentFilter(filter);
tfMoney.setText(String.format("%.2f", 0.01 * cardLocal.getMoney()));
cbCardType.setSelectedItem(cardLocal.getCardType());
DirectoryCollaboratorItem dci = cardLocal.getBlocker();
if (dci == null) {
tfBlock.setText("");
btBlock.setText("Заблокировать");
btBlock.setEnabled(UserInfo.get().check(UserRightsSet.BLOCK_DISCOUNT_CARD)
|| UserInfo.get().isSuperUser());
} else {
tfBlock.setText("Заблокировано: " + dci.toString());
tfBlock.setForeground(DefaultColors.TABLE_RED_FOREGROUND);
btBlock.setText("Разблокировать");
btBlock.setEnabled(UserInfo.get().isSuperUser());
}
}