小型旅游信息管理系统课程设计.docx

上传人:b****6 文档编号:8019166 上传时间:2023-01-28 格式:DOCX 页数:16 大小:535.83KB
下载 相关 举报
小型旅游信息管理系统课程设计.docx_第1页
第1页 / 共16页
小型旅游信息管理系统课程设计.docx_第2页
第2页 / 共16页
小型旅游信息管理系统课程设计.docx_第3页
第3页 / 共16页
小型旅游信息管理系统课程设计.docx_第4页
第4页 / 共16页
小型旅游信息管理系统课程设计.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

小型旅游信息管理系统课程设计.docx

《小型旅游信息管理系统课程设计.docx》由会员分享,可在线阅读,更多相关《小型旅游信息管理系统课程设计.docx(16页珍藏版)》请在冰豆网上搜索。

小型旅游信息管理系统课程设计.docx

小型旅游信息管理系统课程设计

旅游管理系统

 

 

2013年6月25日

前言

本系统旨在开发应用于旅行社的小型旅游信息管理系统,帮助人们更加方便的获取旅游方面的信息,及时了解信息更新情况以及更加方便的管理信息。

以ASP.NET为开发平台,SQLServer为数据库建立环境,实现该旅游管理系统的基本功能。

在此系统中,游客可以查看旅游项目,旅游路线,以及选择旅游方式,定酒店并留言等功能。

系统管理者可以删除或修改旅游项目,查看留言等。

具体内容参见本系统说明书正文部分。

由于时间仓促以及编写者水平所限,本说明书还有许多不足之处,真诚希望您的批评指正。

 

目录

第一章项目概述1

1.1项目介绍1

1.2开发团队1

1.3开发计划1

第二章系统分析2

2.1系统用户定义2

2.2系统功能概述2

2.2.1系统功能结构图2

2.2.2系统功能描述2

2.3系统数据流程2

2.3.1系统数据流程图2

2.3.2系统数据字典2

第三章系统设计及实现3

3.1系统界面设计3

3.1.1系统界面设计原则4

3.1.2系统界面设计4

3.2系统程序及算法描述7

第四章总结与展望13

第一章项目概述

1.1项目介绍

该项目以旨在建立应用于旅行社的小型旅游管理系统。

以ASP.NET为开发平台,SQLServer为数据库建立环境,实现该旅游管理系统的基本功能。

在此系统中,游客可以查看旅游项目,旅游路线,以及选择旅游方式,定酒店并留言等功能。

系统管理者可以删除或修改旅游项目,查看留言等。

1.2开发团队

该项目开发人员为:

重庆交通大学管理学院信息管理及信息系统专业一班,崔喜梅。

感谢林鹰老师的教学指导。

1.3开发计划

该项目开发计划共有四步:

.对项目进行需求分析,了解该旅行社的基本功能及组织结构,完成系统需求分析报告。

.根据报告数据结构图、数据流图建立系统数据库,完成表约束。

.完成网页界面的前台页面设计,后台功能实现及其之间的相互协调。

.进行系统的调试及维护。

第二章系统分析

2.1系统用户定义

该系统的用户为普通浏览者,注册用户,以及系统管理者。

2.2系统功能概述

2.2.1系统功能结构图

2.3系统数据流程

2.3.1系统数据流程图

第三章系统设计及实现

3.1系统界面设计

3.1.1系统界面设计原则

该系统界面设计原则遵循简洁大方的原则,力求使用户在第一时间内了解网站所表达的信息。

并且力求界面富有自然气息,引导浏览者产生对大自然的向往。

3.1.2系统界面设计

3.2系统程序及算法描述

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;

publicpartialclass_Default:

System.Web.UI.Page

