荟聚奇文、博采众长、见贤思齐
当前位置:公文素材库 > 计划总结 > 工作总结 > 项目开发总结报告(模板)

项目开发总结报告(模板)

网站:公文素材库 | 时间:2019-05-28 18:10:26 | 移动端:项目开发总结报告(模板)

项目开发总结报告(模板)

十、项目开发总结报告

项目开发总结报告

1.引言...........................................................................................................................1

1.1编写目的............................................................................................................11.2项目背景............................................................................................................11.3定义...................................................................................................................11.4参考资料............................................................................................................22.开发结果....................................................................................................................2

2.1产品...................................................................................................................22.2主要功能及性能..................................................................................................22.3所用工时............................................................................................................22.4所用机时............................................................................................................22.5进度...................................................................................................................22.6费用...................................................................................................................33.评价...........................................................................................................................3

3.1生产率评价.........................................................................................................33.2技术方案评价.....................................................................................................33.3产品质量评价.....................................................................................................34.经验与教训.................................................................................................................3

1.引言

1.1编写目的

【阐明编写总结报告的目的,指明读者对象。】

1.2项目背景

【说明项目来源、委托单位、开发单位及主管部门。】

1.3定义

【列出报告用到的专门术语的定义和缩写词的原文。】

十、项目开发总结报告

1.4参考资料

【列出有关资料的作者、标题、编号、发表日期、出版单位或资料来源,可包括:a.项目经核准的计划任务书、合同或上级机关的批文;b.项目开发计划;c.需求规格说明书;d.概要设计说明书;e.详细设计说明书;f.用户操作手册;g.测试计划;

h.测试分析报告;

i.本报告引用的其他资料、采用的开发标准或开发规范。】

2.开发结果

2.1产品

【可包括:

a.列出各部分的程序名称、源程序行数(包括注释行)或目标程序字节数及程序总计数量、

存储形式;b.产品文档名称等。】

2.2主要功能及性能2.3所用工时

【按人员的不同层次分别计时。】

2.4所用机时

【按所用计算机机型分别计时。】

2.5进度

【给出计划进度与实际进度的对比。】

十、项目开发总结报告

2.6费用

3.评价

3.1生产率评价

【如平均每人每月生产的源程序行数、文档的字数等。】

3.2技术方案评价3.3产品质量评价

4.经验与教训

扩展阅读:软件项目开发总结报告模版

武汉理工大学《软件开发工具》论文报告

火车票系统的开发

1引言

随着人们生活水平和经济水平的提高,网络科技的全球化的发展,出游和出差的频率越来越多。这大大的激发了交通水平的发展。其中,火车这种又方便有便宜的交通工具作为人们的首选,火车站的客运列车增加,客运量也随之增加。原有的售票的方式已经不再能满足旅客的需求了。为了方便旅客售票系统不仅仅只能售票也能够了解列车的各种信息。这样才能成为现在网络社会的真的适应者。

2需求分析

该售票系统是融合了火车票销售、退票、列车管理、车票管理、售票员管理、列车管理信息,以及售票信息查询为一体的综合系统。该系统主要编写的功能是列车和售票信息的查询及售票功能。

2.1用户

该系统主要有两类用户:管理员和售票员。管理员主要工作有车次管理,车票管理和售票员管理。对于每项功能都有添加,删除和修改的功能。售票的主要工作是售票和退票。

2.2主要功能

该系统从功能方面可以分为四个方面:登录。不管你是管理员还是售票员必须登录以后才可以进行系统允许的操作。当然要登录的管理员和售票员都必须是再数据库中已经发布的。基本设置:该模块主要是修改售票员的相关信息,修改列车的相关信息和修改车票的相关信息。这一块的功能只有管理员才可以操作。其他的售票员是不可以对他进行操作的。售票和退票:这部分工作主要是售票员来操作的。售票员根据买票人员提出的要求进行查询。查询的方式有两种:一是根据车次查询;一是根据目的地来查询。退票主要是将已经出售的车票在列车开出之前再一次的返回到数据库中,并继续出售。

列车和车票查询;当需要查询列车信息或者是车票信息是所做的操作。

2.3基本流程

武汉理工大学《软件开发工具》论文报告

3开发过程

3.1内容

该程序包括三个部分数据库的设计、通用模块的实现、各个模块的实现。

3.1.1数据库的设计:

将本系统所需的所有的数据都存储到数据库中。需要在数据库中管理员表、

售票员表、列车信息表和车票信息表。如图所示:

武汉理工大学《软件开发工具》论文报告

管理员表:

售票员表:

列车信息表:

武汉理工大学《软件开发工具》论文报告

车票信息表:

3.1.2通用模块的实现:

