Package beans.discount.entity

Examples of beans.discount.entity.DiscountCardDetails


     * @return идентификатор сущности
     */
    @Override
    protected void onUpdate(DiscountCard entity, EntityDetails details,
            AuditDoc auditDoc, List<AuditDoc> auditDocList) throws ClipsServerException{
        DiscountCardDetails d = (DiscountCardDetails) details;

        boolean onlyBlock = false;
        if (entity.getId() != 0) {
            //проверка на только блокирование
            DiscountCardDetails dold = entity.getDetails(this);
            DiscountCardDetails dnew = d.clone();
            if (dold.collaboratorBlockerID == 0 && dnew.collaboratorBlockerID != 0) {
                dnew.collaboratorBlockerID = 0;
                if (dold.equals(dnew)) {
                    onlyBlock = true;
                }
View Full Code Here


            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);
View Full Code Here

        super(details, al);
    }

    @Override
    protected DiscountCardDetails getNewDetails() {
        return new DiscountCardDetails();
    }
View Full Code Here

        public DiscountCardCache(ExtraDataManager contaner) {
            super(contaner);
        }
        @Override
        protected DiscountCardLocal init() throws Exception {
            DiscountCardDetails details = getBean().getDiscountCard();
            if (details != null) {
                return new DiscountCardLocal(details, getAuditListener());
            }
            return null;
        }
View Full Code Here

TOP

Related Classes of beans.discount.entity.DiscountCardDetails

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.