• 大小: 13.08MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-15
  • 语言: Java
  • 标签: ssh框架的  

资源简介

一份完整的毕业设计代码。包含数据库文件。开发语言为javaweb,基于ssh框架的系统

资源截图

代码片段和文件信息

package com.whvcse.rk07hw.action;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.whvcse.rk07hw.model.Equipment;
import com.whvcse.rk07hw.model.User;
import com.whvcse.rk07hw.service.IEquipmentManager;
import com.whvcse.rk07hw.utils.PageModel;

public class EquipmentAction {

private IEquipmentManager equipmentManager;

private int pageNo;

public int getPageNo() {
return pageNo;
}

public void setPageNo(int pageNo) {
this.pageNo = pageNo;
}





public IEquipmentManager getEquipmentManager() {
return equipmentManager;
}

@Resource
public void setEquipmentManager(IEquipmentManager equipmentManager) {
this.equipmentManager = equipmentManager;
}

public String findAllEquipment(){
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();

int offset=(pageNo-1)*10+1;

int length=pageNo*10;

List eList=equipmentManager.findAllEquipment(offsetlength);

int record=equipmentManager.findEquipmentRecord();

    PageModel pageModel=new PageModel();     
    pageModel.setPageNo(pageNo);
//pageModel.setList(list);
pageModel.setTotalRecords(record);


request.setAttribute(“pageModel“ pageModel);

request.setAttribute(“equipmentList“ eList);

return “success“;
}

public String findAllEquipmentByDep(){
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();

User user=(User) request.getSession().getAttribute(“user“);

List eList=equipmentManager.findAllEquipmentByDep(user);

request.setAttribute(“equipmentList“ eList);

return “success“;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6534  2013-04-26 16:04  设备管理系统\equipment.sql

     文件       2574  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.classpath

     文件        319  2013-05-03 14:03  设备管理系统\equipmentSystem\EquipmentSystem\.mymetadata

     文件       1421  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.project

     文件        406  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.settings\.jsdtscope

     文件       1040  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.settings\com.genuitec.eclipse.j2eedt.core.prefs

     文件        112  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.settings\org.eclipse.core.resources.prefs

     文件        330  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.settings\org.eclipse.jdt.core.prefs

     文件         49  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       4330  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\beans.xml

     文件       1964  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\action\EquipmentAction.java

     文件       6122  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\action\LogAction.java

     文件       1668  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\action\LoginAction.java

     文件       5589  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\action\UserAction.java

     文件        226  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\IDepDAO.java

     文件        663  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\IEquipmentDAO.java

     文件        925  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\ILogDAO.java

     文件       1062  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\impl\DepDAOImpl.java

     文件       2365  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\impl\EquipmentDAOImpl.java

     文件       3692  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\impl\LogDAOImpl.java

     文件       4674  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\impl\UserDAOImpl.java

     文件        933  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\dao\IUserDAO.java

     文件       2445  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\model\Dep.java

     文件       2879  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\model\Equipment.java

     文件       2639  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\model\Log.java

     文件       3387  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\model\User.java

     文件       2959  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\model\Userinfo.java

     文件        430  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\service\IEquipmentManager.java

     文件        810  2013-04-26 16:04  设备管理系统\equipmentSystem\EquipmentSystem\src\com\whvcse\rk07hw\service\ILogManager.java

............此处省略234个文件信息

评论

共有 条评论