




已阅读5页,还剩46页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
精品文档Web开发技术课程设计课题名称:企业职工工资在线管理信息系统的设计与实现学生姓名: 曹小丽 专业班级: 软件工程13201207 专业课程: web开发技术 指导老师: 陈斌全 2016年 3月 13日2欢迎下载。精品文档目 录第1章 系统设计目的11.1题目与要求11.2课程设计任务1第2章 系统功能模块设计22.1 职工模块22.2人事管理员模块2第3章 数据库设计33.1职工基本信息表worker.33.2岗位信息表单Job.33.3所有员工工资记录表Allwage.4第4章 各功能模块的程序设计及运行测试结果44.1职工功能模块.44.1.1职工的注册与登陆.44.1.2职工岗位工资信息查询.84.1.3职工留言板.94.2人事管理员功能模块.114.2.1职工工资信息添加、查询和更新.114.2.2职工个人工资信息的更新.154.2.3留言板管理.17第5章 课程设计体会205.1问题调试.205.2体会与感想.21主要Servlet代码附录.21主要JavaBeans代码附录.30参考文献464欢迎下载。第1章 系统设计目的1.1题目与要求Dreamweaver+JSP+SQL SERVER1.2课程设计任务1. 主要功能设计一个企业职工工资管理信息系统,该系统的用户分别是:职工和人事管理员。不同的用户拥有不同的权限,各自完成各自的管理功能,不同的用户看到不同的系统功能。用Sql server2000创建后台数据库,然后利用JSP技术编写程序实现对数据库的操作,按照要求完成所有的功能和模块。职工的主要功能模块包括:(1) 职工注册与登录(2) 职工岗位工资信息查询(3) 职工留言板人事管理员的主要功能模板包括:(1) 工资信息的查询、添加、更新(2) 职工个人工资信息的更新和维护(3) 留言板管理2. 主要数据库表单(1) 职工基本信息表单主要字段有:职工号、姓名、性别、出生日期、岗位编号、工作年限(2) 岗位信息表单主要字段有:岗位编号、岗位名称、岗位基本工资、岗位津贴、特殊津贴、月工资(岗位工资+岗位工资+岗位津贴+特殊津贴)、养老保险(月工资*8%)、医疗保险(月工资*6%)、失业保险(月工资*1%)48欢迎下载48欢迎下载48欢迎下载。第2章 系统功能模块设计职工工资岗位信息查询2.1 职工模块职工注册登录职工留言板注册全体职工工资信息查询和更新2.2人事管理员模块 职工个人工资信息查询和更新管理员登录留言板管理职工个人工资记录添加第3章 数据库设计3.1职工基本信息表worker3.2岗位信息表单Job3.3所有员工工资记录表Allwage第4章 各功能模块的程序设计及运行测试结果4.1职工功能模块4.1.1职工的注册与登陆程序设计代码:/登录企业职工工资在线管理信息系统 登录 职工 管理员 在这里注册?function tsubmit() var myForm=document.getElementById(form1); var userName=document.getElementById(user).value; var password=document.getElementById(password).value; var regPassWord = /a-zA-Z0-9+$/; if(userName.length8) alert(请填写正确的用户名!(最长8位); document.getElementById(userName).value=; document.getElementById(userName).focus(); else if(!regPassWord.test(password)|password.lenth16|password.length4) alert(请填写正确的用户名密码!(4-16位的数字或字母); document.getElementById(password).value=; document.getElementById(password).focus(); else /myForm.action=login.jsp; myForm.submit(); /注册 注册 我已阅读并同意隐私政策、服务条款 已有帐号,请登录 function checkForm() var b = true;var myForm=document.getElementById(signupForm); var userName=document.getElementById(user).value; var password=document.getElementById(password).value; var AgainPassword=document.getElementById(passwordAgain).value; var Name=document.getElementById(name).value; var regPassWord = /a-zA-Z0-9+$/; if(userName.length8|!userName) alert(用户名为空或用户名格式错误(最长8位); document.getElementById(userName).value=; document.getElementById(userName).focus(); b = false; else if(!regPassWord.test(password)|password.lenth16|password.length4) alert(密码为空或请用户密码格式错误(4-16位的数字或字母); document.getElementById(password).value=; document.getElementById(password).focus(); b= false; else if(password!=AgainPassword) alert(您两次输入的密码不一样,请重新输入!); document.getElementById(passwordAgain).value=; document.getElementById(passwordAgain).focus(); b = false; else if(!Name) alert(姓名不能為空!); b=false; if(b) alert(注册成功!); myForm.submit(); /ServletWebServlet(/Servlet2)public class Servlet2 extends HttpServlet private static final long serialVersionUID = 1L; /* * see HttpServlet#HttpServlet() */ public Servlet2() super(); / TODO Auto-generated constructor stub /* * see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException / TODO Auto-generated method stubrequest.setCharacterEncoding(UTF-8);response.setContentType(text/html;charset=utf-8);InsertInformation data=new InsertInformation();SelectInformation num=new SelectInformation();String user=request.getParameter(user);String password=request.getParameter(password);String passwordAgain=request.getParameter(passwordAgain);String name=request.getParameter(name);String tel=request.getParameter(tel);if(data.InsertData(num.Length(),user,password,passwordAgain,name,tel)=true)request.getRequestDispatcher(/login.jsp).forward(request, response);elserequest.getRequestDispatcher(RegisterFail.jsp).forward(request, response);/* * see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException / TODO Auto-generated method stubdoGet(request, response);4.1.2职工岗位工资信息查询职工岗位工资信息查询 岗位编号 岗位名称 岗位基本工资 岗位津贴 月工资 养老保险 医疗保险 失业保险 % String str=new String 100100; str=(String)request.getAttribute(str); for(int i=1;i=10;i+) out.print(); if(stri1=null) break; for(int j=1;j % out.print(); %function session()var name=;if(name=null)alert(您还没有登录,请登录!);window.location.href=login.jsp;function ons8()window.location.href=WorkMenu.jsp;function ons9()window.location.href=resServlet;4.1.3职工留言板留言板 您的留言回复:您提交的留言还没有得到回复function session()var name=;if(name=null)alert(您还没有登录,请登录!);window.location.href=login.jsp;function ons6()window.location.href=WorkMenu.jsp;function ons7()window.location.href=jobInformationServlet;4.2人事管理员功能模块4.2.1职工工资信息添加、查询和更新/添加 添加员工工资信息表 职工姓名 月份 岗位名称 会计 出纳 主任 组长 销售员 程序员 特殊津贴 function session()var name=;if(name=null)alert(您还没有登录,请登录!);window.location.href=login.jsp;function ons1()window.location.href=AdminMenu.jsp;/职工工资信息的查询 职工姓名 岗位名称 基本工资 特殊津贴 月工资 是否更新 % String str=new String 100100; str=(String)request.getAttribute(massage); for(int i=1;i input type=button value= onclick=onclick1() style=background-color:transparent/ input type=text id=zhiye value=style=background-color:transparent/ input type=text value=style=background-color:transparent/ input type=button value=是 onclick=onClicka(,)style=background-color:transparent/% out.print(); %/工资信息的更新 职工姓名 岗位名称 基本工资 特殊津贴 月工资 是否更新 % String str=new String 100100; str=(String)request.getAttribute(massage); for(int i=1;i input type=button value= onclick=onclick1() style=background-color:transparent/ input type=text id=zhiye value=style=background-color:transparent/ input type=text value=style=background-color:transparent/ input type=button value=是 onclick=onClicka(,)style=background-color:transparent/% out.print(); %function onClicka(workname,name,jintie,i)name = document.getElementById(zhiye+i).value;var s =updateWorkWageServlet?workname=+workname+&name=+name+&jintie=+jintie;window.location.href=s;function onclick1(name)var s =onclickSelectServlet?workname=+name;window.location.href=s;4.2.2职工个人工资信息的更新 月份 岗位名称 基本工资 岗位津贴 特殊津贴 工作年限 月工资 养老保险 医疗保险 失业保险 是否更新 % String str=new String 100100; str=(String)request.getAttribute(str); for(int i=1;i=10;i+) out.print(); if(stri1=null) break; float aa=Float.parseFloat(stri3)+Float.parseFloat(stri4)+Float.parseFloat(stri5); float bb=(float)Math.round(0.08*aa*100)/100); float cc=(float)Math.round(0.06*aa*100)/100); float dd=(float)Math.round(0.01*aa*100)/100); % input type=text value=style=background-color:transparent/ input type=text id=teshu value=style=background-color:transparent/ input type=button value=是 onclick=onclick2(,) style=background-color:transparent/ % out.print(); % function onclick2(teshu,month,i)teshu=document.getElementById(teshu+i).value;var s =updateSomebodyWageServlet?TeshuWage=+teshu+&yMonth=+month;window.location.href=s;function ons9()window.location.href=SelectWorkWageServlet;4.2.3留言板管理 员工留言管理 留言编号 姓名 留言内容 时间 回复 是否回复 是否删除 % String str=new String 100100; str=(String)request.getAttribute(massage); for(int i=1;i input id=rescontent type=text value=style=background-color:transparent/input type=button value=是 onclick=onClickRes(,) style=backg
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- (2025年标准)公司购买住房协议书
- 海洋智能传感器融合技术研究(融合智能)-洞察及研究
- (2025年标准)培训安全保密协议书
- (2025年标准)经济独立婚前协议书
- (2025年标准)种猪购销协议书
- (2025年标准)父与子协议书
- (2025年标准)游戏股权协议书
- (2025年标准)投资投资协议书
- (2025年标准)电子结算协议书
- (2025年标准)投资服装生意协议书
- 生产统计员考试试卷及答案
- 二衬台车行走安全专题报告
- 村级妇幼专干培训课件
- A-冷却水管道系统安装施工方案
- 派出所综合指挥室工作流程图
- 医疗领域中手工艺术的疗愈作用研究
- 农光互补项目建设可行性研究报告
- 供应商账户管理制度
- 八年级上册语文课内现代文阅读题
- GB/T 7573-2025纺织品水萃取液pH值的测定
- 2025安徽大学辅导员考试题库
评论
0/150
提交评论