apzl_leasing/src_tenwa/com/tenwa/message/MsgTempletInfoHandler.java
2018-06-03 22:26:41 +08:00

46 lines
1.4 KiB
Java

package com.tenwa.message;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.are.util.StringFunction;
import com.amarsoft.awe.dw.handler.impl.CommonHandler;
public class MsgTempletInfoHandler extends CommonHandler {
@Override
protected void initDisplayForAdd(BizObject bo) throws Exception {
super.initDisplayForAdd(bo);
String today = StringFunction.getTodayNow();
bo.setAttributeValue("INPUTTIME", today.split(" ")[0]);
bo.setAttributeValue("UPDATETIME", today.split(" ")[0]);
}
@Override
protected void initDisplayForEdit(BizObject bo) throws Exception {
// TODO Auto-generated method stub
super.initDisplayForEdit(bo);
String today = StringFunction.getTodayNow();
bo.setAttributeValue("UPDATETIME", today.split(" ")[0]);
}
@Override
protected void afterUpdate(JBOTransaction tx, BizObject bo)
throws Exception {
String today = StringFunction.getTodayNow();
bo.setAttributeValue("UPDATETIME", today.split(" ")[0]);
}
@Override
protected void beforeInsert(JBOTransaction tx, BizObject bo)
throws Exception {
String today = StringFunction.getTodayNow();
bo.setAttributeValue("UPDATETIME", today.split(" ")[0]);
}
@Override
protected void beforeUpdate(JBOTransaction tx, BizObject bo)
throws Exception {
String today = StringFunction.getTodayNow();
bo.setAttributeValue("UPDATETIME", today.split(" ")[0]);
}
}