use of com.netsteadfast.greenstep.vo.PerspectiveVO in project bamboobsc by billchen198318.
the class PerspectiveSaveOrUpdateAction method update.
private void update() throws ControllerException, AuthorityException, ServiceException, Exception {
this.checkFields();
PerspectiveVO perspective = new PerspectiveVO();
this.transformFields2ValueObject(perspective, new String[] { "oid", "name", "weight", "target", "min", "description" });
DefaultResult<PerspectiveVO> result = this.perspectiveLogicService.update(perspective, this.getFields().get("visionOid"));
this.message = result.getSystemMessage().getValue();
if (result.getValue() != null) {
this.success = IS_YES;
}
}
use of com.netsteadfast.greenstep.vo.PerspectiveVO in project bamboobsc by billchen198318.
the class PerspectiveSaveOrUpdateAction method delete.
private void delete() throws ControllerException, AuthorityException, ServiceException, Exception {
PerspectiveVO perspective = new PerspectiveVO();
this.transformFields2ValueObject(perspective, new String[] { "oid" });
DefaultResult<Boolean> result = this.perspectiveLogicService.delete(perspective);
this.message = result.getSystemMessage().getValue();
if (result.getValue() != null && result.getValue()) {
this.success = IS_YES;
}
}
use of com.netsteadfast.greenstep.vo.PerspectiveVO in project bamboobsc by billchen198318.
the class RegionMapRelationKpisAction method fillRelationKpis.
private void fillRelationKpis(BscStructTreeObj treeObj) throws Exception {
List<VisionVO> visions = treeObj.getVisions();
for (VisionVO vision : visions) {
for (PerspectiveVO perspective : vision.getPerspectives()) {
for (ObjectiveVO objective : perspective.getObjectives()) {
for (KpiVO kpi : objective.getKpis()) {
boolean isFound = false;
for (Map<String, Object> founds : this.relationKpis) {
if (kpi.getId().equals(founds.get("id"))) {
isFound = true;
}
}
if (isFound) {
continue;
}
Map<String, Object> paramMap = new HashMap<String, Object>();
paramMap.put("id", kpi.getId());
paramMap.put("name", kpi.getName());
paramMap.put("score", NumberUtils.toFloat(BscReportSupportUtils.parse2(kpi.getScore())));
paramMap.put("bgColor", kpi.getBgColor());
paramMap.put("fontColor", kpi.getFontColor());
paramMap.put("target", kpi.getTarget());
paramMap.put("min", kpi.getMin());
this.relationKpis.add(paramMap);
}
}
}
}
}
Aggregations