Package com.gcrm.domain

Examples of com.gcrm.domain.Currency


            }
            AccountType type = account.getAccount_type();
            if (type != null) {
                typeID = type.getId();
            }
            Currency currency = account.getCurrency();
            if (currency != null) {
                currencyID = currency.getId();
            }
            AnnualRevenue annualRevenue = account.getAnnual_revenue();
            if (annualRevenue != null) {
                annualRevenueID = annualRevenue.getId();
            }
View Full Code Here


                    String currencyID = row
                            .get(getText("entity.currency_id.label"));
                    if (CommonUtil.isNullOrEmpty(currencyID)) {
                        campaign.setCurrency(null);
                    } else {
                        Currency currency = currencyService.getEntityById(
                                Currency.class, Integer.parseInt(currencyID));
                        campaign.setCurrency(currency);
                    }
                    String impressions = row
                            .get(getText("campaign.impressions.label"));
View Full Code Here

        // Constructs the JSON data
        String json = "{\"total\": " + totalRecords + ",\"rows\": [";
        int size = currencys.size();
        for (int i = 0; i < size; i++) {
            Currency instance = currencys.get(i);
            Integer id = instance.getId();
            String name = CommonUtil.fromNullToEmpty(instance.getName());
            String code = CommonUtil.fromNullToEmpty(instance.getCode());
            Double rate = instance.getRate();
            String rateS = "";
            if (rate != null) {
                rateS = String.valueOf(rate);
            }
            String symbol = CommonUtil.fromNullToEmpty(instance.getSymbol());
            String status = CommonUtil.fromNullToEmpty(instance.getStatus());

            json += "{\"id\":\"" + id + "\",\"currency.id\":\"" + id
                    + "\",\"currency.name\":\"" + name
                    + "\",\"currency.code\":\"" + code
                    + "\",\"currency.rate\":\"" + rateS
View Full Code Here

TOP

Related Classes of com.gcrm.domain.Currency

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.