通用模块为了减少代码的重复。在该系统中,对经常使用的操作进行封装,如将多次需要调用的数据库和操作数库的增、删、改和查等操作进行封装。使代码有很好的重用性,即使出现错误也很容易调试。如本程序中的Conn.java

importjava.sql.*;publicclassConn{

privatestaticConnectioncon;

privatestaticfinalStringDRIVER="com.mysql.jdbc.Driver";

privatestaticfinalStringURL="jdbc:mysql://localhost:3306/newdatabase";privatestaticfinalStringNAME="root";

privatestaticfinalStringPASSWORD="021702190804";static{}

publicstaticConnectiongetConnection(){}

publicstaticvoidcloseCon(Connectioncon){

try{

if(con!=null)

con.close();

try{

con=DriverManager.getConnection(URL,NAME,PASSWORD);}catch(SQLExceptione){}

returncon;

e.printStackTrace();try{}

Class.forName(DRIVER);e.printStackTrace();

}catch(ClassNotFoundExceptione){

}catch(SQLExceptione){

武汉理工大学《软件开发工具》论文报告

}}

publicstaticvoidclosePt(PreparedStatementpt){}

publicstaticvoidcloseRs(ResultSetrs){}

try{}

if(rs!=null)

rs.close();

try{}

if(pt!=null)

pt.close();

}

