yearaction.java
来自「使用jbpm实现的一个工作流例子」· Java 代码 · 共 62 行
JAVA
62 行
package aero.test.yearEvaluation.web;
import java.util.ArrayList;
import java.util.Collection;
import aero.framework.springbeanfactory.SpringBF;
import aero.test.yearEvaluation.business.ebi.DraftEbi;
import aero.test.yearEvaluation.vo.DraftModel;
import aero.test.yearEvaluation.web.vo.DraftWebModel;
import com.opensymphony.xwork2.ActionSupport;
public class YearAction extends ActionSupport{
public DraftModel dm = new DraftModel();
public DraftWebModel dwm = new DraftWebModel();
public String execute(){
String s = dwm.getSubmitFlag();
if(s !=null)
{
if(s.equals("toSelectDep"))
{
return toSelectDep();
}
else if(s.equals("toDepAuditList"))
{
return setCol(s);
}
}
return "";
}
private String setCol(String flag)
{
Collection<DraftModel> col = new ArrayList<DraftModel>();
if(flag !=null && flag.equals("toDepAuditList"))
{
col = getDraftEbi().showDraftList(flag,0,5);
dwm.setColForList(col);
return "toDepAuditList";
}
return "";
}
private DraftEbi getDraftEbi()
{
return (DraftEbi)SpringBF.getSpringBF("",null).getBean("draftEbi");
}
private String toSelectDep()
{
return "toSelectDep";
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?