{

protectedvoidPage_Load(objectsender,EventArgse)

{

if(!

IsPostBack)

{

rptList1.DataSource=DB.getDataTable("selecttop10*fromJingDianorderbyJingDianIddesc");

rptList1.DataBind();

rptList2.DataSource=DB.getDataTable("selecttop16*fromJiuDianorderbyJiuDianIddesc");

rptList2.DataBind();

rptList3.DataSource=DB.getDataTable("selecttop11*fromXianLuorderbyXianLuIddesc");

rptList3.DataBind();

rptList4.DataSource=DB.getDataTable("selecttop8*fromJiaoTongorderbyJiaoTongIddesc");

rptList4.DataBind();

}

}

}

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;

publicpartialclassJiaoTongInfo:

System.Web.UI.Page

{

protectedstringtitle=string.Empty;

protectedstringcontent=string.Empty;

stringid=string.Empty;

protectedvoidPage_Load(objectsender,EventArgse)

{

id=Request.QueryString["id"];

if(!

IsPostBack)

{

DataTabledt=DB.getDataTable("select*fromVI_JiaoTongwhereJiaoTongId="+id);

if(dt.Rows.Count>0)

{

title=dt.Rows[0]["title"].ToString();

content=dt.Rows[0]["Content"].ToString();

}

}

}

}

publicpartialclassComment:

System.Web.UI.Page

{

protectedvoidPage_Load(objectsender,EventArgse)

{

if(!

IsPostBack)

{

rptList.DataSource=DB.getDataTable("select*fromCommentorderbyCommentIddesc");

rptList.DataBind();

if(Request.Cookies["memberinfo"]!

=null)

{

txtCommentUser.Text=Server.UrlDecode(Request.Cookies["memberinfo"]["UserName"]);

}

}

}

protectedvoidbtnSubmitComment_Click(objectsender,EventArgse)

{

stringusername=txtCommentUser.Text.Trim();

stringcontent=txtCommentContent.Text.Trim();

if(!

string.IsNullOrEmpty(username)&&!

string.IsNullOrEmpty(content))

{

stringsql="insertintoComment(UserName,Content)";

sql+="values('"+username+"','"+content+"')";

SqlConnectioncn=DB.OpenConnection();

SqlCommandcmd=newSqlCommand(sql,cn);

cmd.ExecuteNonQuery();

cn.Close();

cn.Dispose();

Common.ShowMessage(this.Page,"留言成功","","comment.aspx");

}

else

{

JavaScriptHelper.Alert("留言人和留言内容不能为空");

return;

}

}

}

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;

publicpartialclassSystem_ManagerThisWay:

System.Web.UI.Page

{

protectedvoidPage_Load(objectsender,EventArgse)

{

if(!

IsPostBack)

{

}

}

protectedvoidimbtnSubmit_Click(objectsender,ImageClickEventArgse)

{

ltlMess.Text="";

stringuser=Common.UrnHtml(txt_user.Text.Trim());

stringpwd=FormsAuthentication.HashPasswordForStoringInConfigFile(txt_pwd.Text,"SHA1");

stringsql="select*fromManagerwhereManager_User='"+user+"'andManager_Pwd='"+pwd+"'";

SqlDataReaderdr=DB.getDataReader(sql);

if(AuthCode1.IsMatch)

{

if(dr.Read())

{

HttpCookiecookies;

cookies=newHttpCookie("xzfgw");

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();

Response.Redirect("MainFrame.aspx");

}

else

{

dr.Close();

dr.Dispose();

//Common.ShowMessage(Page,"用®?

户¡ì名?

或¨°密¨¹码?

错䨪误¨®.","");

ltlMess.Text="登Ì?

录?

帐¨º号?

或¨°密¨¹码?

错䨪误¨®.";

}

}

else

{

dr.Close();

dr.Dispose();

//Common.ShowMessage(Page,"验¨¦证¡è码?

错䨪误¨®.","");

ltlMess.Text="验¨¦证¡è码?

错䨪误¨®.";

}

}

}

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;

publicpartialclassSystem_JiuDianOper:

System.Web.UI.Page

{

stringid=string.Empty;

protectedvoidPage_Load(objectsender,EventArgse)

{

id=Request.QueryString["id"];

if(!

IsPostBack)

{

if(!

string.IsNullOrEmpty(id))

{

Image1.Visible=true;

Get_Data();

}

else

{

Image1.Visible=false;

}

}

}

voidGet_Data()

{

try

{

DataTabledt=DB.getDataTable("select*fromJiuDianwhereJiuDianId="+id);

if(dt.Rows.Count==1)

{

txtJiuDianName.Text=dt.Rows[0]["JiuDianName"].ToString();

txtJiaGe.Text=dt.Rows[0]["JiaGe"].ToString();

txtTel.Text=dt.Rows[0]["Tel"].ToString();

txtAddress.Text=dt.Rows[0]["Address"].ToString();

Image1.ImageUrl="/Program"+dt.Rows[0]["PicAddress"].ToString();

txtContent.Value=dt.Rows[0]["Content"].ToString();

}

}

catch(Exceptionex)

{

Common.ShowMessage(this.Page,"页°3面?

加¨®载?

时º¡À出?

现?

异°¨¬常¡ê。

¡ê","");

return;

}

}

///

///按ã¡ä钮£¤事º?

件t:

êo提¬¨¢交?

信?

息¡é

///

///

///

protectedvoidbtnSubmit_Click(objectsender,EventArgse)

{

try

{

stringpicaddress=string.Empty;

stringsql2=string.Empty;

if(string.IsNullOrEmpty(id))//添¬¨ª加¨®

{

picaddress=Common.UploadFile(FileUpload1,this.Page,"false");

if(picaddress=="false")

{

return;

}

sql2="insertintoJiuDian(JiuDianName,PicAddress,Content,JiaGe,Tel,Address)";

sql2+="values('"+txtJiuDianName.Text+"','"+picaddress+"','"+txtContent.Value+"','"+txtJiaGe.Text+"','"+txtTel.Text+"','"+txtAddress.Text+"')";

}

else//修T改?

{

if(FileUpload1.HasFile)

{

picaddress=Common.UploadFile(FileUpload1,this.Page,"false");

}

else

{

picaddress=Image1.ImageUrl.Replace("/Program","");

}

sql2="updateJiuDiansetJiuDianName='{0}',PicAddress='{1}',Content='{2}',JiaGe='{3}',Tel='{4}',Address='{5}'whereJiuDianId="+id;

sql2=string.Format(sql2,txtJiuDianName.Text,picaddress,txtContent.Value,txtJiaGe.Text.Trim(),txtTel.Text,txtAddress.Text.Trim());

}

SqlConnectioncn=DB.OpenConnection();

SqlCommandcmd=newSqlCommand(sql2,cn);

cmd.ExecuteNonQuery();

cn.Close();

cn.Dispose();

Common.ShowMessage(this.Page,"信?

息¡é保À¡ê存ä?

成¨¦功|!

ê?

","","jiudianmanage.aspx");

}

catch(Exceptionex)

{

Common.ShowMessage(this.Page,"信?

息¡é保À¡ê存ä?

失º¡ì败㨹,ê?

请?

稍¦?

后¨®重?

试º?

¡ê","");

return;

}

}

}

第四章总结与展望

通过对本系统的完成过程,使我充分的理解了学习软件工程课程过程中,实践的重要性。

我们虽然在课堂上认真学习书本知识,可是动手能力很是欠缺,仅仅完成上学期的课程设计,校园博客系统所积累的经验是不够的。

动手能力欠缺的后果就是开始无从下手,不知道该从哪个方面着手开始系统的构建,从而导致了大量时间的浪费,以至于到后期难以完成整个系统。

旅游管理系统的开发可以从很大程度上清晰,快捷的整理信息,为人们提供很大的方便,从而很大程度上解放了人力,使得人们可以更加方便的进行日常的管理工作。

在本系统的基础上,还可以根据实际需求增加更多的辅助功能,逐步完善该系统的管理功能,从而使其更加具有管理系统所具备的良好功能。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 党团建设

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1