Package org.zeroexchange.model.dictionary

Examples of org.zeroexchange.model.dictionary.DictionaryItem


                stockManager.isAmountManagementEnabled(resource, TenderType.NEED);
        User resourceOwner = resource.getOwner();
       
        add(new Label(CKEY_RESOURCE_OWNER, resourceOwner == null ? "-" : resourceOwner.getDisplayName()));
       
        DictionaryItem uomItem = resourceReader.getUnitOfMeasure(resource);
        String uomTitle = uomItem == null ? "" : localizationReader.getString(uomItem);
       
        Label availableAmountLabel = new Label(CKEY_AVAILABLE_AMOUNT, new StringResourceModel(MKEY_AMOUNT_VALUE, null, availableAmount, uomTitle));
        if(availableAmount.compareTo(BigDecimal.ZERO) < 0) {
            availableAmountLabel.add(new AttributeAppender("class", CLASS_WARNING));
View Full Code Here


        User user = tender.getUser();
        Resource resource = tender.getResource();
        Integer resourceID = resource.getId();
       
       
        DictionaryItem uomItem = resourceReader.getUnitOfMeasure(resource);
       
        String amountClause = tender.getAmount() + (uomItem == null ? "" : " " + localizationReader.getString(uomItem));
        IModel<String> headerModel = null;
        if(tender instanceof Supply) {
          headerModel = new StringResourceModel(MKEY_TENDER_SUPPLY_HEADER,
View Full Code Here

TOP

Related Classes of org.zeroexchange.model.dictionary.DictionaryItem

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.