码迷,mamicode.com
首页 > 其他好文 > 详细

edit界面初始化加默认值

时间:2016-10-31 21:45:16      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:err   bsp   默认值   extend   mic   package   pack   事件   dynamic   

功能名称:modelCreateAction

切入类型:after

事件名称:com.kingdee.bos.eventbus.event.model.ModelCreateEvent

 1 package com.kingdee.eas.re.sales.costadjust.handler;
 2 
 3 import java.util.Date;
 4 
 5 import com.kingdee.bos.BOSException;
 6 import com.kingdee.bos.eventbus.event.model.ModelCreateEvent;
 7 import com.kingdee.bos.webframework.dynamic.handler.model.WebModelCreateEventHandler;
 8 import com.kingdee.bos.webframework.exception.WafException;
 9 import com.kingdee.eas.fdc.sales.CostAdjustBillInfo;
10 import com.kingdee.eas.re.sales.web.utils.SalesContext;
11 /**
12  * 
13  * @author core_tuozq
14  * 初始化model
15  */
16 public class CostAdjustCreateEventHandler extends WebModelCreateEventHandler {
17     @Override
18     public void onModelCreate(ModelCreateEvent event) throws WafException,
19             BOSException {
20         // TODO Auto-generated method stub
21         CostAdjustBillInfo model = (CostAdjustBillInfo)event.getModel();
22         model.setPayinTime(new Date());
23         super.onModelCreate(event);
24     }
25 }

 

edit界面初始化加默认值

标签:err   bsp   默认值   extend   mic   package   pack   事件   dynamic   

原文地址:http://www.cnblogs.com/suruozhong/p/6017148.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!