小型旅游信息管理系统课程设计_第1页
小型旅游信息管理系统课程设计_第2页
小型旅游信息管理系统课程设计_第3页
小型旅游信息管理系统课程设计_第4页
小型旅游信息管理系统课程设计_第5页
已阅读5页,还剩13页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、.旅游管理系统开发设计报告崔喜梅重庆交通大学管理学院信息管理及信息系统专业课程设计2013年6月25日;前言本系统旨在开发应用于旅行社的小型旅游信息管理系统,帮助人们更加方便的获取旅游方面的信息,及时了解信息更新情况以及更加方便的管理信息。以ASP.NET为开发平台,SQL Server为数据库建立环境,实现该旅游管理系统的基本功能。在此系统中,游客可以查看旅游项目,旅游路线,以及选择旅游方式,定酒店并留言等功能。系统管理者可以删除或修改旅游项目,查看留言等。 具体内容参见本系统说明书正文部分。 由于时间仓促以及编写者水平所限,本说明书还有许多不足之处,真诚希望您的批评指正。目录第一章 项目概

2、述11.1 项目介绍11.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 开发计划 该项目开发计划共有四步:1.对项目进行需求分析,了解该旅行社的基本功能及组织结构,完成系统需求分析报告。2.根据报告数据结构图、数据流图建立系统数据库,完成表约束。3.完成网页界面的前台页面设计,后台功能实现及其之间的相互协调。4.进行系统的调试及维护。第二章 系统分析2.1 系统用户定义该系统

4、的用户为普通浏览者,注册用户,以及系统管理者。2.2 系统功能概述2.2.1 系统功能结构图旅游管理系统系统管理员模块注册用户模块浏览者模块注册登录浏览网页浏览留言浏览信息定酒店留言个人信息留言管理添加信息修改密码2.3 系统数据流程2.3.1 系统数据流程图第三章 系统设计及实现3.1 系统界面设计3.1.1 系统界面设计原则 该系统界面设计原则遵循简洁大方的原则,力求使用户在第一时间内了解网站所表达的信息。并且力求界面富有自然气息,引导浏览者产生对大自然的向往。3.1.2 系统界面设计3.2 系统程序及算法描述 using System;using System.Data;using Sy

5、stem.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;public partial class _Default : System.Web.UI.Page protected void Page_Load(object send

6、er, EventArgs e) if (!IsPostBack) rptList1.DataSource = DB.getDataTable("select top 10 * from JingDian order by JingDianId desc"); rptList1.DataBind(); rptList2.DataSource = DB.getDataTable("select top 16 * from JiuDian order by JiuDianId desc"); rptList2.DataBind(); rptList3.Dat

7、aSource = DB.getDataTable("select top 11 * from XianLu order by XianLuId desc"); rptList3.DataBind(); rptList4.DataSource = DB.getDataTable("select top 8 * from JiaoTong order by JiaoTongId desc"); rptList4.DataBind(); using System;using System.Data;using System.Configuration;usi

8、ng 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;public partial class JiaoTongInfo : System.Web.UI.Page protected string title = string.Empty; protected strin

9、g content = string.Empty; string id = string.Empty; protected void Page_Load(object sender, EventArgs e) id = Request.QueryString"id" if (!IsPostBack) DataTable dt = DB.getDataTable("select * from VI_JiaoTong where JiaoTongId=" + id); if (dt.Rows.Count > 0) title = dt.Rows0&qu

10、ot;title".ToString(); content = dt.Rows0"Content".ToString(); public partial class Comment : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) if (!IsPostBack) rptList.DataSource = DB.getDataTable("select * from Comment order by CommentId desc"); rptLis

11、t.DataBind(); if (Request.Cookies"memberinfo" != null) txtCommentUser.Text = Server.UrlDecode(Request.Cookies"memberinfo""UserName"); protected void btnSubmitComment_Click(object sender, EventArgs e) string username = txtCommentUser.Text.Trim(); string content = txtComm

12、entContent.Text.Trim(); if (!string.IsNullOrEmpty(username) && !string.IsNullOrEmpty(content) string sql = "insert into Comment(UserName,Content) " sql += "values('" + username + "','" + content + "')" SqlConnection cn = DB.OpenConnecti

13、on(); SqlCommand 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.Configu

14、ration;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_ManagerThisWay : System.Web.UI.Page protect

15、ed void Page_Load(object sender, EventArgs e) if (!IsPostBack) 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, "

16、;SHA1"); string sql = "select * from Manager where Manager_User='" + user + "' and Manager_Pwd='" + pwd + "'" SqlDataReader dr = DB.getDataReader(sql); if (AuthCode1.IsMatch) if (dr.Read() HttpCookie cookies; cookies = new HttpCookie("xzfgw&quo

17、t;); cookies.Values.Add("Manager", HttpUtility.UrlEncode(this.txt_user.Text.Trim(); cookies.Expires = DateTime.Now.AddHours(24);/1天¬¨¬有®D效¡ì24小?时º¡À Response.Cookies.Set(cookies);/存ä?储ä¡é!ê? dr.Close(); dr.Dispose(); Res

18、ponse.Redirect("MainFrame.aspx"); else dr.Close(); dr.Dispose(); /Common.ShowMessage(Page, "用®?户¡ì名?或¨°密¨¹码?错䨪误¨®.", ""); ltlMess.Text = "登Ì?录?帐¨º号?或¨°密¨¹码?错ä¨

19、;ª误¨®." else dr.Close(); dr.Dispose(); /Common.ShowMessage(Page, "验¨¦证¡è码?错䨪误¨®.", ""); ltlMess.Text = "验¨¦证¡è码?错䨪误¨®." using System;using System.Data;using

20、 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_JiuDianOper : System.Web.UI.

21、Page string id = string.Empty; protected void Page_Load(object sender, EventArgs e) id = Request.QueryString"id" if (!IsPostBack) if (!string.IsNullOrEmpty(id) Image1.Visible = true; Get_Data(); else Image1.Visible = false; void Get_Data() try DataTable dt = DB.getDataTable("select *

22、from JiuDian where JiuDianId=" + id); if (dt.Rows.Count = 1) txtJiuDianName.Text = dt.Rows0"JiuDianName".ToString(); txtJiaGe.Text = dt.Rows0"JiaGe".ToString(); txtTel.Text = dt.Rows0"Tel".ToString(); txtAddress.Text = dt.Rows0"Address".ToString(); Image1

23、.ImageUrl = "/Program" + dt.Rows0"PicAddress".ToString(); txtContent.Value = dt.Rows0"Content".ToString(); catch (Exception ex) Common.ShowMessage(this.Page, "页°3面?加¨®载?时º¡À出?现?异°¨¬常¡ê。¡ê", "

24、;"); return; / <summary> / 按ã¡ä钮£¤事º?件t:êo提¬¨¢交?信?息¡é / </summary> / <param name="sender"></param> / <param name="e"></param> protected void btnSubmit_Click(object sender, EventAr

25、gs e) try string picaddress = string.Empty; string sql2 = string.Empty; if (string.IsNullOrEmpty(id)/添¬¨ª加¨® picaddress = Common.UploadFile(FileUpload1, this.Page, "false"); if (picaddress = "false") return; sql2 = "insert into JiuDian(JiuDianName,Pi

26、cAddress,Content,JiaGe,Tel,Address) " sql2 += "values('" + txtJiuDianName.Text + "','" + picaddress + "','" + txtContent.Value + "','" + txtJiaGe.Text + "','" + txtTel.Text + "','" + txtAddre

27、ss.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 = string.Format(sql2, txtJiuDianName

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论