//DiscountCard, Discount
Class checked = DiscountCard.class;
Field f[] = { new Field("type", entity) };
try {
DiscountCardBeanRemote cardBeanRemote = getBean(DiscountCardBean.class);
List list = findEntityList(checked, f);
for (int i = 0; i < list.size(); i++) {
DiscountCard discountCard = (DiscountCard) list.get(i);
cardBeanRemote.initByID(discountCard.getId(), getSessionId());
DiscountCardDetails details = (DiscountCardDetails) cardBeanRemote.getDetails();
details.collaboratorBlockerID = getCollaboratorId();
cardBeanRemote.update(details);
}
} catch (ClipsServerException ex) {
throw new ENotMoveToTrash("Ошибка при блокировке диск. карты", ex);
}