e.printStackTrace();

}catch(Exceptione){

e.printStackTrace();

}catch(Exceptione){

e.printStackTrace();

用户登录界面的设计、主界面的设计、基本设置模块、销售及退票模块和列车及车票查询模块。

用户登录模块:该部分是通过设计login.java来实现的。这部分代码的作用是用户首先选择自己的登录的是管理员还是售票员,然后输入账号和密码。单击登录,用户先判断用户登录的类型,然后给sql变量赋SQL语句值,系统调用DAO.java类的login()传入sql变量。.Login代码是:

importorg.eclipse.swt.SWT;importorg.eclipse.swt.events.*;importorg.eclipse.swt.graphics.Image;importorg.eclipse.swt.layout.*;importorg.eclipse.swt.widgets.*;

importcom.huizhi.dao.DAO;publicclassLogin{

privateTextnameText;privateTextpassText;privateCombocombo;privateStringtype;

privateDisplaydisplay=newDisplay();privateShellshell=newShell(display);publicLogin(){

FormLayoutlayout=newFormLayout();

武汉理工大学《软件开发工具》论文报告

layout.marginHeight=40;

layout.marginWidth=40;shell.setLayout(layout);shell.setText("login");

Imageimage=newImage(display,"2.jpg");shell.setBackgroundImage(image);setUIControl();shell.pack();shell.open();

while(!shell.isDisposed()){if(!display.readAndDispatch())display.sleep();}

display.dispose();}

privatevoidsetUIControl(){

Labelusername=newLabel(shell,SWT.NONE);username.setText("username");

nameText=newText(shell,SWT.SINGLE|SWT.BORDER);

Labelpassword=newLabel(shell,SWT.NONE);

password.setText("password");

passText=newText(shell,SWT.SINGLE|SWT.BORDER|SWT.PASSWORD);//passText.setEchoChar("*");

Labelselect=newLabel(shell,SWT.NONE);select.setText("select");

Buttonsubmit=newButton(shell,SWT.PUSH);submit.setText("login");

submit.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){

type=combo.getText();

Stringname=nameText.getText();Stringpass=passText.getText();Stringsql=null;booleanflag=false;

MessageBoxbox=newMessageBox(shell,SWT.OK);if("".equals(type)||"".equals(name)||"".equals(pass)){}

box.setMessage("pleaseinputalltheinformation");box.open();return;

武汉理工大学《软件开发工具》论文报告

DAOdao=newDAO();

if("users".equals(type)){sql="select*fromuserswhereusername=""+name+""andpassword=""+pass+""";}elseif("admin".equals(type)){

sql="select*fromadminwhereusername=""+name+""and

password=""+pass+""";

}

flag=dao.login(sql);if(flag){

shell.dispose();

newMain(type);}else{}

box.setMessage("wrongnameorpassword");box.open();

}});

Buttonreset=newButton(shell,SWT.PUSH);reset.setText("cancel");

Stringvalue[]={"users","admin"};

combo=newCombo(shell,SWT.DROP_DOWN);combo.setItems(value);

FormDatadata=newFormData();data.top=newFormAttachment(30,0);username.setLayoutData(data);

data=newFormData();

data.top=newFormAttachment(username,0,SWT.CENTER);data.left=newFormAttachment(username,10,SWT.RIGHT);nameText.setLayoutData(data);

data=newFormData();

data.top=newFormAttachment(select,0,SWT.CENTER);data.left=newFormAttachment(select,10,SWT.RIGHT);combo.setLayoutData(data);

data=newFormData();

data.top=newFormAttachment(username,10,SWT.BOTTOM);password.setLayoutData(data);

武汉理工大学《软件开发工具》论文报告

data=newFormData();

data.top=newFormAttachment(password,0,SWT.CENTER);data.left=newFormAttachment(nameText,0,SWT.LEFT);passText.setLayoutData(data);

data=newFormData();

data.top=newFormAttachment(password,10,SWT.BOTTOM);submit.setLayoutData(data);

data=newFormData();

data.top=newFormAttachment(submit,0,SWT.CENTER);data.left=newFormAttachment(submit,20,SWT.RIGHT);reset.setLayoutData(data);}

publicstaticvoidmain(String[]args){newLogin();

}}

DAO.java的login()代码:

publicbooleanlogin(Stringsql){booleanflag=false;con=Conn.getConnection();try{

pt=con.prepareStatement(sql);rs=pt.executeQuery();if(rs.next()){flag=true;}

}catch(SQLExceptione){e.printStackTrace();}finally{Conn.closeRs(rs);}

Conn.closePt(pt);Conn.closeCon(con);

returnflag;}图示为;

武汉理工大学《软件开发工具》论文报告

实现主界面:

importorg.eclipse.swt.*;

importorg.eclipse.swt.widgets.*;importorg.eclipse.swt.layout.*;importorg.eclipse.swt.events.*;

publicclassMain{

privateStringtype;

Displaydisplay=Display.getCurrent();

Shellshell=newShell(display);publicMain(Stringtype){this.type=type;shell.setText("Trainticketingsystem");

shell.setLayout(newFillLayout());

Menumenu=newMenu(shell,SWT.BAR);//第一个菜单

MenuItembasic=newMenuItem(menu,SWT.CASCADE);basic.setText("BasicSettings");if("users".equals(type)){}

basic.setEnabled(false);

Menufilemenu=newMenu(shell,SWT.DROP_DOWN);MenuItemtrain=newMenuItem(filemenu,SWT.PUSH);train.setText("TrainsManagement");

train.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){

}

newTrainManage();

});

MenuItemticket=newMenuItem(filemenu,SWT.PUSH);ticket.setText("TicketsManagement");

武汉理工大学《软件开发工具》论文报告

ticket.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){newTicketManage();}});

MenuItemusers=newMenuItem(filemenu,SWT.PUSH);users.setText("UsersManagement");

users.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){

newUsersManage();

}});

MenuItemexit=newMenuItem(filemenu,SWT.PUSH);exit.setText("quit");

basic.setMenu(filemenu);

exit.addSelectionListener(newSelectionAdapter(){

}

publicvoidwidgetSelected(SelectionEvente){display.dispose();

});

//第二个菜单

MenuItemmarket=newMenuItem(menu,SWT.CASCADE);market.setText("SalesandRefunds");

MenueditMenu=newMenu(shell,SWT.DROP_DOWN);

MenuItemmarketItem=newMenuItem(editMenu,SWT.PUSH);marketItem.setText("SalesTickets");

marketItem.addSelectionListener(newSelectionAdapter(){

publicvoidwidgetSelected(SelectionEvente){newXiaosTicket();}

});

MenuItemrefundItem=newMenuItem(editMenu,SWT.PUSH);refundItem.setText("RefundsTickets");market.setMenu(editMenu);

refundItem.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){

newTuiTicket();

}});

//第三个菜单

MenuItemfind=newMenuItem(menu,SWT.CASCADE);find.setText("TrainsandTicketsquery");

MenutaiMenu=newMenu(shell,SWT.DROP_DOWN);MenuItemtrainFind=newMenuItem(taiMenu,SWT.PUSH);

武汉理工大学《软件开发工具》论文报告

trainFind.setText("Trainsquery");

trainFind.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){newFindTrain();}});

MenuItemticketFind=newMenuItem(taiMenu,SWT.PUSH);ticketFind.setText("Ticketquery");find.setMenu(taiMenu);

ticketFind.addSelectionListener(newSelectionAdapter(){

publicvoidwidgetSelected(SelectionEvente){newFindTicket();

}});

shell.setMenuBar(menu);shell.setSize(500,400);

shell.open();

while(!shell.isDisposed()){if(!display.readAndDispatch())

display.sleep();

}

display.dispose();

}}

图示为:

基本设置模块包括车次管理,车票管理和售票员管理。

车次管理主要是是对于列车的增加,删除和修改等操作。其中包括它的相关的信息等。它是由TrainManagement.java.代码如下:importjava.util.List;

武汉理工大学《软件开发工具》论文报告

importorg.eclipse.swt.SWT;

importorg.eclipse.swt.events.*;importorg.eclipse.swt.layout.*;importorg.eclipse.swt.widgets.*;

importcom.huizhi.dao.DAO;importcom.huizhi.vo.Train;

publicclassTrainManage{

Displaydisplay=Display.getCurrent();Shelltmshell=newShell(display);

finalTabletable=newTable(tmshell,SWT.SINGLE|SWT.H_SCROLL|SWT.V_SCROLL|SWT.H_SCROLL|SWT.BORDER|SWT.FULL_SELECTION);TrainManagetm=this;

publicTrainManage(){

RowLayoutrowLayout=newRowLayout();rowLayout.pack=true;

rowLayout.wrap=true;

rowLayout.justify=false;

rowLayout.marginTop=20;

tmshell.setLayout(rowLayout);

finalTableColumncolumn1=newTableColumn(table,SWT.LEFT);column1.setText("TrainID");

column1.setWidth(80);

finalTableColumncolumn2=newTableColumn(table,SWT.LEFT);column2.setText("TrainNum");column2.setWidth(80);

finalTableColumncolumn3=newTableColumn(table,SWT.LEFT);column3.setText("TrainType");column3.setWidth(80);

finalTableColumncolumn4=newTableColumn(table,SWT.LEFT);column4.setText("Starting");

column4.setWidth(80);

finalTableColumncolumn5=newTableColumn(table,SWT.LEFT);column5.setText("startingTime");

column5.setWidth(80);

finalTableColumncolumn6=newTableColumn(table,SWT.LEFT);column6.setText("terminal");column6.setWidth(80);

finalTableColumncolumn7=newTableColumn(table,SWT.LEFT);column7.setText("terminalTime");column7.setWidth(80);

武汉理工大学《软件开发工具》论文报告

finalTableColumncolumn8=newTableColumn(table,SWT.LEFT);column8.setText("iskongtiao");column8.setWidth(80);

finalTableColumncolumn9=newTableColumn(table,SWT.LEFT);column9.setText("price");

column9.setWidth(80);

finalTableColumncolumn10=newTableColumn(table,SWT.LEFT);column10.setText("middleStation");column10.setWidth(80);

finalTableColumncolumn11=newTableColumn(table,SWT.LEFT);column11.setText("yzNum");column11.setWidth(80);

finalTableColumncolumn12=newTableColumn(table,SWT.LEFT);column12.setText("rzNum");

column12.setWidth(80);

finalTableColumncolumn13=newTableColumn(table,SWT.LEFT);column13.setText("ywNum");column13.setWidth(80);

finalTableColumncolumn14=newTableColumn(table,SWT.LEFT);column14.setText("rwNum");column14.setWidth(80);

table.setHeaderVisible(true);table.setLinesVisible(true);freshData();

table.setSize(800,200);

Buttonadd=newButton(tmshell,SWT.PUSH);add.setText("addtrains");

add.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){newAddTrain(tm);}});

Buttonupdate=newButton(tmshell,SWT.PUSH);update.setText("modify");

update.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){

TableItem[]selection=table.getSelection();

TableItemselectedRow=selection[0];Traintrain=newTrain();

train.setId(Integer.parseInt(selectedRow.getText(0)));

train.setTrainNum(selectedRow.getText(1));train.setTrainType(selectedRow.getText(2));train.setStarting(selectedRow.getText(3));

武汉理工大学《软件开发工具》论文报告

train.setStartingTime(selectedRow.getText(4));train.setTerminal(selectedRow.getText(5));

train.setTerminalTime(selectedRow.getText(6));train.setIskongTiao(selectedRow.getText(7));

train.setPrice(Float.parseFloat(selectedRow.getText(8)));train.setMiddleStation(selectedRow.getText(9));

train.setYzNum(Integer.parseInt(selectedRow.getText(10)));

train.setRzNum(Integer.parseInt(selectedRow.getText(11)));train.setYwNum(Integer.parseInt(selectedRow.getText(12)));

train.setRwNum(Integer.parseInt(selectedRow.getText(13)));newUpdateTrain(train,tm);

}});

Buttondelete=newButton(tmshell,SWT.PUSH);

delete.setText("cancel");

delete.addSelectionListener(newSelectionAdapter(){

box=new

publicvoidwidgetSelected(SelectionEvente){MessageBox

MessageBox(tmshell,SWT.YES|SWT.NO);

box.setMessage("Areyousuretocancel?");

intnum=box.open();if(num==128)

return;

TableItem[]selection=table.getSelection();TableItemselectedRow=selection[0];DAOdao=newDAO();Stringsql="delete

from

train

where

id="+selectedRow.getText(0)+"";

inti=dao.update(sql);

if(i>0){

box.setMessage("succeed");box.open();

table.remove(table.getSelectionIndex());}else{}}});

box.setMessage("failure");box.open();

武汉理工大学《软件开发工具》论文报告

tmshell.setSize(1200,400);

tmshell.setText("trainManagement");tmshell.open();

while(!tmshell.isDisposed()){

if(!display.readAndDispatch())

display.sleep();}

tmshell.dispose();}

publicvoidfreshData(){

table.removeAll();try{

DAOdao=newDAO();

Listlist=dao.getAllTrain();intnumber=list.size();

for(inti=0;i武汉理工大学《软件开发工具》论文报告

e.printStackTrace();

}finally{

Conn.closePt(pt);Conn.closeCon(con);}returni;

}

publicListgetAllTrain(){

Listlist=newArrayList();con=Conn.getConnection();try{

pt=con.prepareStatement("select*fromtrain");rs=pt.executeQuery();while(rs.next()){

Traintrain=newTrain();

train.setId(rs.getInt(1));

train.setTrainNum(rs.getString(2));train.setTrainType(rs.getString(3));train.setStarting(rs.getString(4));

train.setStartingTime(rs.getString(5));train.setTerminal(rs.getString(6));

train.setTerminalTime(rs.getString(7));train.setIskongTiao(rs.getString(8));train.setPrice(rs.getFloat(9));

train.setMiddleStation(rs.getString(10));train.setYzNum(rs.getInt(11));train.setRzNum(rs.getInt(12));train.setYwNum(rs.getInt(13));

train.setRwNum(rs.getInt(14));list.add(train);}

}catch(SQLExceptione){e.printStackTrace();}finally{

Conn.closeRs(rs);

Conn.closePt(pt);Conn.closeCon(con);

}returnlist;

}

其中的update的功能是,首先连接数据库,然后用传递过来的SQl语句在列表中删除某辆列车的信息。getAllTrain()方法是显示所有的列车的信息。图示如下:

武汉理工大学《软件开发工具》论文报告

在车次管理中的对于列车信息添加的功能是通过AddTrain.java来实现的。代码如下:

importorg.eclipse.swt.SWT;importorg.eclipse.swt.events.*;importorg.eclipse.swt.layout.*;importorg.eclipse.swt.widgets.*;importcom.huizhi.dao.DAO;

publicclassAddTrain{

Displaydisplay=Display.getCurrent();Shelltmshell=newShell(display);TrainManagetrainmanage=null;

publicAddTrain(TrainManagetm){trainmanage=tm;

GridLayoutgridlayout=newGridLayout();tmshell.setText("addtrainsinformation");

gridlayout.numColumns=2;

gridlayout.makeColumnsEqualWidth=true;

tmshell.setLayout(gridlayout);

GridDatagd=newGridData(GridData.FILL_BOTH);Labell=newLabel(tmshell,SWT.LEFT);l.setText("trainNum");

l.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTexttrainNum=newText(tmshell,SWT.NONE);trainNum.setSize(50,60);trainNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

Labell1=newLabel(tmshell,SWT.LEFT);l1.setText("trainType");

l1.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTexttrainType=newText(tmshell,SWT.LEFT);

武汉理工大学《软件开发工具》论文报告

trainType.setSize(30,40);

trainType.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell2=newLabel(tmshell,SWT.LEFT);l2.setText("starting");l2.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextstarting=newText(tmshell,SWT.LEFT);starting.setSize(30,40);starting.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell3=newLabel(tmshell,SWT.LEFT);l3.setText("startingtime");l3.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextstartingTime=newText(tmshell,SWT.LEFT);startingTime.setSize(30,40);startingTime.setLayoutData(gd);

Labell4=newLabel(tmshell,SWT.LEFT);l4.setText("terminal");l4.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextterminal=newText(tmshell,SWT.LEFT);terminal.setSize(30,40);

terminal.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell5=newLabel(tmshell,SWT.LEFT);l5.setText("terminaltime");

l5.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextterminalTime=newText(tmshell,SWT.LEFT);terminalTime.setSize(30,40);terminalTime.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell6=newLabel(tmshell,SWT.LEFT);l6.setText("iskongtiao");

l6.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextiskongTiao=newText(tmshell,SWT.LEFT);

武汉理工大学《软件开发工具》论文报告

iskongTiao.setSize(30,40);

iskongTiao.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell7=newLabel(tmshell,SWT.LEFT);l7.setText("price");l7.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextprice=newText(tmshell,SWT.LEFT);price.setSize(30,40);price.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell8=newLabel(tmshell,SWT.LEFT);l8.setText("middleStation");l8.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextmiddleStation=newText(tmshell,SWT.LEFT);middleStation.setSize(30,40);middleStation.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell9=newLabel(tmshell,SWT.LEFT);l9.setText("yzNum");l9.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextyzNum=newText(tmshell,SWT.LEFT);yzNum.setSize(30,40);yzNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell10=newLabel(tmshell,SWT.LEFT);l10.setText("rzNum");l10.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextrzNum=newText(tmshell,SWT.LEFT);rzNum.setSize(30,40);rzNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell11=newLabel(tmshell,SWT.LEFT);l11.setText("ywNum");l11.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

武汉理工大学《软件开发工具》论文报告

finalTextywNum=newText(tmshell,SWT.LEFT);ywNum.setSize(30,40);ywNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell12=newLabel(tmshell,SWT.LEFT);l12.setText("rwNum");

l12.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);finalTextrwNum=newText(tmshell,SWT.LEFT);rwNum.setSize(30,40);rwNum.setLayoutData(gd);

Buttonb=newButton(tmshell,SWT.LEFT);b.setText("add");

b.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){

MessageBoxbox=newMessageBox(tmshell,SWT.OK);

if("".equals(trainNum.getText())||"".equals(trainType.getText())||"".equals(starting.getText())

||"".equals(startingTime.getText())||"".equals(terminal.getText())||"".equals(terminalTime.getText())

||"".equals(iskongTiao.getText())||"".equals(price.getParent())||"".equals(middleStation.getText())||"".equals(yzNum.getText())

||"".equals(rzNum.getText())||"".equals(ywNum.getText())||"".equals(rwNum.getText())){

box.setMessage("pleaseinputtherightinformation");

box.open();

return;}

DAOdao=newDAO();String

sql="insert

into

train(trainNum,trainType,starting1,startingTime,terminal,terminalTime,iskongTiao,price,"+

"middleStation,yzNum,rzNum,ywNum,rwNum)values(""+trainNum.getText()+"",""+trainType.getText()+"",""+starting.getText()+"","+

"""+startingTime.getText()+"",""+terminal.getText()+"",""+terminalTime.getText()+"",""+iskongTiao.getText()+"","+

武汉理工大学《软件开发工具》论文报告

"""+price.getText()+"",""+middleStation.getText()+"",""+yzNum.getText()+"",""+rzNum.getText()+"",""+ywNum.getText()+"",""+rwNum.getText()+"")";

inti=dao.update(sql);

}

if(i>0){

box.setMessage("add");}

box.open();fresh();

});

Buttonb1=newButton(tmshell,SWT.LEFT);b1.setText("quit");

b1.addSelectionListener(newSelectionAdapter(){publicvoidwidgetSelected(SelectionEvente){tmshell.setVisible(false);}});

tmshell.layout();

tmshell.setSize(500,450);

tmshell.open();

while(!tmshell.isDisposed()){

if(!display.readAndDispatch())display.sleep();

}

tmshell.dispose();

}

publicvoidfresh(){

trainmanage.freshData();}}图示为:

武汉理工大学《软件开发工具》论文报告

修改列车功能是在UpdateTrain.java.类中实现的。代码如下:importorg.eclipse.swt.SWT;

importorg.eclipse.swt.events.*;importorg.eclipse.swt.layout.*;importorg.eclipse.swt.widgets.*;

importcom.huizhi.dao.DAO;importcom.huizhi.vo.Train;

publicclassUpdateTrain{privateTraintrain;

Displaydisplay=Display.getCurrent();Shellutrainshell=newShell(display);

TrainManagetrainmanage=null;

publicUpdateTrain(Traintrain,TrainManagetm){

this.trainmanage=tm;

this.train=train;

GridLayoutgridlayout=newGridLayout();

utrainshell.setText("modifytraininformation");gridlayout.numColumns=2;

gridlayout.makeColumnsEqualWidth=true;utrainshell.setLayout(gridlayout);

武汉理工大学《软件开发工具》论文报告

GridDatagd=newGridData(GridData.FILL_BOTH);Labelll=newLabel(utrainshell,SWT.LEFT);ll.setText("trainID");ll.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextnum=newText(utrainshell,SWT.NONE);num.setText(Integer.toString(train.getId()));num.setEnabled(false);num.setSize(50,60);num.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell=newLabel(utrainshell,SWT.LEFT);l.setText("TrainNum");

l.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTexttrainNum=newText(utrainshell,SWT.NONE);trainNum.setText(train.getTrainNum());trainNum.setSize(50,60);trainNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell1=newLabel(utrainshell,SWT.LEFT);l1.setText("TrainType");l1.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTexttrainType=newText(utrainshell,SWT.LEFT);trainType.setText(train.getTrainType());trainType.setSize(30,40);trainType.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell2=newLabel(utrainshell,SWT.LEFT);l2.setText("starting");

l2.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextstarting=newText(utrainshell,SWT.LEFT);starting.setText(train.getStarting());starting.setSize(30,40);starting.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell3=newLabel(utrainshell,SWT.LEFT);l3.setText("startingTime");

武汉理工大学《软件开发工具》论文报告

l3.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextstartingTime=newText(utrainshell,SWT.LEFT);startingTime.setText(train.getStartingTime());startingTime.setSize(30,40);startingTime.setLayoutData(gd);

Labell4=newLabel(utrainshell,SWT.LEFT);l4.setText("terminal");l4.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextterminal=newText(utrainshell,SWT.LEFT);terminal.setText(train.getTerminal());terminal.setSize(30,40);terminal.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell5=newLabel(utrainshell,SWT.LEFT);l5.setText("terminalTime");

l5.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextterminalTime=newText(utrainshell,SWT.LEFT);terminalTime.setText(train.getTerminalTime());terminalTime.setSize(30,40);terminalTime.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell6=newLabel(utrainshell,SWT.LEFT);l6.setText("iskongtiao");l6.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextiskongTiao=newText(utrainshell,SWT.LEFT);iskongTiao.setText(train.getIskongTiao());iskongTiao.setSize(30,40);iskongTiao.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell7=newLabel(utrainshell,SWT.LEFT);l7.setText("price");

l7.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextprice=newText(utrainshell,SWT.LEFT);price.setText(Float.toString(train.getPrice()));price.setSize(30,40);

武汉理工大学《软件开发工具》论文报告

price.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell8=newLabel(utrainshell,SWT.LEFT);l8.setText("middleStation");

l8.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextmiddleStation=newText(utrainshell,SWT.LEFT);middleStation.setText(train.getMiddleStation());middleStation.setSize(30,40);middleStation.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);Labell9=newLabel(utrainshell,SWT.LEFT);l9.setText("yzNum");l9.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextyzNum=newText(utrainshell,SWT.LEFT);yzNum.setText(Integer.toString(train.getYzNum()));yzNum.setSize(30,40);yzNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

Labell10=newLabel(utrainshell,SWT.LEFT);l10.setText("rzNum");

l10.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextrzNum=newText(utrainshell,SWT.LEFT);rzNum.setText(Integer.toString(train.getRzNum()));rzNum.setSize(30,40);rzNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

Labell11=newLabel(utrainshell,SWT.LEFT);l11.setText("ywNum");l11.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextywNum=newText(utrainshell,SWT.LEFT);ywNum.setText(Integer.toString(train.getYwNum()));ywNum.setSize(30,40);ywNum.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

Labell12=newLabel(utrainshell,SWT.LEFT);

武汉理工大学《软件开发工具》论文报告

l12.setText("rwNum");

l12.setLayoutData(gd);

gd=newGridData(GridData.FILL_BOTH);

finalTextrwNum=newText(utrainshell,SWT.LEFT);rwNum.setText(Integer.toString(train.getRwNum()));rwNum.setSize(30,40);rwNum.setLayoutData(gd);

Buttonb=newButton(utrainshell,SWT.LEFT);b.setText("modify");

b.addSelectionListener(newSelectionAdapter(){

publicvoidwidgetSelected(SelectionEvente){

MessageBoxbox=newMessageBox(utrainshell,SWT.OK);

if("".equals(trainNum.getText())||"".equals(trainType.getText())||"".equals(starting.getText())

||"".equals(startingTime.getText())||"".equals(terminal.getText())||"".equals(terminalTime.getText())

||"".equals(iskongTiao.getText())||"".equals(price.getText())||"".equals(middleStation.getText())||"".equals(yzNum.getText())

||"".equals(rzNum.getText())||"".equals(ywNum.getText())||"".equals(rwNum.getText())){

box.setMessage("pleaseinputrightinformationthenmodify");

box.open();

return;}

DAOdao=newDAO();

Stringsql="updatetrainsettrainNum=""+trainNum.getText()+"",trainType=""+trainType.getText()+"",starting1=""+starting.getText()+"","+

"startingTime=""+startingTime.getText()+"",terminal=""+terminal.getText()+"",terminalTime=""+terminalTime.getText()+"",iskongTiao=""+iskongTiao.getText()+"","+

"price=""+price.getText()+"",middleStation=""+middleStation.getText()+"",yzNum=""+yzNum.getText()+"",rzNum=""+rzNum.getText()+"",ywNum=""+ywNum.getText()+"",rwNum=""+rwNum.getText()+""whereid=""+num.getText()+""";

inti=dao.update(sql);if(i>0){

武汉理工大学《软件开发工具》论文报告

box.setMessage("succeed");

box.open();fresh();}else{

box.setMessage("failure");box.open();}

}});

Buttonb1=newButton(utrainshell,SWT.LEFT);b1.setText("quit");

b1.addSelectionListener(newSelectionAdapter(){

publicvoidwidgetSelected(SelectionEvente){utrainshell.setVisible(false);

}});

utrainshell.layout();

utrainshell.setSize(500,450);utrainshell.open();

while(!utrainshell.isDisposed()){if(!display.readAndDispatch())display.sleep();}

utrainshell.dispose();}

