信息系统软件设计课程设计报告Word文档格式.docx
《信息系统软件设计课程设计报告Word文档格式.docx》由会员分享,可在线阅读,更多相关《信息系统软件设计课程设计报告Word文档格式.docx(50页珍藏版)》请在冰豆网上搜索。
(4)编写代码
3.客服管理后台模块的实现
(4)编写后台代码
4.数据库操作
(1)数据库建立
(2)数据库连接
指
导
教
师
评
语
建议:
从学生的工作态度、工作量、设计(论文)的创造性、学术性、实用性及书面表达能力等方面给出评价。
签名:
200年月日
前言
立足于《信息系统软件设计》这门课程的学习与领悟,专业老师组织了针对于此内容的课程设计,以让学生更好的掌握与应用所学习的技术知识,锻炼学生对于实际系统的分析与设计能力。
在老师们的任务说明与分配后,我们四个人(李文江、张见、廖宝玉、张鹤宇)组成了一个团队,共同合作来着手任务。
我们的设计任务是“开发一个基本的电子商务网站子系统(基本的ASP.NET网站)”,针对于此项题目,我们选择了B2C模式下的机票预订系统网站的开发。
在有限的时间与能力下,我们借鉴了前人成果,进行学习与开发。
因而,我们团队的开发项目,就是基于对前人成果的认识与学习后,开发我们自己的ASP网站。
一.系统介绍
(一)背景
信息科技的快速发展,使计算机的应用已普及到经济生活和社会生活的各个领域,机票销售领域自然也不例外。
传统的纸质机票要经历印刷、销售、运输、存档等环节,除销售渠道建设和维护成本外,每张机票大约花费航空公司人民币50-60元的成本,而在网上的售票预订系统可以为航空乘客提供方便快捷的订票流程。
乘客只需在网上查询、预订、支付后,再在机场进出港系统确认其行程、姓名等基本信息,仅凭一张身份证就可以办理一整套登机手续,降低了销售成本。
开发本系统是为了提高机票预订的效率,减少错误的发生,方便用户预订和查询航班信息。
(二)系统需求
本系统的用户有两类:
一类是订票的用户,一类是系统管理员。
该系统的用户需求如下:
(1)系统管理员必须先从登录界面进入系统,在登录界面输入用户名和密码,通过身份验证后,才可以进入系统后台管理界面。
(2)系统管理员在后台中可以对用户的登录进行管理。
包括添加用户、修改密码和删除用户的操作。
(3)系统管理员能够对系统的数据进行管理。
包括添加航班信息、更新库存机票和查看库存票量。
(4)系统管理员还可以对订单进行管理,包括查看客户订单、处理订单状态、删除订单的操作。
(5)系统管理员能够够对客户资料进行备份的操作。
(6)系统管理员可以查看客户的投诉和意见。
包括删除投诉和意见的操作。
(7)对于订票的用户,其可以在网站上查询国内和国外机票后进行预订。
(8)用户可以在网站发布对网站的投诉和建议。
二.系统实现
(一)客户前台模块
1.模块设计说明
客户前台模块实现订票客户在前台界面需要的所有功能,包括6个子功能模块:
(1)国际机票查询功能模块:
客户输入出发城市、抵达城市、选择出发日期3项信息后,系统根据客户输入信息,从数据库中进行查找,输出国际票务信息,包括航空公司、出发城市、抵达城市、单程票价、往返票价、飞机型号、起飞时间、抵达时间;
(2)国内机票查询功能模块:
客户未进行查询操作时,界面按时间顺序显示国内票务信息;
在客户输入出发城市、抵达城市、出发日期、返程日期4项信息后,系统根据客户输入信息,从数据库中进行查找,输出国内票务信息,包括航空公司、出发城市、抵达城市、单程票价、往返票价、飞机型号、起飞时间、抵达时间;
(3)世界时差查询功能模块:
客户进入世界时差界面后,系统自动显示世界时差信息,包括国家、城市、与北京时差3项信息;
(4)付款方式查询功能模块:
客户进入付款界面后,系统自动显示该项信息;
(5)机票预订功能模块:
客户在查询到所需票务信息后,点击相关按钮进入预订界面,输入订票数量后,再输入个人基本信息进行预定,包括联系人、身份证号码、电话、手机、E-mail、地址后点击相应按钮,预定成功;
(6)建议和投诉功能模块:
客户进入建议和投诉界面,系统显示相应表单,客户填写建议、联系人、手机、电话、E-mail几项信息后进行提交方可。
2.程序流程图
(1)国际机票查询功能模块
(2)国内机票查询功能模块
(3)世界时差查询功能模块
(4)付款方式查询功能模块
(5)机票预订功能模块
(6)建议和投诉功能模块
3.运行结果
图2-7国际机票查询功能模块前台界面
图2-8国内机票查询功能模块前台界面
图2-9世界时差查询功能模块前台界面
图2-10付款方式查询功能模块前台界面
图2-11机票预订功能模块前台界面一
图2-12机票预订功能模块前台界面二
图2-13建议和投诉功能模块前台界面
4.核心程序
(1)国内机票查询功能模块
usingSystem;
usingSystem.Data;
usingSystem.Configuration;
usingSystem.Collections;
usingSystem.Web;
usingSystem.Web.Security;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Web.UI.WebControls.WebParts;
usingSystem.Web.UI.HtmlControls;
usingSystem.Data.SqlClient;
publicpartialclassdomesticselecet:
System.Web.UI.Page
{
publicstaticstringdt;
publicstaticstringweek;
protectedvoidPage_Load(objectsender,EventArgse)
{
startdate_box.Attributes.Add("
onfocus"
"
javascript:
calendar()"
);
backdate_box.Attributes.Add("
string[]selectinf={"
国内机票实时查询"
票务信息"
航班类型"
出发城市"
到达城市"
出发日期"
返程日期"
};
dmselect.Text=selectinf[0];
extra_table.Text=selectinf[1];
startcity.Text=selectinf[3];
arrivelcity.Text=selectinf[4];
startdate.Text=selectinf[5];
backdate.Text=selectinf[6];
date.Text=DateTime.Now.ToLongDateString();
dt=DateTime.Today.DayOfWeek.ToString();
switch(dt)
case"
Monday"
:
week="
星期一"
;
break;
Tuesday"
星期二"
Wednesday"
星期三"
Thursday"
星期四"
Friday"
星期五"
Saturday"
星期六"
Sunday"
星期日"
}
weekdate.Text=week;
this.bind();
privatevoidbind()
SqlConnectionts=newSqlConnection(System.Configuration.ConfigurationManager.AppSettings["
ts"
]);
//打开数据库连接
ts.Open();
//设置SQL语句,查询出出所有航班信息
SqlDataAdaptersda=newSqlDataAdapter("
select*fromFlightInformationorderbyiddesc"
ts);
//创建数据集
DataSetds=newDataSet();
//装载数据集
sda.Fill(ds,"
FlightInformation"
//数据绑定
GridView1.DataSource=ds.Tables["
];
//将航班信息设置为GridView主键
GridView1.DataKeyNames=newstring[]{"
id"
GridView1.DataBind();
protectedvoidselect_button_Click(objectsender,ImageClickEventArgse)
stringstart=this.startcity_list.Text;
stringarrived=this.arrivelcity_box.Text;
stringstartdate_box=this.startdate_box.Text;
if(arrivelcity_box.Text=="
"
)
Response.Write("
<
scriptlanguage=javascript>
alert('
请确认填写的信息!
'
location='
DomesticSelecet.aspx'
/script>
//获取查询条件字符串
stringsql="
select*fromFlightInformationwherestarting_city='
+start+"
andterminus_city='
+arrived+"
andstarting_date='
+startdate_box+"
orderbyiddesc"
SqlDataAdapterss=newSqlDataAdapter(sql,ts);
DataSetdd=newDataSet();
ss.Fill(dd,"
select"
GridView1.DataSource=dd.Tables["
protectedvoidreset_button_Click(objectsender,ImageClickEventArgse)
startcity_list.Text="
arrivelcity_box.Text="
protectedvoidGridView1_RowDataBound(objectsender,GridViewRowEventArgse)
if(e.Row.RowType==DataControlRowType.DataRow)
e.Row.Attributes.Add("
OnMouseOver"
"
Color=this.style.backgroundColor;
this.style.backgroundColor='
lightgrey'
OnMouseOut"
this.style.backgroundColor=Color;
protectedvoidGridView1_PageIndexChanging(objectsender,GridViewPageEventArgse)
GridView1.PageIndex=e.NewPageIndex;
protectedvoidGridView1_RowEditing(objectsender,GridViewEditEventArgse)
stringid=GridView1.DataKeys[e.NewEditIndex].Value.ToString();
script>
window.open('
ManageOrder.aspx?
id="
+id+"
'
width=500,height=450'
)<
history.go(-1)'
protectedvoidButton1_Click(objectsender,EventArgse)
Calendar1.Visible=true;
protectedvoidButton2_Click(objectsender,EventArgse)
Calendar2.Visible=true;
protectedvoidCalendar1_SelectionChanged(objectsender,EventArgse)
backdate_box.Text=Calendar1.SelectedDate.ToShortDateString();
Calendar1.Visible=false;
protectedvoidCalendar2_SelectionChanged(objectsender,EventArgse)
startdate_box.Text=Calendar2.SelectedDate.ToShortDateString();
Calendar2.Visible=false;
protectedvoidsuggesttion_button_Click(objectsender,EventArgse)
}
(2)机票预订功能模块
publicpartialclassManageOrder:
publicstaticintp;
//判断是否首次加载
if(!
IsPostBack)
stringid=Request["
select*fromFlightInformationwhereid="
+Request["
],ts);
DataRowViewrowview=ds.Tables["
].DefaultView[0];
pany.Text=rowview["
company_type"
].ToString();
this.ftype.Text=rowview["
flight_type"
Session["
sc"
]=rowview["
starting_city"
ac"
terminus_city"
this.aport.Text=rowview["
starting_airport"
this.bport.Text=rowview["
arriving_airport"
this.aprice.Text=rowview["
OneWay_price"
this.bprice.Text=rowview["
GoAndBack_price"
this.at.Text=rowview["
starting_time"
this.bt.Text=rowview["
arriving_time"
tdate"
starting_date"
num0"
num"
fid"
]=rowview["
bunktype"
bunk_type"
p=Convert.ToInt32(Session["
this.Button2.Attributes.Add("
onclick"
window.close()"
//关闭窗口
fc"
]=pany.Text.ToString();
ap"
]=this.aprice.Text.ToString();
bp"
]=this.bprice.Text.ToString();
ft"
]=this.ftype.Text.ToString();
]=this.num.Text.ToString();
;
aap"
]=this.aport.Text.ToString();
bbp"
]=this.bport.Text.ToString();
by"
]=this.bunktype.Text.ToString();
at"
]=this.at.Text.ToString();
bt"
]=this.bt.Text.ToString();
stringbunkt=Convert.ToString(Session["
inti=Convert.ToInt32(Session["
bunkt.Equals(Session["
]))
+Session["
]+"
机票已售空!
window.history.go(-1)<
if(p<
i)
剩余机票数量不足,建议换乘其他航班!