• 大小: 11.9MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-21
  • 语言: Java
  • 标签: eclipse  java  web  mysql  ssh  

资源简介

人力资源管理系统源码+SQL文件(javaweb+MySQL+tomcat),导入eclipse直接可用

资源截图

代码片段和文件信息

package com.wy.action;


import java.util.List;

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

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.wy.dao.objectDao;
import com.wy.form.CjForm;
import com.wy.form.TrainForm;

public class CjAction extends DispatchAction {
private objectDao objectDao;

public objectDao getobjectDao() {
return objectDao;
}

public void setobjectDao(objectDao objectDao) {
this.objectDao = objectDao;
}

// 奖惩察看操作
public ActionForward queryCj(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response) {
String information = “from CjForm order by id desc“;
if (request.getParameter(“type“) != null) {
String type = request.getParameter(“type“).trim();
information = “from CjForm where cj_type=“ + type
+ “ order by id desc“;

request.setAttribute(“type“ type);
}
System.out.println(“information:“+information);
List list = objectDao.getobjectList(information);
request.setAttribute(“list“ list);
return mapping.findForward(“queryCj“);
}

// 删除奖惩操作
public ActionForward deleteCj(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response) {
String id = request.getParameter(“id“);
if (id == null) {
CjForm cjForm = (CjForm) objectDao
.getobjectForm(“from CjForm where id=‘“ + id + “‘“);
this.objectDao.deleteobjectForm(cjForm);
}
return this.queryCj(mapping form request response);
}

// 添加奖惩操作
public ActionForward saveCj(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response) {
CjForm cjForm = (CjForm) form;
this.objectDao.insertobjectForm(cjForm);
return mapping.findForward(“operationCj“);
}

// 奖惩详细查询
public ActionForward queryOneCj(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response) {
String id = request.getParameter(“id“);
CjForm cjForm = (CjForm) objectDao
.getobjectForm(“from CjForm where id=‘“ + id + “‘“);
request.setAttribute(“cjForm“ cjForm);
return mapping.findForward(“queryOneCj“);
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-06-25 13:44  PersonManager\
     文件         644  2019-06-13 13:49  PersonManager\.classpath
     文件        1046  2019-06-13 13:49  PersonManager\.project
     目录           0  2019-06-25 13:44  PersonManager\.settings\
     文件         503  2019-06-13 13:49  PersonManager\.settings\.jsdtscope
     文件         395  2019-06-13 13:49  PersonManager\.settings\org.eclipse.jdt.core.prefs
     文件         469  2019-06-13 13:49  PersonManager\.settings\org.eclipse.wst.common.component
     文件         307  2019-06-13 13:49  PersonManager\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2019-06-13 13:49  PersonManager\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2019-06-13 13:49  PersonManager\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2019-06-25 13:44  PersonManager\WebContent\
     目录           0  2019-06-25 13:44  PersonManager\WebContent\meta-INF\
     文件          39  2019-06-13 13:49  PersonManager\WebContent\meta-INF\MANIFEST.MF
     目录           0  2019-06-25 13:44  PersonManager\WebContent\WEB-INF\
     文件        2891  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\applicationContext.xml
     文件       10763  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\c-1_0-rt.tld
     文件       11310  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\c-1_0.tld
     文件       15999  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\c.tld
     文件       11409  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\fmt-1_0-rt.tld
     文件       12580  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\fmt-1_0.tld
     文件       19595  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\fmt.tld
     文件        7298  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\fn.tld
     目录           0  2019-06-25 13:44  PersonManager\WebContent\WEB-INF\lib\
     文件      433164  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\antlr-2.7.5H3.jar
     文件      443432  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\antlr-2.7.6.jar
     文件        4467  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\aopalliance.jar
     文件     1599570  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\axis.jar
     文件      487360  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\c3p0-0.9.0.jar
     文件      324238  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\cglib-nodep-2.1_3.jar
     文件     1932480  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\classes12.jar
     文件      188671  2019-06-13 13:49  PersonManager\WebContent\WEB-INF\lib\commons-beanutils.jar
............此处省略173个文件信息

评论

共有 条评论