publicvoidfresh(){

trainmanage.freshData();}}

车票管理主要包括对车票的增加,删除和修改的操作。由TicketManagement.java实现。代码类似上面的:(具体看压缩包)。其中的查询列车表和售票表调用的DAO.java类中selectTicket()方法。图示为:

武汉理工大学《软件开发工具》论文报告

售票员管理是对售票员进行增加、删除和修改进行操作。由UserMannage.java类来实现。代码类似以上。在该类中调用了DAO.java类中getAllUser()方法。图示为:

武汉理工大学《软件开发工具》论文报告

售票及退票模块包括两部分:火车售票和退票。售票系统是xiaosTickect.java实现的。图示如下:

退票是售票员根据用户提供的车票信息在系统中进行售票。主要是由TuiTicket.java来实现的。在该类中涉及到DAO.java类中的selectTrain()方法.图示如下:

列车及车票查询系统主要功能包括两部分:查询列车信息和查询车票信息.有FindTrain.Java和FindTicket.java实现.图示如下:

武汉理工大学《软件开发工具》论文报告

4学习心得

我是再没有接触eclipse之前就接触了java,我自己都先用记事本编写java程序,然后在doc下进行编译和运行。后来安装了ecplise这个集成环境,但是只把它当成一个运行java的集成环境。

