软件工程专业大型软件项目实训报告模板Word文档格式.docx
《软件工程专业大型软件项目实训报告模板Word文档格式.docx》由会员分享,可在线阅读,更多相关《软件工程专业大型软件项目实训报告模板Word文档格式.docx(40页珍藏版)》请在冰豆网上搜索。
每当遇到程序出现异常,项目经理组织我们集体讨论并寻找问题所在,培养了我们的团队合作能力。
在每个月的月末,我们还会进行模拟企业面试中的笔试,通过笔试发现自己的缺陷及不足。
2.实训期间完成的实践项目
在长达3个多月的培训中,我们完成了多个项目,其中包括使用java基础语言及javaAWT控件编写的俄罗斯方块,使用socket编程完成的简化即时聊天系统,以及使用java企业级开发思想及MVC结构思想编写的员工表管理系统等等。
因为很多技术目前已经过时,在未来程序开发中不会被继续使用,所以在本报告中将详细介绍员工管理系统。
2.1需求分析
1、用户打开网页之后将显示目前已有员工的各项信息
2、用户可以进行添加员工操作,添加员工后需要直接显示新的员工信息表
3、用户可以进行员工删除操作,但是在修改之前需要进行确认
4、用户可以进行员工信息修改操作
2.2总体设计
1、在数据库中新建员工信息表
2、使用PhotoShop及css技术设计网页显示的样式
3、编写后台控制java程序,用于连接数据库和控制前端操作
4、编写jsp页面用于显示在用户不同的操作下,应该显示的页面
5、项目调试
2.3详细设计
1:
新建员工信息表
因为在本项目中使用的数据库为mysql数据库,所以在创建数据表时应注意变量类型与oracla数据库的区别。
另外必须处理数据库中出现的中文问题
建立员工信息表
createdatabaseservletempdefaultcharactersetutf8;
(这段代码用于设置数据库的字符集,字符集为utf-8,该字符集支持中文,如果不设置字符集数据库会默认采用ISO-8859-1字符集,但是该字符集不支持中文)
createtableemp_a(
idint(10)primarykeyauto_increment,
namevarchar(20),
salarydouble,
ageint
);
其中id为主键,且设置为自动增长,所以在执行插入操作时不用设置id的值,这样便于程序运行及员工表管理
为了便于程序调试,先向表中添加几条数据
Insertintoemp_a(name,salary,age)value(emp01,20000,20);
Insertintoemp_a(name,salary,age)value(emp02,20000,21);
Insertintoemp_a(name,salary,age)value(emp03,20000,22);
Insertintoemp_a(name,salary,age)value(emp04,20000,23);
2:
设计页面显示样式即美工操作
网页显示样式1:
css编写
body
{
margin:
0;
font-size:
62.5%;
font-family:
Verdana,Arial,Helvetica,sans-serif;
padding:
15px0;
background:
#eeeeee;
}
#wrap{
width:
820px;
0auto;
url(../img/bg.gif)topcenterrepeat-y#FFFFFF;
#top_content{
010px;
#topheader{
padding:
25px15px15px15px;
margin:
0auto0auto;
background:
url(../img/top_left.gif)topleftrepeat-x#85C329;
#rightheader{
float:
right;
375px;
height:
40px;
color:
#FFFFFF;
text-align:
#rightheaderp{
35px15px00;
#rightheaderpspan{
font-weight:
bold;
#rightheadera:
link,#rightheadera:
visited{
text-decoration:
underline;
#title{
2.5em;
#titlespan{
0.5em;
font-style:
italic;
#titlea:
link,#titlea:
none;
hover{
#E1F3C7;
#navigation{
#74A8F5;
border-top:
1pxsolid#ffffff;
25px;
clear:
both
#navigationul{
list-style:
1.1em;
#navigationulli{
display:
inline;
#navigationullia{
block;
left;
line-height:
016px;
border-right:
#navigationullia:
#5494F3;
#content{
015px;
url(../img/content_bg.gif)repeat-xlefttop#ffffff;
#666666;
#contentp#whereami{
20px015px0;
#whereamia:
link,#whereamia:
#73A822;
#contenth1,#contenth2,
#contenth3,#contenth4,#contenth5{
#contenth1{
"
TrebuchetMS"
Arial,Helvetica;
0015px0;
2em;
#contenth2{
1.5em;
#top_body,#content_body{
025px;
#footer{
url(../img/footer.gif)no-repeatcenterbottom;
010px13px10px;
#footerp{
#footerpa:
link,#footerpa:
#footer#footer_bg{
url(../img/footer_bg.gif)repeat-xleftbottom#85C329;
15px15px25px15px;
1pxsolid#7BB425;
#footer#design{
150px;
30px;
20px;
05px;
#footer#designa{
.table{
margin-bottom:
15px;
100%;
border-collapse:
collapse;
.table_headertd{
url(../img/tableheader-bg.gif)no-repeatlefttop;
5px10px;
rgb(70,122,167);
1pxsolid#CBD6DE;
border-bottom:
1pxsolid#ADBECB;
.table_headertda:
link,.table_headertda:
border:
.row1td,.row2td,.row_hovertd,.paging_rowtd{
.row1td{
#ffffff;
.row2td{
.row_hovertd{
#FBFACE;
#000000;
.hidden{
.little{
10px;
.clear{
both;
.img_left{
1px;
1pxsolid#cccccc;
010px10px0;
110px;
150px;
/*#contentulbasicstyleforunorderedlists
------------------------------------------------*/
#contentul{
1.8em;
list-style-type:
/*#contentpparagraphs
-----------------------------*/
#contentp{
1.2em;
/*#contentpalinksinparagraphs
------------------------------------*/
#contentpa:
link,#contentpa:
visited,
.tablea:
link,.tablea:
visited,
.linka{
hover,.tablea:
hover,.linka:
/*#contentul.green(73A822)
--------------------------------*/
#contentul.greenli{
00020px;
url(../img/bullet_green.gif)no-repeat1px3px;
#contentul.greenlia:
link,#contentul.greenlia:
/*#contentul.black(73A822)
#contentul.blackli{
url(../img/bullet_grey.gif)no-repeat1px3px;
#contentul.blacklia:
link,#contentul.blacklia:
#999999;
/*#contentol
#contentol{
00025px;
#contentolli{
#contentollia:
link,#contentollia:
/*#contentp.paging
---------------------------------*/
#contentp.paging{
padding:
5px;
border:
text-align:
center;
margin-bottom:
background:
/*.small_inputsmallertextininputs/combos
-----------------------------------------------*/
.small_input{
/*.form_tablestylefortableusedinforms
---------------------------------------------*/
.form_table{
.form_tablep{
.form_tabletd{
/*.checkbox_nomarginsclearallmarginsfromacheckbox
---------------------------------------------------------*/
.checkbox_nomargins{
/*margin:
0;
width:
13px;
height:
overflow:
hidden;
*/
/*.buttonsomebuttonsstyle-inspiredfromwordpress
------------------------------*/
input.button{
2px;
3pxdouble#999999;
border-left-color:
#ccc;
border-top-color:
url(../img/button.gif)repeat-xlefttop;
11px;
/*formstyleforforms
-------------------------*/
form{
/*input.inputgri-somestyleforinputs
--------------------------------------------*/
input.inputgri,select.inputgri,textarea.inputgri{
14px;
3px;
input.inputgri:
focus,select.inputgri:
focus,textarea.inputgri:
focus{
1pxsolid#686868;
/*.notice-messagestouser
.notice{
#CAEA99;
1pxsolid#70A522;
pa