Search in sources :

Example 11 with AggregationMethodVO

use of com.netsteadfast.greenstep.vo.AggregationMethodVO in project bamboobsc by billchen198318.

the class AggregationMethodSaveOrUpdateAction method delete.

private void delete() throws ControllerException, AuthorityException, ServiceException, Exception {
    AggregationMethodVO aggr = new AggregationMethodVO();
    this.transformFields2ValueObject(aggr, new String[] { "oid" });
    DefaultResult<Boolean> result = this.aggregationMethodLogicService.delete(aggr);
    this.message = result.getSystemMessage().getValue();
    if (result.getValue() != null && result.getValue()) {
        this.success = IS_YES;
    }
}
Also used : AggregationMethodVO(com.netsteadfast.greenstep.vo.AggregationMethodVO)

Example 12 with AggregationMethodVO

use of com.netsteadfast.greenstep.vo.AggregationMethodVO in project bamboobsc by billchen198318.

the class AggregationMethodSaveOrUpdateAction method save.

private void save() throws ControllerException, AuthorityException, ServiceException, Exception {
    this.checkFields();
    AggregationMethodVO aggr = new AggregationMethodVO();
    this.transformFields2ValueObject(aggr, new String[] { "aggrId", "name", "type", "expression1", "expression2", "description" });
    DefaultResult<AggregationMethodVO> result = this.aggregationMethodLogicService.create(aggr);
    this.message = result.getSystemMessage().getValue();
    if (result.getValue() != null) {
        this.success = IS_YES;
    }
}
Also used : AggregationMethodVO(com.netsteadfast.greenstep.vo.AggregationMethodVO)

Aggregations

AggregationMethodVO (com.netsteadfast.greenstep.vo.AggregationMethodVO)12 ServiceException (com.netsteadfast.greenstep.base.exception.ServiceException)6 DefaultResult (com.netsteadfast.greenstep.base.model.DefaultResult)3 SystemMessage (com.netsteadfast.greenstep.base.model.SystemMessage)3 ServiceMethodAuthority (com.netsteadfast.greenstep.base.model.ServiceMethodAuthority)2 HashMap (java.util.HashMap)2 Transactional (org.springframework.transaction.annotation.Transactional)2 BscMixDataVO (com.netsteadfast.greenstep.bsc.vo.BscMixDataVO)1 FormulaVO (com.netsteadfast.greenstep.vo.FormulaVO)1 KpiVO (com.netsteadfast.greenstep.vo.KpiVO)1 ObjectiveVO (com.netsteadfast.greenstep.vo.ObjectiveVO)1 PerspectiveVO (com.netsteadfast.greenstep.vo.PerspectiveVO)1 VisionVO (com.netsteadfast.greenstep.vo.VisionVO)1 List (java.util.List)1