Search in sources :

Example 6 with StrategyMapItemsVO

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

the class StrategyMapManagementAction method loadRecord.

private void loadRecord() throws ControllerException, ServiceException, Exception {
    if (StringUtils.isBlank(this.visionOid) || super.isNoSelectId(this.visionOid)) {
        throw new ControllerException(this.getText("MESSAGE.BSC_PROG002D0007Q_vision"));
    }
    Context context = this.getChainContext();
    SimpleChain chain = new SimpleChain();
    ChainResultObj resultObj = chain.getResultFromResource("strategyMapItemsForRecChain", context);
    this.setPageMessage(resultObj.getMessage());
    if (resultObj.getValue() instanceof StrategyMapItemsVO) {
        this.divItems = ((StrategyMapItemsVO) resultObj.getValue()).getDiv();
        this.cssItems = ((StrategyMapItemsVO) resultObj.getValue()).getCss();
        this.conItems = ((StrategyMapItemsVO) resultObj.getValue()).getCon();
    }
}
Also used : Context(org.apache.commons.chain.Context) ControllerException(com.netsteadfast.greenstep.base.exception.ControllerException) StrategyMapItemsVO(com.netsteadfast.greenstep.bsc.vo.StrategyMapItemsVO) ChainResultObj(com.netsteadfast.greenstep.base.model.ChainResultObj) SimpleChain(com.netsteadfast.greenstep.base.chain.SimpleChain)

Example 7 with StrategyMapItemsVO

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

the class StrategyMapManagementAction method loadNew.

private void loadNew() throws ControllerException, ServiceException, Exception {
    if (StringUtils.isBlank(this.visionOid) || super.isNoSelectId(this.visionOid)) {
        throw new ControllerException(this.getText("MESSAGE.BSC_PROG002D0007Q_vision"));
    }
    Context context = this.getChainContext();
    SimpleChain chain = new SimpleChain();
    ChainResultObj resultObj = chain.getResultFromResource("strategyMapItemsForNewChain", context);
    this.setPageMessage(resultObj.getMessage());
    if (resultObj.getValue() instanceof StrategyMapItemsVO) {
        this.divItems = ((StrategyMapItemsVO) resultObj.getValue()).getDiv();
        this.cssItems = ((StrategyMapItemsVO) resultObj.getValue()).getCss();
    }
}
Also used : Context(org.apache.commons.chain.Context) ControllerException(com.netsteadfast.greenstep.base.exception.ControllerException) StrategyMapItemsVO(com.netsteadfast.greenstep.bsc.vo.StrategyMapItemsVO) ChainResultObj(com.netsteadfast.greenstep.base.model.ChainResultObj) SimpleChain(com.netsteadfast.greenstep.base.chain.SimpleChain)

Aggregations

StrategyMapItemsVO (com.netsteadfast.greenstep.bsc.vo.StrategyMapItemsVO)7 SimpleChain (com.netsteadfast.greenstep.base.chain.SimpleChain)3 ChainResultObj (com.netsteadfast.greenstep.base.model.ChainResultObj)3 Context (org.apache.commons.chain.Context)3 ControllerException (com.netsteadfast.greenstep.base.exception.ControllerException)2 BscStructTreeObj (com.netsteadfast.greenstep.bsc.model.BscStructTreeObj)2 VisionVO (com.netsteadfast.greenstep.vo.VisionVO)2 BbStrategyMapConns (com.netsteadfast.greenstep.po.hbm.BbStrategyMapConns)1 BbStrategyMapNodes (com.netsteadfast.greenstep.po.hbm.BbStrategyMapNodes)1 ObjectiveVO (com.netsteadfast.greenstep.vo.ObjectiveVO)1 PerspectiveVO (com.netsteadfast.greenstep.vo.PerspectiveVO)1 StrategyMapVO (com.netsteadfast.greenstep.vo.StrategyMapVO)1 HashMap (java.util.HashMap)1 ContextBase (org.apache.commons.chain.impl.ContextBase)1