erprationcontroller.java

来自「anewssystem新闻发布系统集成使用了spring hibernate f」· Java 代码 · 共 55 行

JAVA
55
字号
package anni.aerp.web;

import anni.aerp.domain.ErpRation;

import anni.aerp.manager.ErpRationManager;

import anni.core.grid.LongGridController;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * @author Lingo.
 * @since 2007年10月25日 上午 00时06分58秒406
 */
public class ErpRationController extends LongGridController<ErpRation, ErpRationManager> {
    /** * logger. */
    private static Log logger = LogFactory.getLog(ErpRationController.class);

    /** * constructor. */
    public ErpRationController() {
    }

    /** * index. */
    public void index() {
        logger.info("start");
        mv.setViewName("aerp/erpration/index");
    }

    /** * @throws Exception for json. */
    /*
        public void save() throws Exception {
            logger.info(params());
            String data = getStrParam("data", "");
            JSONObject jsonObject = JSONObject.fromObject(data);
            long productId = jsonObject.getLong("productId");
            long materialId = jsonObject.getLong("materialId");
            ErpProduct erpProduct = erpProductManager.get(productId);
            ErpMaterial erpMaterial = erpMaterialManager.get(materialId);
            ErpRation entity = bindObject();
            entity.setErpProduct(erpProduct);
            entity.setErpMaterial(erpMaterial);
            getEntityDao().save(entity);
            response.getWriter().print("{success:true}");
        }
    */

    /** * @return excludes. */
    @Override
    public String[] getExcludes() {
        return new String[] {"hibernateLazyInitializer", "erpRations"};
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?