java案例-酒店管理系统(ssm+mysql+nginx)
来源:互联网 发布:怎么黑淘宝店铺 编辑:程序博客网 时间:2024/04/19 01:23
这是学校个人自主案例,在此分享一下此项目。主要分享对象为热爱java初学者人员,大牛可以忽略。
项目共划分为5个模块,分别为预定管理,前台接待,收银管理,房务管理和权限管理。
1.预定管理:①预定登记,②预定维护,③预定分房,④预定入 住。首先是预定登记,查看和登记预定客人的预订房信息。
如下图
1.1登记预定单
预订单信息查询
1.2预定维护:对客户预订单信息进行编辑改动。如下图
订单信息页面
客户基础资料修改
留房编辑
1.3预定分房:应客户需求在对客户进行房间分配,如下图
分房订单信息
分房操作
1.4预定入住:将预订单转为正式入住订单。如下图
入住订单列表
入住订单
到此,预定管理流程已走完。
2.前台接待,流程与预定管理模块基本一致,在这里就不再说明了。
3.收银管理:①交易入账,②账务处理,③结算列表
首先是交易入账,查询订单信息及消费和房间信息,如下图。
3.1 交易入账列表
添加消费
3.2账务处理列表,也可以查看消费明细和房间详情
客账处理界面
入账操作
转账操作
冲账操作
3.3结账列表:对订单进行快速离店和快速清帐操作,如下图。
快速离店
快速离店
快速清帐
快速清帐
4.房务管理:房间状态一览其主要的功能基本和上面介绍的一样,在这里也不多说了。如下图
5.权限管理,如下图
5.1用户列表
5.2添加用户,nginx文件服务器
5.3用户组
5.4权限规则
二、部分功能代码截图展示。
1.房间归类查询,listmap和map方法
1.1控制器
1.2界面绑定展示
1.3批量数据提交,ajax json格式
控制器代码
页面提交代码
function saveproduct(){ var receptionid=$('#receptionid').val(); var tbody=$('#tbody'); var buffer=""; for(var i=0;i<tbody.children().length;i++){ buffer+="&poList.cslist["+i+"].room_id="+tbody.children()[i].cells[0].innerHTML; buffer+="&poList.cslist["+i+"].guest_id="+tbody.children()[i].cells[1].innerHTML; buffer+="&poList.cslist["+i+"].room="+tbody.children()[i].cells[2].childNodes[0].childNodes[0].innerHTML; buffer+="&poList.cslist["+i+"].guestname="+tbody.children()[i].cells[3].childNodes[0].childNodes[0].innerHTML; buffer+="&poList.cslist["+i+"].project="+tbody.children()[i].cells[4].childNodes[0].childNodes[0].innerHTML; buffer+="&poList.cslist["+i+"].amount="+tbody.children()[i].cells[5].childNodes[0].childNodes[0].innerHTML; buffer+="&poList.cslist["+i+"].univalence="+tbody.children()[i].cells[6].childNodes[0].childNodes[0].innerHTML; buffer+="&poList.cslist["+i+"].price="+tbody.children()[i].cells[7].childNodes[0].childNodes[0].innerHTML; buffer+="&poList.cslist["+i+"].giver="+tbody.children()[i].cells[8].childNodes[0].childNodes[0].innerHTML; buffer+="&poList.cslist["+i+"].payment_instruction="+tbody.children()[i].cells[9].childNodes[0].childNodes[0].innerHTML; } $.ajax({ type:"post", url:"${ctx}/financialController/saveProduct.do?receptionid="+receptionid, datatype:"json", data:buffer, success:function(data){ $('#amount').val(''); $('#price').val(''); $('#money').val(''); $('#digest').val(''); var tb = document.getElementById('tbody'); var rowNum=tb.rows.length; for (i=0;i<rowNum;i++){ tb.deleteRow(i); rowNum=rowNum-1; i=i-1; } $.alert({ title: 'Alert!', content: '<strong>操作成功!</strong>', icon: 'fa fa-rocket', animation: 'top', closeAnimation: 'bottom', backgroundDismiss: true, buttons: { okay: { text: 'okay', btnClass: 'btn-primary', action: function () { } } } }); } }) }
1.4nginx文件配置 wondows
server { listen 8089;#端口号 server_name localhost;#本机 charset utf-8; #access_log logs/host.access.log main; location ~ .*\.(gif|jpg|jpeg|png)$ { expires 24h; root D:/resourcesfile/images/;#指定图片存放路径 access_log D:/resourcesfile/img_nginx.log;#图片路径 proxy_store on; proxy_store_access user:rw group:rw all:rw; proxy_temp_path D:/resourcesfile/images/;#图片路径 proxy_redirect off; proxy_set_header Host 127.0.0.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 10m; client_body_buffer_size 1280k; proxy_connect_timeout 900; proxy_send_timeout 900; proxy_read_timeout 900; proxy_buffer_size 40k; proxy_buffers 40 320k; proxy_busy_buffers_size 640k; proxy_temp_file_write_size 640k; if ( !-e $request_filename) { proxy_pass http://127.0.0.1:8089;#代理访问地址 } } location / { root html; index index.html index.htm; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }
整个项目就介绍到这里,希望对正在初学java的你们会有帮助,谢谢O(∩_∩)O
- java案例-酒店管理系统(ssm+mysql+nginx)
- 酒店管理系统(java)
- Java项目案例:酒店前台客服管理系统
- Extjs应用案例--《酒店管理系统》
- 酒店管理系统web版/Java酒店管理系统
- 案例 酒店管理
- 案例 酒店管理2
- 酒店管理系统java代码下载
- 基于java web的酒店管理系统
- Java实现酒店管理系统之Java swing酒店管理系统的实现及源码下载
- 酒店(宾馆)客房管理系统
- 酒店管理系统
- 酒店管理系统
- 酒店管理系统心得
- 酒店管理系统数据库
- 酒店管理系统
- 酒店管理系统
- php酒店管理系统
- 微服务架构
- java中RSA加解密的实现
- Shader应用---雷达扫描效果
- (82)蓝图工具栏
- SRE Google 运维解密 具体实践一
- java案例-酒店管理系统(ssm+mysql+nginx)
- Python 小而美的函数
- Maven项目构建配置
- 14、vue.js 之项目代码规范
- 关于MySql数据库授意外网访问的若干问题
- HBase 协处理器编程详解第一部分:Server 端代码编写
- Lua字符串模式匹配函数小结
- Qt+VLC简单的使用显示视频Demo
- MySQL忘记密码的解决办法