后来经过开发工具的学习和相关书籍的查看,开始深入的理解了什么是ecplise。其实整个ecplise体系结构就像一个大的拼图,可以不断地向其中添加插件,同时在现有的插件上还可以再增加插件。可以说,在ecplise中一切都是插件。这里有一张图片很形象的说明了ecplise的体系结构:

在我学习ecplise的工程中,我觉得它跟一般的软件比起来有很大的优势:在编写代码的过程中,如果有编译错误的话系统马上会提醒,我们很容易就会会发现。而且它会给你提供一些解决问题的方法,虽然有些解决方法有一些笨,但是这对于一些想我们这样的初学者来说,无疑是雪中送炭。而且在编写代码的过程中,我们使用一些类的对象的方法的过程中系统给予一定的提示。这大大的减少了我们出错的机会,并且我们也可以顺便了解一下该类的其他方法。加快我们的学习进度。

武汉理工大学《软件开发工具》论文报告

对于ecplise的具体的功能的学习感悟:对于调试器板块该环境提供了很多的功能包括单步执行、设置断点和值、检查变量和值以及暂挂和恢复线程的能力。在我们课堂上只学习了本地调试中的断点。断点提供了一种强大的工具,使我们能够在需要的时间和位置挂起执行。与逐句或逐条指令的检查代码不同的是,可以让程序一直执行,直到遇到断点。然后开始调试。这大大的加快了调试过程。没有这个功能,调试大型程序几乎不能完成。至于远程的调试对于现在学习的程度来说有一点难。所以先放弃,以后再研究。

