Package com.gcrm.vo

Examples of com.gcrm.vo.ChartVO


        Iterator it = result.iterator();
        ActionContext context = ActionContext.getContext();
        Map<String, Object> session = context.getSession();
        String local = (String) session.get("locale");
        list = new ArrayList<ChartVO>();
        ChartVO chartVO = null;
        SalesStage salesStage = null;
        while (it.hasNext()) {
            Object[] row = (Object[]) it.next();

            salesStage = (SalesStage) row[0];
            String IndustryLabel = "";
            if (salesStage != null) {
                if ("zh_CN".equals(local)) {
                    IndustryLabel = salesStage.getLabel_zh_CN();
                } else {
                    IndustryLabel = salesStage.getLabel_en_US();
                }
            }
            Long number = (Long) row[1];
            chartVO = new ChartVO();
            chartVO.setLabel(IndustryLabel);
            chartVO.setNumber(number.intValue());
            list.add(chartVO);
        }
        map = new HashMap<String, Object>();
    }
View Full Code Here


        Iterator it = result.iterator();
        ActionContext context = ActionContext.getContext();
        Map<String, Object> session = context.getSession();
        String local = (String) session.get("locale");
        list = new ArrayList<ChartVO>();
        ChartVO chartVO = null;
        LeadSource leadSource = null;
        while (it.hasNext()) {
            Object[] row = (Object[]) it.next();

            leadSource = (LeadSource) row[0];
            String IndustryLabel = "";
            if (leadSource != null) {
                if ("zh_CN".equals(local)) {
                    IndustryLabel = leadSource.getLabel_zh_CN();
                } else {
                    IndustryLabel = leadSource.getLabel_en_US();
                }
            }
            Long number = (Long) row[1];
            chartVO = new ChartVO();
            chartVO.setLabel(IndustryLabel);
            chartVO.setNumber(number.intValue());
            list.add(chartVO);
        }
        map = new HashMap<String, Object>();
    }
View Full Code Here

        Iterator it = result.iterator();
        ActionContext context = ActionContext.getContext();
        Map<String, Object> session = context.getSession();
        String local = (String) session.get("locale");
        list = new ArrayList<ChartVO>();
        ChartVO chartVO = null;
        LeadSource leadSource = null;
        while (it.hasNext()) {
            Object[] row = (Object[]) it.next();

            leadSource = (LeadSource) row[0];
            String IndustryLabel = "";
            if (leadSource != null) {
                if ("zh_CN".equals(local)) {
                    IndustryLabel = leadSource.getLabel_zh_CN();
                } else {
                    IndustryLabel = leadSource.getLabel_en_US();
                }
            }
            Long number = (Long) row[1];
            chartVO = new ChartVO();
            chartVO.setLabel(IndustryLabel);
            chartVO.setNumber(number.intValue());
            list.add(chartVO);
        }
        map = new HashMap<String, Object>();
    }
View Full Code Here

        Iterator it = result.iterator();
        ActionContext context = ActionContext.getContext();
        Map<String, Object> session = context.getSession();
        String local = (String) session.get("locale");
        list = new ArrayList<ChartVO>();
        ChartVO chartVO = null;
        Industry indusrty = null;
        while (it.hasNext()) {
            Object[] row = (Object[]) it.next();

            indusrty = (Industry) row[0];
            String IndustryLabel = "";
            if (indusrty != null) {
                if ("zh_CN".equals(local)) {
                    IndustryLabel = indusrty.getLabel_zh_CN();
                } else {
                    IndustryLabel = indusrty.getLabel_en_US();
                }
            }
            Long number = (Long) row[1];
            chartVO = new ChartVO();
            chartVO.setLabel(IndustryLabel);
            chartVO.setNumber(number.intValue());
            list.add(chartVO);
        }
        map = new HashMap<String, Object>();
    }
View Full Code Here

        Iterator it = result.iterator();
        ActionContext context = ActionContext.getContext();
        Map<String, Object> session = context.getSession();
        String local = (String) session.get("locale");
        list = new ArrayList<ChartVO>();
        ChartVO chartVO = null;
        LeadStatus leadStatus = null;
        while (it.hasNext()) {
            Object[] row = (Object[]) it.next();

            leadStatus = (LeadStatus) row[0];
            String IndustryLabel = "";
            if (leadStatus != null) {
                if ("zh_CN".equals(local)) {
                    IndustryLabel = leadStatus.getLabel_zh_CN();
                } else {
                    IndustryLabel = leadStatus.getLabel_en_US();
                }
            }
            Long number = (Long) row[1];
            chartVO = new ChartVO();
            chartVO.setLabel(IndustryLabel);
            chartVO.setNumber(number.intValue());
            list.add(chartVO);
        }
        map = new HashMap<String, Object>();
    }
View Full Code Here

TOP

Related Classes of com.gcrm.vo.ChartVO

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.