Examples of PriceSetItemDto


Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetItemDto

        hideSpinner();
    }

    @Override
    public void onPriceSetItemAdded(PriceSetItemAddedEvent event) {
        PriceSetItemDto priceSetItem = event.getPriceSetItem();
        if (!display.priceSetItemExists(priceSetItem)) {
            display.getAddNewItemName().setText("");
            display.addPriceSetItem(priceSetItem);
            bindRemoveButton(priceSetItem);
        } else {
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetItemDto

        unbindDynamic();
        bindDynamic();
    }

    private PriceSetItemDto createPriceSetItem(Long itemTypeID, Long itemCategoryID, String itemTypeIcon, String itemTypeName, BigDecimal price) {
        PriceSetItemDto priceSetItem = new PriceSetItemDto();
        priceSetItem.setItemTypeID(itemTypeID);
        priceSetItem.setItemCategoryID(itemCategoryID);
        priceSetItem.setItemTypeIcon(itemTypeIcon);
        priceSetItem.setItemTypeName(itemTypeName);
        priceSetItem.setPrice(price);
        return priceSetItem;
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetItemDto

        String typeName = action.getItemTypeName();
        ItemTypeDto itemTypeDto = clientFacade.getItemTypeByName(typeName);
        if (itemTypeDto == null) {
            throw new InvalidItemTypeException(typeName, ErrorCode.INVALID_ITEM_TYPE);
        }
        PriceSetItemDto priceSetItemDto = new PriceSetItemDto();
        priceSetItemDto.setItemTypeName(itemTypeDto.getName());
        priceSetItemDto.setItemTypeIcon(itemTypeDto.getGraphicIcon());
        priceSetItemDto.setItemTypeID(itemTypeDto.getItemTypeID());
        priceSetItemDto.setItemCategoryID(itemTypeDto.getItemCategoryID());
        priceSetItemDto.setPrice(BigDecimal.ZERO);

        PriceSetAddItemActionResponse response = new PriceSetAddItemActionResponse();
        response.setPriceSetItem(priceSetItemDto);
        return response;
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetItemDto

        return priceSetItem;
    }

    @Override
    public PriceSetItemDto map(PriceSetItem priceSetItem, Class<PriceSetItemDto> priceSetItemDtoClass) {
        PriceSetItemDto priceSetItemDto = new PriceSetItemDto();
        priceSetItemDto.setItemTypeID(priceSetItem.getItemTypeID());
        priceSetItemDto.setItemCategoryID(priceSetItem.getItemCategoryID());
        priceSetItemDto.setItemTypeName(priceSetItem.getItemTypeName());
        priceSetItemDto.setItemTypeIcon(priceSetItem.getItemTypeIcon());
        priceSetItemDto.setPrice(new BigDecimal(priceSetItem.getPrice()));
        return priceSetItemDto;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.