⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listsalaryaction.java

📁 l劳动力管理系统
💻 JAVA
字号:
package com.hr.action;

import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.hr.actionform.ListSalaryActionForm;
import com.hr.logic.ListLogic;
import com.hr.vo.Employee;

public class ListSalaryAction extends Action {
  public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
    /**@todo: complete the business logic here, this is just a skeleton.*/
    ListSalaryActionForm form = (ListSalaryActionForm) actionForm;
    ListLogic logic = new ListLogic();
    logic.setForm(form);
    HttpSession session = httpServletRequest.getSession(false);
    if(session!=null)
    {
      Employee  employee = (Employee)session.getAttribute("pass");
      logic.getSalarys(employee.getEmployeeUID());
      System.out.println("salarys.size======>" + form.getSalarys().size());
    }
    logic.closeDAO();
    return actionMapping.findForward("listsalary");
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -