📄 employeeactionform.java
字号:
package com.hr.actionform;import org.apache.struts.action.*;import javax.servlet.http.*;import com.hr.util.FillDataUtil;import com.hr.assistvo.EmployeeStr;import java.util.ArrayList;import com.hr.assistvo.UserType;import com.hr.assistvo.EmployeeType;public class EmployeeActionForm extends ActionForm { private java.util.List employees = new FillDataUtil(EmployeeStr.class); private String operation; private Long deleteUID = null; private java.util.List types = new ArrayList(); private java.util.List depts = new ArrayList(); public EmployeeActionForm() { initTypes(); operation = "display"; } public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { /**@todo: finish this method, this is just the skeleton.*/ return null; } public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { } public Long getDeleteUID() { return deleteUID; } public void setDeleteUID(Long deleteUID) { this.deleteUID = deleteUID; } public String getOperation() { return operation; } public void setOperation(String operation) { this.operation = operation; } public java.util.List getTypes() { return types; } public void setTypes(java.util.List types) { this.types = types; } public void initTypes() { Integer uids[] = {new Integer(1),new Integer(2), new Integer(3)}; String name[]={"初级职称","中级职称","高级职称"}; for(int i=0;i<3;i++) { EmployeeType type = new EmployeeType(); type.setTypeName(name[i]); type.setTypeUID(uids[i]); types.add(type); } } public java.util.List getEmployees() { return employees; } public void setEmployees(java.util.List employees) { this.employees = employees; } public java.util.List getDepts() { return depts; } public void setDepts(java.util.List depts) { this.depts = depts; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -