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;
}
}
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;
}
}
Aggregations