📄 yearaction.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -