1、小型旅游信息管理系统课程设计旅游管理系统开发设计报告 2013年6月25日前言 本系统旨在开发应用于旅行社的小型旅游信息管理系统,帮助人们更加方便的获取旅游方面的信息,及时了解信息更新情况以及更加方便的管理信息。以ASP.NET为开发平台,SQL Server为数据库建立环境,实现该旅游管理系统的基本功能。在此系统中,游客可以查看旅游项目,旅游路线,以及选择旅游方式,定酒店并留言等功能。系统管理者可以删除或修改旅游项目,查看留言等。 具体内容参见本系统说明书正文部分。 由于时间仓促以及编写者水平所限,本说明书还有许多不足之处,真诚希望您的批评指正。目录第一章 项目概述 11.1 项目介绍 11
2、.2 开发团队 11.3 开发计划 1第二章 系统分析 22.1 系统用户定义 22.2 系统功能概述 22.2.1 系统功能结构图 22.2.2 系统功能描述 22.3 系统数据流程 22.3.1 系统数据流程图 22.3.2 系统数据字典 2第三章 系统设计及实现 33.1 系统界面设计 33.1.1 系统界面设计原则 43.1.2 系统界面设计 43.2 系统程序及算法描述 7第四章 总结与展望 13第一章 项目概述1.1 项目介绍 该项目以旨在建立应用于旅行社的小型旅游管理系统。以ASP.NET为开发平台,SQL Server为数据库建立环境,实现该旅游管理系统的基本功能。在此系统中,
3、游客可以查看旅游项目,旅游路线,以及选择旅游方式,定酒店并留言等功能。系统管理者可以删除或修改旅游项目,查看留言等。 1.2 开发团队 该项目开发人员为:重庆交通大学管理学院信息管理及信息系统专业一班,崔喜梅。感谢林鹰老师的教学指导。1.3 开发计划 该项目开发计划共有四步:.对项目进行需求分析,了解该旅行社的基本功能及组织结构,完成系统需求分析报告。.根据报告数据结构图、数据流图建立系统数据库,完成表约束。.完成网页界面的前台页面设计,后台功能实现及其之间的相互协调。.进行系统的调试及维护。第二章 系统分析2.1 系统用户定义该系统的用户为普通浏览者,注册用户,以及系统管理者。2.2 系统功
4、能概述2.2.1 系统功能结构图 2.3 系统数据流程2.3.1 系统数据流程图第三章 系统设计及实现3.1 系统界面设计3.1.1 系统界面设计原则 该系统界面设计原则遵循简洁大方的原则,力求使用户在第一时间内了解网站所表达的信息。并且力求界面富有自然气息,引导浏览者产生对大自然的向往。3.1.2 系统界面设计3.2 系统程序及算法描述 using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;usi
5、ng System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class _Default : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) if (!IsPostBack) rptList1.DataSource = DB.getDataTable(select top 10 * fr
6、om JingDian order by JingDianId desc); rptList1.DataBind(); rptList2.DataSource = DB.getDataTable(select top 16 * from JiuDian order by JiuDianId desc); rptList2.DataBind(); rptList3.DataSource = DB.getDataTable(select top 11 * from XianLu order by XianLuId desc); rptList3.DataBind(); rptList4.DataS
7、ource = DB.getDataTable(select top 8 * from JiaoTong order by JiaoTongId desc); rptList4.DataBind(); using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.W
8、ebControls.WebParts;using System.Web.UI.HtmlControls;public partial class JiaoTongInfo : System.Web.UI.Page protected string title = string.Empty; protected string content = string.Empty; string id = string.Empty; protected void Page_Load(object sender, EventArgs e) id = Request.QueryStringid; if (!
9、IsPostBack) DataTable dt = DB.getDataTable(select * from VI_JiaoTong where JiaoTongId= + id); if (dt.Rows.Count 0) title = dt.Rows0title.ToString(); content = dt.Rows0Content.ToString(); public partial class Comment : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) if (!IsPos
10、tBack) rptList.DataSource = DB.getDataTable(select * from Comment order by CommentId desc); rptList.DataBind(); if (Request.Cookiesmemberinfo != null) txtCommentUser.Text = Server.UrlDecode(Request.CookiesmemberinfoUserName); protected void btnSubmitComment_Click(object sender, EventArgs e) string u
11、sername = txtCommentUser.Text.Trim(); string content = txtCommentContent.Text.Trim(); if (!string.IsNullOrEmpty(username) & !string.IsNullOrEmpty(content) string sql = insert into Comment(UserName,Content) ; sql += values( + username + , + content + ); SqlConnection cn = DB.OpenConnection(); SqlComm
12、and cmd = new SqlCommand(sql, cn); cmd.ExecuteNonQuery(); cn.Close(); cn.Dispose(); Common.ShowMessage(this.Page, 留言成功, , comment.aspx); else JavaScriptHelper.Alert(留言人和留言内容不能为空); return; using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System
13、.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;public partial class System_ManagerThisWay : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) if (!IsPostBack
14、) protected void imbtnSubmit_Click(object sender, ImageClickEventArgs e) ltlMess.Text = ; string user = Common.UrnHtml(txt_user.Text.Trim(); string pwd = FormsAuthentication.HashPasswordForStoringInConfigFile(txt_pwd.Text, SHA1); string sql = select * from Manager where Manager_User= + user + and Ma
15、nager_Pwd= + pwd + ; SqlDataReader dr = DB.getDataReader(sql); if (AuthCode1.IsMatch) if (dr.Read() HttpCookie cookies; cookies = new HttpCookie(xzfgw); cookies.Values.Add(Manager, HttpUtility.UrlEncode(this.txt_user.Text.Trim(); cookies.Expires = DateTime.Now.AddHours(24);/1天有D效24小?时 Response.Cooki
16、es.Set(cookies);/存?储!? dr.Close(); dr.Dispose(); Response.Redirect(MainFrame.aspx); else dr.Close(); dr.Dispose(); /Common.ShowMessage(Page, 用?户名?或密码?错误., ); ltlMess.Text = 登?录?帐号?或密码?错误.; else dr.Close(); dr.Dispose(); /Common.ShowMessage(Page, 验证码?错误., ); ltlMess.Text = 验证码?错误.; using System;using
17、 System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;public partial class System_JiuDianOpe
18、r : System.Web.UI.Page string id = string.Empty; protected void Page_Load(object sender, EventArgs e) id = Request.QueryStringid; if (!IsPostBack) if (!string.IsNullOrEmpty(id) Image1.Visible = true; Get_Data(); else Image1.Visible = false; void Get_Data() try DataTable dt = DB.getDataTable(select *
19、 from JiuDian where JiuDianId= + id); if (dt.Rows.Count = 1) txtJiuDianName.Text = dt.Rows0JiuDianName.ToString(); txtJiaGe.Text = dt.Rows0JiaGe.ToString(); txtTel.Text = dt.Rows0Tel.ToString(); txtAddress.Text = dt.Rows0Address.ToString(); Image1.ImageUrl = /Program + dt.Rows0PicAddress.ToString();
20、 txtContent.Value = dt.Rows0Content.ToString(); catch (Exception ex) Common.ShowMessage(this.Page, 页3面?加载?时出?现?异常。, ); return; / / 按钮事?件t:o提交?信?息 / / / protected void btnSubmit_Click(object sender, EventArgs e) try string picaddress = string.Empty; string sql2 = string.Empty; if (string.IsNullOrEmpt
21、y(id)/添加 picaddress = Common.UploadFile(FileUpload1, this.Page, false); if (picaddress = false) return; sql2 = insert into JiuDian(JiuDianName,PicAddress,Content,JiaGe,Tel,Address) ; sql2 += values( + txtJiuDianName.Text + , + picaddress + , + txtContent.Value + , + txtJiaGe.Text + , + txtTel.Text +
22、 , + txtAddress.Text + ); else/修T改? if (FileUpload1.HasFile) picaddress = Common.UploadFile(FileUpload1, this.Page, false); else picaddress = Image1.ImageUrl.Replace(/Program, ); sql2 = update JiuDian set JiuDianName=0,PicAddress=1,Content=2,JiaGe=3,Tel=4,Address=5 where JiuDianId= + id; sql2 = stri
23、ng.Format(sql2, txtJiuDianName.Text, picaddress, txtContent.Value, txtJiaGe.Text.Trim(), txtTel.Text, txtAddress.Text.Trim(); SqlConnection cn = DB.OpenConnection(); SqlCommand cmd = new SqlCommand(sql2, cn); cmd.ExecuteNonQuery(); cn.Close(); cn.Dispose(); Common.ShowMessage(this.Page, 信?息保存?成功|!?,
24、 , jiudianmanage.aspx); catch (Exception ex) Common.ShowMessage(this.Page, 信?息保存?失败,?请?稍?后重?试?。, ); return; 第四章 总结与展望通过对本系统的完成过程,使我充分的理解了学习软件工程课程过程中,实践的重要性。我们虽然在课堂上认真学习书本知识,可是动手能力很是欠缺,仅仅完成上学期的课程设计,校园博客系统所积累的经验是不够的。动手能力欠缺的后果就是开始无从下手,不知道该从哪个方面着手开始系统的构建,从而导致了大量时间的浪费,以至于到后期难以完成整个系统。旅游管理系统的开发可以从很大程度上清晰,快捷的整理信息,为人们提供很大的方便,从而很大程度上解放了人力,使得人们可以更加方便的进行日常的管理工作。在本系统的基础上,还可以根据实际需求增加更多的辅助功能,逐步完善该系统的管理功能,从而使其更加具有管理系统所具备的良好功能。
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1