• 大小: 5.13MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-08-15
  • 语言: Java
  • 标签: JSP  

资源简介

员工绩效考核管理系统jsp+javabean的实现,里面有录制的操作视频,感兴趣的可以一块学习下。

资源截图

代码片段和文件信息

package com.action;

import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.dao.DB;
import com.orm.Yuangong;

public class yuangong_servlet extends HttpServlet

public void service(HttpServletRequest reqHttpServletResponse res)throws ServletException IOException 
{
String type=req.getParameter(“type“);

if(type.endsWith(“yuangongAdd“))
{
yuangongAdd(req res);
}
if(type.endsWith(“yuangongMana“))
{
yuangongMana(req res);
}
if(type.endsWith(“yuangongDel“))
{
yuangongDel(req res);
}
if(type.endsWith(“yuangongEdit“))
{
yuangongEdit(req res);
}
if(type.endsWith(“yuangongSearch“))
{
yuangongSearch(req res);
}
if(type.endsWith(“yuangongSearch_bianhao“))
{
yuangongSearch_bianhao(req res);
}
if(type.endsWith(“yuangongQuanxian“))
{
yuangongQuanxian(req res);
}
}




public void yuangongAdd(HttpServletRequest reqHttpServletResponse res)
{
String bianhao=req.getParameter(“bianhao“);
String name=req.getParameter(“name“);
String sex=req.getParameter(“sex“);
String age=req.getParameter(“age“);
String tel=req.getParameter(“tel“);
String address=req.getParameter(“address“);
String zhiwei=req.getParameter(“zhiwei“);
String card=req.getParameter(“card“);
int ruzhinianfei=Integer.parseInt(req.getParameter(“ruzhinianfei“));

String sql=“insert into t_yuangong values(?????????????)“;
object[] params={bianhaonamesexageteladdresszhiweicardruzhinianfei0“““““no“};
DB mydb=new DB();
mydb.doPstm(sql params);
mydb.closed();

req.setAttribute(“message“ “操作成功“);
req.setAttribute(“path“ “yuangong?type=yuangongMana“);

        String targetURL = “/common/success.jsp“;
dispatch(targetURL req res);
}
public void yuangongDel(HttpServletRequest reqHttpServletResponse res)
{
int id=Integer.parseInt(req.getParameter(“id“));

String sql=“update t_yuangong set del=? where id=?“;
object[] params={“yes“id};
DB mydb=new DB();
mydb.doPstm(sql params);
mydb.closed();

req.setAttribute(“message“ “操作成功“);
req.setAttribute(“path“ “yuangong?type=yuangongMana“);

        String targetURL = “/common/success.jsp“;
dispatch(targetURL req res);
}
public void yuangongMana(HttpServletRequest reqHttpServletResponse res) throws ServletException IOException
{
List yuangongList=new ArrayList();
String sql=“select * from t_yuangong where del=‘no‘“;
object[] params={};
DB mydb=new DB();
try
{
mydb.doPstm(sql params);
ResultSet rs=mydb.g

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-08-13 18:33  276JSP员工绩效考核管理系统\
     文件     4255232  2012-03-03 17:36  276JSP员工绩效考核管理系统\JSP员工绩效考核管理系统录像.avi
     文件     1048576  2013-08-13 18:58  276JSP员工绩效考核管理系统\db_ygjx_Data.MDF
     文件     1048576  2013-08-13 18:58  276JSP员工绩效考核管理系统\db_ygjx_Log.LDF
     目录           0  2013-08-13 17:55  276JSP员工绩效考核管理系统\ygjx\
     文件        1416  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\.classpath
     目录           0  2013-10-20 17:03  276JSP员工绩效考核管理系统\ygjx\.myeclipse\
     文件         285  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\.mymetadata
     文件        1222  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\.project
     目录           0  2013-09-11 15:05  276JSP员工绩效考核管理系统\ygjx\WebRoot\
     目录           0  2013-08-13 17:55  276JSP员工绩效考核管理系统\ygjx\WebRoot\meta-INF\
     文件          39  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2013-08-13 17:55  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\
     文件        1389  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\My97DatePicker.htm
     文件        8367  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\WdatePicker.js
     文件       20471  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\calendar.js
     文件         223  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\config.js
     目录           0  2013-08-13 17:55  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\lang\
     文件         644  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\lang\en.js
     文件        1089  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\lang\zh-cn.js
     文件        1088  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\lang\zh-tw.js
     目录           0  2013-08-13 17:55  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\
     文件         158  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\WdatePicker.css
     文件        1043  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\datePicker.gif
     目录           0  2013-08-13 17:55  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\default\
     文件        3726  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\default\datepicker.css
     文件        1578  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\default\img.gif
     目录           0  2013-08-13 17:55  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\whyGreen\
     文件         307  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\whyGreen\bg.jpg
     文件        3933  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\whyGreen\datepicker.css
     文件        1679  2012-03-03 17:13  276JSP员工绩效考核管理系统\ygjx\WebRoot\My97DatePicker\skin\whyGreen\img.gif
............此处省略852个文件信息

评论

共有 条评论