|
|
发表于 2011/11/30 15:23:40
|
显示全部楼层
package ***.app.workticket;
import java.rmi.RemoteException;
import java.util.Date;
import psdi.common.action.ActionCustomClass;
import psdi.mbo.MboRemote;
import psdi.security.UserInfo;
import psdi.util.MXException;
public class WorkticketSendbyAction
implements ActionCustomClass
{
public WorkticketSendbyAction()
{
}
public void applyCustomAction(MboRemote mbo, Object aobj[])
throws MXException, RemoteException
{
String status = mbo.getString("STATUS");
if (status.equals("已一次签发"))
{
mbo.setValue("STATUS", "已签发", 2L);
mbo.setValue("SENDBY", mbo.getUserInfo().getDisplayName(), 2L);
mbo.setValue("SIGNTIME", new Date(), 2L);
} else
if (status.equals("待签发") || status.equals("已批准"))
{
mbo.setValue("STATUS", "已签发", 2L);
mbo.setValue("SENDBY", mbo.getUserInfo().getDisplayName(), 2L);
mbo.setValue("SIGNTIME", new Date(), 2L);
}
}
}
|
|