

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、Web開發(fā)技術(shù)課程設(shè)計(jì)課題名稱:企業(yè)職工工資在線管理信息系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)學(xué)生姓名: 曹小麗 專業(yè)班級: 軟件工程13201207 專業(yè)課程: web開發(fā)技術(shù) 指導(dǎo)老師: 陳斌全 2016年 3月 13日Web開發(fā)技術(shù)課程設(shè)計(jì)目 錄第1章 系統(tǒng)設(shè)計(jì)目的11.1題目與要求11.2課程設(shè)計(jì)任務(wù)1第2章 系統(tǒng)功能模塊設(shè)計(jì)22.1 職工模塊22.2人事管理員模塊2第3章 數(shù)據(jù)庫設(shè)計(jì)33.1職工基本信息表worker.33.2崗位信息表單Job.33.3所有員工工資記錄表Allwage.4第4章 各功能模塊的程序設(shè)計(jì)及運(yùn)行測試結(jié)果44.1職工功能模塊.44.1.1職工的注冊與登陸.44.1.2職工崗位工資
2、信息查詢.84.1.3職工留言板.94.2人事管理員功能模塊.114.2.1職工工資信息添加、查詢和更新.114.2.2職工個人工資信息的更新.154.2.3留言板管理.17第5章 課程設(shè)計(jì)體會205.1問題調(diào)試.205.2體會與感想.21主要Servlet代碼附錄.21主要JavaBeans代碼附錄.30參考文獻(xiàn)46第1章 系統(tǒng)設(shè)計(jì)目的1.1題目與要求Dreamweaver+JSP+SQL SERVER1.2課程設(shè)計(jì)任務(wù)1. 主要功能設(shè)計(jì)一個企業(yè)職工工資管理信息系統(tǒng),該系統(tǒng)的用戶分別是:職工和人事管理員。不同的用戶擁有不同的權(quán)限,各自完成各自的管理功能,不同的用戶看到不同的系統(tǒng)功能。用Sql
3、 server2000創(chuàng)建后臺數(shù)據(jù)庫,然后利用JSP技術(shù)編寫程序?qū)崿F(xiàn)對數(shù)據(jù)庫的操作,按照要求完成所有的功能和模塊。職工的主要功能模塊包括:(1) 職工注冊與登錄(2) 職工崗位工資信息查詢(3) 職工留言板人事管理員的主要功能模板包括:(1) 工資信息的查詢、添加、更新(2) 職工個人工資信息的更新和維護(hù)(3) 留言板管理2. 主要數(shù)據(jù)庫表單(1) 職工基本信息表單主要字段有:職工號、姓名、性別、出生日期、崗位編號、工作年限(2) 崗位信息表單主要字段有:崗位編號、崗位名稱、崗位基本工資、崗位津貼、特殊津貼、月工資(崗位工資+崗位工資+崗位津貼+特殊津貼)、養(yǎng)老保險(月工資*8%)、醫(yī)療保險(
4、月工資*6%)、失業(yè)保險(月工資*1%)44第2章 系統(tǒng)功能模塊設(shè)計(jì)職工工資崗位信息查詢2.1 職工模塊職工注冊登錄職工留言板注冊全體職工工資信息查詢和更新2.2人事管理員模塊 職工個人工資信息查詢和更新管理員登錄留言板管理職工個人工資記錄添加第3章 數(shù)據(jù)庫設(shè)計(jì)3.1職工基本信息表worker3.2崗位信息表單Job3.3所有員工工資記錄表Allwage第4章 各功能模塊的程序設(shè)計(jì)及運(yùn)行測試結(jié)果4.1職工功能模塊4.1.1職工的注冊與登陸程序設(shè)計(jì)代碼:/登錄<link rel="stylesheet" type="text/css" href=&q
5、uot;style.css"/></head><body onload="a()"><h1><p align="center"><big><big><big><big><big>企業(yè)職工工資在線管理信息系統(tǒng)</big></big></big></big></big></p></h1><p><br></p><d
6、iv class="login"><div class="login-top"> <h1>登錄</h1><form id="form1" name="form1" method="post" action="Servlet1" ><input type="text" name="user" value="user" id="user" o
7、nfocus="this.value = ''" onblur="if (this.value = '') this.value = 'User Id'"><input type="password" name="password" id="password"value="password" onfocus="this.value = ''" onblur="if (th
8、is.value = '') this.value = 'password'"> <div class="forgot"> <h1><br> <input type="submit" value="登陸" onclick="tsubmit()"> <input name="radio" type="radio" id="radio" value="
9、;radio1" checked="checked" />職工 <input type="radio" name="radio" id="radio" value="radio2" />管理員 </h1> </form> </div> </div><div class="login-bottom"><h3><a href="register.jsp"&
10、gt;在這里注冊?</a></h3></div></div></body><script language="javascript">function tsubmit() var myForm=document.getElementById("form1"); var userName=document.getElementById("user").value; var password=document.getElementById("password
11、").value; var regPassWord = /a-zA-Z0-9+$/; if(userName.length>8) alert("請?zhí)顚懻_的用戶名!(最長8位)"); document.getElementById("userName").value="" document.getElementById("userName").focus(); else if(!regPassWord.test(password)|password.lenth>16|password.leng
12、th<4) alert("請?zhí)顚懻_的用戶名密碼!(4-16位的數(shù)字或字母)"); document.getElementById("password").value="" document.getElementById("password").focus(); else /myForm.action="login.jsp" myForm.submit(); /注冊<body ><div class="dataEye"><div class
13、="loginbox registbox"> <div class="login-content reg-content"> <div class="loginbox-title"><h3> 注冊</h3></div><form id="signupForm" name="signupForm" method="post" action="Servlet2" ><div c
14、lass="login-error"></div><div class="row"><input type="text" name="user" placeholder="用戶名" class="input-text-user noPic input-click" id="user" required></div><div class="row"> <input t
15、ype="password" name="password" placeholder="密碼" class="input-text-password noPic input-click" id="password" required></div><div class="row"><input type="password" name="passwordAgain" placeholder="
16、確認(rèn)密碼" class="input-text-password noPic input-click" id="passwordAgain" required></div><div class="row"><input type="text" name="name" placeholder="姓名" class="input-text-user noPic input-click" id="name&
17、quot; required></div><div class="row"><input type="text" name="tel" placeholder="聯(lián)系電話" class="input-text-user noPic input-click" id="tel" required></div><div class="row tips"><input type="c
18、heckbox" id="checkBox" checked="checked"><label>我已閱讀并同意<a href="#" target="_blank">隱私政策、服務(wù)條款</a></label></div><div class="row btnArea"><input type="button" class="login-btn" value=&qu
19、ot;注冊" onclick="checkForm()"></div></form> </div><div class="go-regist">已有帳號,請<a href="login.jsp" class="link">登錄</a></div> </div></div></div></body><script type = 'text/javaScrip
20、t'>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")
21、.value; var Name=document.getElementById("name").value; var regPassWord = /a-zA-Z0-9+$/; if(userName.length>8|!userName) alert("用戶名為空或用戶名格式錯誤(最長8位)"); document.getElementById("userName").value="" document.getElementById("userName").focus(); b = fa
22、lse; else if(!regPassWord.test(password)|password.lenth>16|password.length<4) alert("密碼為空或請用戶密碼格式錯誤(4-16位的數(shù)字或字母)"); document.getElementById("password").value="" document.getElementById("password").focus(); b= false; else if(password!=AgainPassword) alert
23、("您兩次輸入的密碼不一樣,請重新輸入!"); document.getElementById("passwordAgain").value="" document.getElementById("passwordAgain").focus(); b = false; else if(!Name) alert("姓名不能為空!"); b=false; if(b) alert("注冊成功!"); myForm.submit(); </script></html
24、>/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, HttpS
25、ervletResponse 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");InsertInformati
26、on 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
27、");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
28、);/* * 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職工崗位工資信息查詢<body onload=&quo
29、t;session()"><center><big><big>職工崗位工資信息查詢</big></big></br><input type="button" name="button" id="button" value="返回主菜單" onclick="ons8()" style="background-color:transparent"/><input type=&
30、quot;button" name="button" id="button" value="查看留言板" onclick="ons9()" style="background-color:transparent"/></center><div align="center"> <table border="0"> <tr width="50px" bycolor="#00
31、ffff"> <td width="70px" height="50px">崗位編號</td> <td>崗位名稱</td> <td>崗位基本工資</td> <td>崗位津貼</td> <td>月工資</td> <td>養(yǎng)老保險</td> <td>醫(yī)療保險</td> <td>失業(yè)保險</td> </tr><% String str=n
32、ew String 100100; str=(String)request.getAttribute("str"); for(int i=1;i<=10;i+) out.print("<tr>"); if(stri1=null) break; for(int j=1;j<=8;j+)%> <td><%=strij%></td> <% out.print("</tr>"); %></table></div></body
33、><script language="javascript">function session()var name=<%=session.getAttribute("WorkName")%>if(name=null)alert("您還沒有登錄,請登錄!");window.location.href='login.jsp'function ons8()window.location.href='WorkMenu.jsp'function ons9()window.locati
34、on.href='resServlet'</script></html>4.1.3職工留言板<body class="a1" onload="session()" ><center><big><big><big>留言板</big></big></big><br><br><input type="button" name="button" id=&quo
35、t;button" value="返回主菜單" onclick="ons6()" style="background-color:transparent"/><input type="button" name="button" id="button" value="查看職工工資信息" onclick="ons7()" style="background-color:transparent"/&g
36、t; </center> <div class="layout"><form id="form2" name="form2" method="post" action="manageServlet"><textarea name="textarea" id="textarea" cols="35" rows="8" style="background-color:#
37、FFC"></textarea><input type="submit" name="button" id="button" value="提交" /></form></div><div class="layout2">您的留言回復(fù):<br><table ><tr><%if(request.getAttribute("massage")=null)%>&
38、lt;td>您提交的留言還沒有得到回復(fù)</td><% else %><td wih="200px" bgcolor="#FFFF99" ><%=request.getAttribute("massage")%></td></table></div></body><script language="javascript">function session()var name=<%=session.g
39、etAttribute("WorkName")%>if(name=null)alert("您還沒有登錄,請登錄!");window.location.href='login.jsp'function ons6()window.location.href='WorkMenu.jsp'function ons7()window.location.href='jobInformationServlet'</script>4.2人事管理員功能模塊4.2.1職工工資信息添加、查詢和更新/添加<
40、body text="#D6ffff" class="a1" onload="session()"><div align="center"> <h1>添加員工工資信息表 </h1><br><br></div><div align="center"> <form id="form1" name="form1" method="post" act
41、ion="InsertWageServlet"> <p>職工姓名 <input type="text" name="name" /><br> <p>月份 <input type="text" name="month"/> </p> <p>崗位名稱 <select name="jobNum" id="textfield4" > <option valu
42、e="001">會計(jì)</option> <option value="002">出納</option> <option value="003">主任</option> <option value="004">組長</option> <option value="005">銷售員</option> <option value="006">程序員</
43、option> </p></select> <p>特殊津貼 <input type="text" name="teshu" id="textfield5" /> <br> </p> <p> <input type="submit" name="button2" id="button2" value="添加" /> </p> </form&
44、gt; <input type="submit" name="button" id="button" value="返回主菜單" onclick="ons1()" /></div></body></body><script language="javascript">function session()var name=<%=session.getAttribute("AdminId")%&
45、gt;if(name=null)alert("您還沒有登錄,請登錄!");window.location.href='login.jsp'function ons1()window.location.href='AdminMenu.jsp'</script>/職工工資信息的查詢<div align="center"> <table border="0"> <tr bgcolor="#87cefa"width="100px"
46、height="80px"> <th height="40px">職工姓名</th> <th>崗位名稱</th> <th>基本工資</th> <th>特殊津貼</th> <th>月工資</th> <th>是否更新</th> </tr> <% String str=new String 100100; str=(String)request.getAttribute("massag
47、e"); for(int i=1;i<=20;i+) if(stri1=null) break;%> <tr> <td height="60px"><input type="button" value="<%=stri1%>" onclick="onclick1('<%=stri1%>')" style="background-color:transparent"/></td> <
48、td><input type="text" id="zhiye<%=i %>" value="<%=stri2%>"style="background-color:transparent"/></td> <td><%=stri3%></td> <td><input type="text" value="<%=stri4%>"style="backg
49、round-color:transparent"/></td> <td><%=stri5%></td><td id=""><input type="button" value="是" onclick="onClicka('<%=stri1.trim()%>','<%=stri2.trim()%>','<%=stri4%>',<%=1%>)"
50、style="background-color:transparent"/></td><% out.print("</tr>"); %></table></div></body>/工資信息的更新<table border="0"> <tr bgcolor="#87cefa"width="100px"height="80px"> <th height="40px
51、">職工姓名</th> <th>崗位名稱</th> <th>基本工資</th> <th>特殊津貼</th> <th>月工資</th> <th>是否更新</th> </tr> <% String str=new String 100100; str=(String)request.getAttribute("massage"); for(int i=1;i<=20;i+) if(stri1=null) br
52、eak;%> <tr> <td height="60px"><input type="button" value="<%=stri1%>" onclick="onclick1('<%=stri1%>')" style="background-color:transparent"/></td> <td><input type="text" id="zhiye
53、<%=i %>" value="<%=stri2%>"style="background-color:transparent"/></td> <td><%=stri3%></td> <td><input type="text" value="<%=stri4%>"style="background-color:transparent"/></td> <td
54、><%=stri5%></td><td id=""><input type="button" value="是" onclick="onClicka('<%=stri1.trim()%>','<%=stri2.trim()%>','<%=stri4%>',<%=1%>)"style="background-color:transparent"/>&
55、lt;/td><% out.print("</tr>"); %></table></div></body><script language="JavaScript" charset="utf-8">function onClicka(workname,name,jintie,i)name = document.getElementById("zhiye"+i).value;var s ='updateWorkWageServlet
56、?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職工個人工資信息的更新 <table border="0"> <tr bgcolor="#e6e6fa" > <t
57、h height="40px" width="70px">月份</th> <th>崗位名稱</th> <th>基本工資</th> <th>崗位津貼</th> <th>特殊津貼</th> <th>工作年限</th> <th>月工資</th> <th>養(yǎng)老保險</th> <th>醫(yī)療保險</th> <th>失業(yè)保險</th> &
58、lt;th>是否更新</th> </tr> <% String str=new String 100100; str=(String)request.getAttribute("str"); for(int i=1;i<=10;i+) out.print("<tr>"); if(stri1=null) break; float aa=Float.parseFloat(stri3)+Float.parseFloat(stri4)+Float.parseFloat(stri5); float bb=(fl
59、oat)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); %> <tr> <td><%=stri1%></td> <td><input type="text" value="<%=stri2%>"style="background-color:transparent&qu
60、ot;/></td> <td><%=stri3%></td> <td><%=stri4%></td> <td><input type="text" id="teshu<%=i %>" value="<%=stri5%>"style="background-color:transparent"/></td> <td><%=stri6%></
61、td> <td><%=aa%></td> <td><%=bb%></td> <td><%=cc%></td> <td><%=dd%></td> <td height="60px"><input type="button" value="是" onclick="onclick2('<%=stri5%>','<%=stri
62、1%>',<%=i %>)" style="background-color:transparent"/></td> <% out.print("</tr>"); %> </tr> </table></div></body><script language="JavaScript" charset="utf-8">function onclick2(teshu,month,i)t
63、eshu=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留言板管理<form action="" method="post">
64、;<center><table border="0" cellpadding="1" cellspacing="10" hspace="20"> <caption> 員工留言管理 </caption> <tr bgcolor="b0c4d1"> <th width="51" height="34" scope="col">留言編號</th> <th
65、 width="56" scope="col">姓名</th> <th width="279" scope="col">留言內(nèi)容</th> <th width="100" scope="col">時間</th> <th width="301" scope="col">回復(fù)</th> <th width="43" scope="col">是否回復(fù)</th> <th width="42" scope="col">是否刪除</th&g
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 高中地理 第三單元 產(chǎn)業(yè)活動與地理環(huán)境 第三節(jié) 旅游業(yè)與地理環(huán)境教學(xué)實(shí)錄 魯教版必修2
- 醫(yī)技三基三嚴(yán)考試題含答案
- 一年級品德下冊 我有兩件寶教學(xué)實(shí)錄2 科教版
- 安徽省繁昌縣八年級物理上冊 4.1光的反射教學(xué)實(shí)錄 (新版)滬科版
- 醫(yī)療救護(hù)知識培訓(xùn)課件
- 國際管理中的馬工學(xué)挑戰(zhàn)試題及答案
- 2024年馬工學(xué)在決策支持系統(tǒng)中的作用試題及答案
- 重慶現(xiàn)代風(fēng)-生態(tài)城居住片區(qū)建筑中標(biāo)方案
- 公司車輛管理制度范本04726
- 公司并購方案
- 房屋租賃合同 (三)
- 數(shù)學(xué)-山東省青島市2025年高三年級第一次適應(yīng)性檢測(青島一模)試題和答案
- 2025年石家莊市高三數(shù)學(xué)教學(xué)質(zhì)量檢測卷(一)附答案解析
- 8.4 同一直線上二力的合成 (課件)2024-2025學(xué)年人教版八年級物理下冊
- 統(tǒng)計(jì)法律知識培訓(xùn)課件
- 活動三《垃圾“流浪”記》(教學(xué)設(shè)計(jì))-2023-2024學(xué)年三年級下冊綜合實(shí)踐活動滬科黔科版
- 2024-2025學(xué)年上海六年級語文上學(xué)期期末復(fù)習(xí)分類匯編:現(xiàn)代文閱讀之說明文15篇(熱點(diǎn)預(yù)測)
- 杭州市2025年官方拆遷補(bǔ)償協(xié)議
- 2025年2月廣東省深圳市羅湖區(qū)聯(lián)考初三年級質(zhì)量檢測英語試卷(含答案)
- 政治-廣西壯族自治區(qū)考閱評·2025屆(年)2月高三畢業(yè)班聯(lián)合調(diào)研測試試題和答案
- 2025年河南應(yīng)用技術(shù)職業(yè)學(xué)院單招職業(yè)技能測試題庫參考答案
評論
0/150
提交評論