毕业设计说明书(论文)中文摘要
随着社会经济的蓬勃发展,人们的消费水平在不断增长,外出旅行愈加频繁,酒店客房量的需求也在加强,这给酒店行业的发展带来了机遇与挑战。如何做好酒店住客的引流工作,如何管理好酒店,对管理人员规划管理运用策略和进行决策,为酒店住客提供最优质的服务,成为酒店发展的关键。因此,结合现代软件技术和微信相关技术,整合开发一套微信酒店管理系统具有十分高的价值。
本文主要分析了酒店管理系统的一些基本功能和组成情况,包括需求分析、系统结构、功能模块划分以及数据库模式分析等,重点对应用程序的实际开发实现做了介绍。打到了数据的一致性和安全性且应用程序功能完备,复合了酒店管理系统,从而深入探究酒店管理系统的设计与实现的具体方法。
关键词:酒店管理系统 MySQL
毕业设计说明书(论文)外文摘要
Title Hotel Management system based on WeChat mini-program
Abstract
With the vigorous development of social economy, people’s consumption level is growing, travel more frequently, the demand for hotel room volume is also strengthening, which brings opportunities and challenges to the development of the hotel industry. How to do a good job of hotel guests, how to manage the hotel, the management of the management of the use of strategy and decision-making, for hotel guests to provide the best quality service, become the key to hotel development. Therefore, combined with modern software technology and WeChat-related technology, integrated development of a WeChat hotel management system has a very high value.
This paper mainly analyzes some basic functions and composition of the hotel management system, including demand analysis, system structure, function module division and database model analysis, focusing on the actual development and implementation of the application is introduced. The consistency and security of the data and the complete application function are obtained, and the hotel management system is composited, so as to explore the design and implementation of the hotel management information system.
Key words: Hotel management system
目 录
1绪论
1.1 微信小程序酒店管理系统
1.2 微信小程序酒店管理系统的国内外发展现状
1.3 微信小程序的创建及其独有的特色
1.4 研究目的及意义
1.4 课题主要研究方案与设计方法
1.4.1 研究方案
1.4.2 设计方法
2系统开发技术与环境
2.1 系统开发语言
2.2 系统开发工具
2.3微信小程序注册及构成
2.3.1 微信小程序注册
2.3.2 微信小程序的构成分析
2.4 系统页面技术
2.5 系统数据库的选择
2.6 系统的运行环境
2.6.1 硬件环境
2.6.2 软件环境
3系统分析
3.1可行性分析
3.1.1 经济可行性
3.1.2 技术可行性
3.1.3 操作可行性
3.1.4 法律可行性
3.2需求分析
3.3.1 功能需求分析
3.3.2 性能需求分析
3.3系统流程分析
3.4数据流程分析
4系统设计
4.1 系统开发软件的选择
4.2 系统总体功能设计
4.3 系统数据库设计
4.3.1 概念模型设计
4.3.2 数据库结构设计
5系统详细设计和实现
5.1 用户模块设计
5.1.1 用户登陆注册模块设计
5.1.2 系统首页模块设计
5.1.3 系统优惠券信息模块设计
5.1.4 系统房间预订模块设计
5.2 酒店模块设计
5.2.1 房间管理模块设计
5.2.2 订单管理模块设计
5.2 管理员模块设计
5.2.1 酒店管理模块设计
5.2.2 种类管理模块设计
5.2.3 用户管理模块设计
6系统测试
6.1 测试方法
6.2 测试实例
7 总结与展望
参考文献
致 谢
用户界面部分代码:
<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head id="Head1">
<%@ include file="/web/common/common.jsp" %>
<script type="text/javascript">
$(function () {
$('#grid1').datagrid({
title: '管理员列表',
nowrap: false,
striped: true,
fit: true,
url: "<%=__APP__%>/User!getList",
idField: 'uuid',
pagination: true,
rownumbers: true,
pageSize: 10,
pageNumber: 1,
singleSelect: true,
fitColumns: true,
sortName: 'id',
sortOrder: 'desc',
columns: [
[
{title: 'id', field: 'id', width: 100, hidden: false},
{title: '用户名', field: 'username', width: 100, sortable: true},
{title: '状态', field: 'statecn', width: 100, sortable: true},
{title: '电话', field: 'tel', width: 100, sortable: true},
{title: '密码', width: 100, field: 'passwd'},
{title:'用户权限',width:100,field:'roletype'}
]
],
toolbar: [
{
text: '新增',
iconCls: 'icon-add',
handler: function () {
$("#action").val("add");
$("#managerDialog").dialog('open');
$('.validatebox-tip').hide();
}
},
'-',
{
text: '修改',
id: 'commit',
iconCls: 'icon-edit',
handler: function () {
$("#action").val("edit");
var selected = $('#grid1').datagrid('getSelected');
if (selected) {
edit(selected);
var index = $('#grid1').datagrid('getRowIndex', selected);
} else {
$.messager.alert("提示", "请选择一条记录进行操作");
}
}
},
'-',
{
text: '删除',
id: 'commit',
iconCls: 'icon-remove',
handler: function () {
var rows = $('#grid1').datagrid('getSelected');
if (rows) {
var rowId = rows.id;
$.messager.confirm('提示', '确定要删除吗?', function (r) {
if (r) {
deleteItem(rowId);
}
});
} else {
$.messager.alert("提示", "请选择一条记录进行操作");
}
}
}
]
});
});
function save() {
$('#managForm').form('submit', {
url: "<%=__APP__%>/User!add",
onSubmit: function () {
return inputCheck();
},
success: function (data) {
closeBackGround();
$.messager.alert("提示", data, "info", function () {
closeFlush();
});
}
});
}
function edit(obj) {
//$.post("controller/userController.php?action=getOne",{id:uuid},function(data){
var username = obj.username;
var password = obj.passwd;
var roletype = obj.roletype;
$("#username").val(username);
$("#passwd").val(password);
$("#roletype").combobox('setValue', roletype);
$("#id").val(obj.id);
$("#managerDialog").dialog('open');
//});
}
function deleteItem(uuid) {
$.post("<%=__APP__%>/User!deleteItem", {id: uuid}, function (data) {
closeFlush();
});
}
function cancel() {
$.messager.confirm('提示', '是否要关闭?', function (r) {
if (r) {
$("#managerDialog").dialog('close');
}
});
}
function query() {
/*
var username = $("#username").val();
var creatTime = $("#creatTm").datebox("getValue");
var obj = new Object();
obj.username = username;
obj.createTime = creatTime
$('#grid1').datagrid('options').queryParams = obj;
$('#grid1').datagrid("reload");*/
//$('#grid1').datagrid('loadData',{total:0,rows:[]});
$('#grid1').datagrid('options').queryParams = serializeObject($('#searchForm'));
$('#grid1').datagrid("reload");
//$('#grid1').datagrid('loadData',{total:0,rows:[]});
//$('#grid1').datagrid('load', serializeObject($('#searchForm')));
}
function reset() {
searchForm.reset();
}
function closeFlush() {
managForm.reset();
$("#managerDialog").dialog('close');
$("#grid1").datagrid("reload");
}
function inputCheck() {
if ($("#passwd").val() != $("#password2").val()) {
$.messager.alert("提示", "两次输入密码不一致!");
return false;
} else if (!($("#managForm").form("validate"))) {
return false;
}
openBackGround();
return true;
}
</script>
</head>
<body class="easyui-layout">
<div region="north" border="false" style="height:3px;overflow: hidden"></div>
<div region="west" border="false" style="width:3px;"></div>
<div region="east" border="false" style="width:3px;"></div>
<div region="south" border="false" style="height:3px;overflow: hidden"></div>
<div region="center" border="false">
<div id="main" class="easyui-layout" fit="true" style="width:100%;height:100%;">
<div region="north" id="" style="height:80%;" class="" title="查询条件">
<form action="" id="searchForm" name="searchForm" method="post">
<table cellpadding="1" cellspacing="0" class="tb_search">
<tr>
<td width="10%">
<label for="susername">用户名:</label>
<input type="text" id="susername" name="susername" width="100%" maxlength="32"/>
</td>
<td width="10%">
<a href="#" onclick="query();" class="easyui-linkbutton" iconCls="icon-search">查询</a>
<!-- <a href="#" onclick="reset();" class="easyui-linkbutton" iconCls="icon-redo">重置</a> -->
</td>
</tr>
</table>
</form>
</div>
<div region="center" border="false" style="padding:3px 0px 0px 0px;overflow:hidden">
<table id="grid1"></table>
</div>
</div>
</div>
<div id="managerDialog" class="easyui-dialog" title="用户管理" style="width:500px;height:290px;" toolbar="#dlg-toolbar"
buttons="#dlg-buttons2" resizable="true" modal="true" closed='true'>
<form id="managForm" name="managForm" method="post">
<input type="hidden" id="action" name="action"/>
<input type="hidden" id="id" name="id"/>
<table cellpadding="1" cellspacing="1" class="tb_custom1">
<tr>
<th width="10%" align="right"><label>用户名:</label></th>
<td width="30%">
<input id="username" name="user.username" class="easyui-validatebox"
style="width:300px;word-wrap: break-word;word-break:break-all;" type="text" required="true"
validType="length[0,32]"/><font color='red'>*</font></td>
</tr>
<tr>
<th width="10%" align="right"><label>权限:</label></th>
<td width="30%">
<select id="roletype" name="user.roletype" class="easyui-combobox" panelHeight="auto"
style="width:300px;word-wrap: break-word;word-break:break-all;" type="text" required="true"
validType="length[0,32]">
<option value="1" selected="selected">管理员</option>
<option value="2">普通用户</option>
<option value="4">前台管理</option>
</select></td>
</tr>
<tr>
<th width="10%" align="right"><label>状态:</label></th>
<td width="30%">
<select id="statecn" name="user.statecn"
style="width:300px;word-wrap: break-word;word-break:break-all;" type="text" required="true"
validType="length[0,32]">
<option value="正常" selected="selected">正常</option>
<option value="禁用">禁用</option>
</select></td>
</tr>
<tr>
<th width="10%" align="right"><label>密码:</label></th>
<td width="10%">
<input id="passwd" type="passwd" name="user.passwd" class="easyui-validatebox" required="true" validType="length[0,32]"
style="width:300px"/>
</td>
</tr>
<tr>
<th width="10%" align="right"><label>密码确认:</label></th>
<td width="10%">
<input id="password2" type="passwd" name="" class="easyui-validatebox" style="width:300px" required="true"
validType="length[0,32]"/>
</td>
</tr>
</table>
</form>
<div id="dlg-buttons2">
<a href="#" class="easyui-linkbutton" onclick="save();">保存</a>
<a href="#" class="easyui-linkbutton" onclick="cancel();">取消</a>
</div>
</div>
</body>
</html>