对于JUnit,包括模块接口测试、局部数据结构测试、路经测试、错误处理测试、边界测试。它的核心类主要有jnuit.framework包下的TestCase、Testsuite和TestResult,junit.runnier包下的BaseTestRunner类。而我们现在用到的只有断言Assert。在这里有一点原则是需要注意的它的测试名要很容易与应用类区分开来。

我觉得学会用ecplise来创建的基于SWT的图形应用程序十分的重要。这个要源于它的开发缘由。在这之前,使用的awt是原生窗口部件,但是它一直未能突破LCD。为了解决这个问题,又开发了swing。它使用的是仿真窗口部件,不存在LCD问题。但是消耗太多的内存等。为了彻底解决

上述问题,IBM开发了SWT。在基于Windows的ecplise中,SWT通过DLL形式的本地库与操作系统交互;在UNIX下,SWT可通过的GTK运行。

最近的学习和看书,让我觉得自己的真的就像在软件的最顶层。自己现在学习的东西在软件

中真的是基础中的基础。我们还有很长的路要走。真的要加油,好好学习啊!

5.参考文献

[1]java核心技术卷1:基础知识叶乃文邝劲筠杜永萍201*.5机械工业出版社[2]eclipse3.0程序开发技术详解吴越胜李新磊201*.10清华大学出版社

友情提示:本文中关于《项目开发总结报告(模板)》给出的范例仅供您参考拓展思维使用,项目开发总结报告(模板):该篇文章建议您自主创作。

来源:网络整理 免责声明:本文仅限学习分享,如产生版权问题,请联系我们及时删除。


项目开发总结报告(模板)》由互联网用户整理提供,转载分享请保留原作者信息,谢谢!
链接地址:http://www.bsmz.net/gongwen/605120.html