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>();
}