edit界面初始化加默认值
Posted suruozhong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了edit界面初始化加默认值相关的知识,希望对你有一定的参考价值。
功能名称: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界面初始化加默认值的主要内容,如果未能解决你的问题,请参考以下文章
delphi 界面中点击按钮创建的窗体为啥在FormCreate中初始化代码?