javaweb物业管理系统jsp项目

文章目录

  • 物业管理系统
    • 一、系统演示
    • 二、项目介绍
    • 三、系统部分功能截图
    • 四、部分代码展示
    • 五、底部获取项目源码(9.9¥带走)

物业管理系统

可用作javaweb项目、servlet项目、jsp项目的项目设计

一、系统演示

物业管理系统

二、项目介绍

语言:java
技术栈:jsp、bootstrap、jquery、servlet
数据库:MySQL

运行环境
Jdk8 + eclipse或者idea + Tomcat + mysql

本系统分为业主和管理员
符合简单的增删改查
管理员:查看信息,报修管理,公告管理,保安保洁,业主信息,房产信息
业主:查看信息,修改密码,公告查询等

三、系统部分功能截图

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

四、部分代码展示

package com.cissst.servlet;import java.io.IOException;
import java.util.List;import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;import com.cissst.entity.Admin;
import com.cissst.service.IAdminService;
import com.cissst.service.impl.AdminServiceImpl;
import com.cissst.util.MD5Util;public class AdminServlet extends HttpServlet{@Overrideprotected void service(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {request.setCharacterEncoding("utf-8");response.setCharacterEncoding("utf-8");response.setContentType("text/html;charset=UTF-8;");String action = request.getParameter("action");IAdminService adminService = new AdminServiceImpl();if("adminList".equals(action)){List<Admin> list =  adminService.findAlladmins();request.setAttribute("admins", list);RequestDispatcher rd = request.getRequestDispatcher("admin/admin-list.jsp");rd.forward(request, response);}else if("adminAdd".equals(action)){String name = request.getParameter("name");String password = MD5Util.encode(request.getParameter("password"));String sex = request.getParameter("sex");String age = request.getParameter("age");String tel = request.getParameter("tel");String phone = request.getParameter("phone");String addr = request.getParameter("addr");String memo = request.getParameter("memo");System.out.println(name+password+tel+phone+addr+memo);Number ag = Integer.parseInt(age);Admin a = new Admin();a.setName(name);a.setPassword(password);a.setSex(sex);a.setAge(ag);a.setTel(tel);a.setPhone(phone);a.setAddr(addr);a.setMemo(memo);adminService.save(a);response.sendRedirect("admin?action=adminList");}else if("findById".equals(action)){String id = request.getParameter("id");Admin a = adminService.findById(id);request.setAttribute("admin", a);RequestDispatcher rd = request.getRequestDispatcher("admin/admin-edit.jsp");rd.forward(request, response);}else if("adminEdit".equals(action)){int id = Integer.parseInt(request.getParameter("id"));String name = request.getParameter("name");String password = MD5Util.encode(request.getParameter("password"));String sex = request.getParameter("sex");String age = request.getParameter("age");String tel = request.getParameter("tel");String phone = request.getParameter("phone");String addr = request.getParameter("addr");String memo = request.getParameter("memo");int ag = Integer.parseInt(age);Admin a = new Admin();a.setId(id);a.setName(name);a.setPassword(password);a.setSex(sex);a.setAge(ag);a.setTel(tel);a.setPhone(phone);a.setAddr(addr);a.setMemo(memo);adminService.update(a);response.sendRedirect("admin?action=adminList");}else if("adminDelete".equals(action)){String id = request.getParameter("id");adminService.delete(id);response.sendRedirect("admin?action=adminList");}else if("change".equals(action)){String id = request.getParameter("id");Admin a = adminService.findById(id);request.setAttribute("admin", a);RequestDispatcher rd = request.getRequestDispatcher("admin/adminChange.jsp");rd.forward(request, response);}}
}
package com.cissst.servlet;import java.io.IOException;
import java.util.List;import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;import com.cissst.entity.Admin;
import com.cissst.entity.CustomAccount;
import com.cissst.service.ICustomAccountService;
import com.cissst.service.impl.CustomAccountServiceImpl;
import com.cissst.util.MD5Util;public class CustomAccountServlet extends HttpServlet{@Overrideprotected void service(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {request.setCharacterEncoding("utf-8");String action = request.getParameter("action");ICustomAccountService ca = new CustomAccountServiceImpl();if("customAccountList".equals(action)){List<CustomAccount> list =  ca.findAllcustomAccount();request.setAttribute("customAccounts", list);RequestDispatcher rd = request.getRequestDispatcher("customAccount/custom-list.jsp");rd.forward(request,response);}else if("customAccountAdd".equals(action)){String username = request.getParameter("username");String password = MD5Util.encode(request.getParameter("password"));String ownerid = request.getParameter("ownerid");String carid = request.getParameter("carid");CustomAccount c = new CustomAccount();c.setUsername(username);c.setPassword(password);c.setOwnerid(ownerid);c.setCarid(carid);ca.save(c);response.sendRedirect("custom?action=customAccountList");}else if("findById".equals(action)){String accountid = request.getParameter("accountid");CustomAccount c = ca.findById(accountid);request.setAttribute("customAccount", c);RequestDispatcher rd = request.getRequestDispatcher("customAccount/custom-edit.jsp");rd.forward(request, response);}else if("findById2".equals(action)){String accountid = request.getParameter("accountid");CustomAccount c = ca.findById(accountid);request.setAttribute("customAccount", c);RequestDispatcher rd = request.getRequestDispatcher("customAccount/user-custom-list.jsp");rd.forward(request, response);}else if("customAccountEdit".equals(action)){int accountid = Integer.parseInt(request.getParameter("accountid"));String username = request.getParameter("username");String password = MD5Util.encode(request.getParameter("password"));String ownerid = request.getParameter("ownerid");String carid = request.getParameter("carid");CustomAccount c = new CustomAccount();c.setAccountid(accountid);c.setUsername(username);c.setPassword(password);c.setOwnerid(ownerid);c.setCarid(carid);ca.update(c);response.sendRedirect("custom?action=customAccountList");}else if("customAccountDelete".equals(action)){String accountid = request.getParameter("accountid");ca.delete(accountid);response.sendRedirect("custom?action=customAccountList");}else if("change".equals(action)){String accountid = request.getParameter("accountid");CustomAccount c = ca.findById(accountid);request.setAttribute("customAccount", c);RequestDispatcher rd = request.getRequestDispatcher("customAccount/user-change-passwd.jsp");rd.forward(request, response);}else if("customAccountUserEdit".equals(action)){int accountid = Integer.parseInt(request.getParameter("accountid"));String username = request.getParameter("username");String password = MD5Util.encode(request.getParameter("password"));String ownerid = request.getParameter("ownerid");String carid = request.getParameter("carid");CustomAccount c = new CustomAccount();c.setAccountid(accountid);c.setUsername(username);c.setPassword(password);c.setOwnerid(ownerid);c.setCarid(carid);ca.update(c);response.sendRedirect("custom?action=findById2&accountid="+accountid);}}
}
package com.cissst.servlet;import java.io.IOException;
import java.util.List;import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;import com.cissst.entity.Inspection;
import com.cissst.service.IInspectionService;
import com.cissst.service.impl.InspectionServiceImpl;public class InspectionServlet extends HttpServlet{@Overrideprotected void service(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {request.setCharacterEncoding("utf-8");String action = request.getParameter("action");IInspectionService iis = new InspectionServiceImpl();if("inspectionList".equals(action)){List<Inspection> list =  iis.findAllinspections();request.setAttribute("inspections", list);RequestDispatcher rd = request.getRequestDispatcher("inspection/inspection-list.jsp");rd.forward(request, response);}else if("inspectionAdd".equals(action)){String person = request.getParameter("person");String type = request.getParameter("type");String itime = request.getParameter("itime");String conductor = request.getParameter("conductor");String party = request.getParameter("party");String result = request.getParameter("result");String memo = request.getParameter("memo");Inspection i = new Inspection();i.setPerson(person);i.setType(type);i.setItime(itime);i.setConductor(conductor);i.setParty(party);i.setResult(result);i.setMemo(memo);iis.save(i);response.sendRedirect("inspection?action=inspectionList");}else if("findById".equals(action)){String id = request.getParameter("id");Inspection i = iis.findById(id);request.setAttribute("inspection", i);RequestDispatcher rd = request.getRequestDispatcher("inspection/inspection-edit.jsp");rd.forward(request, response);}else if("inspectionEdit".equals(action)){int id = Integer.parseInt(request.getParameter("id"));String person = request.getParameter("person");String type = request.getParameter("type");String itime = request.getParameter("itime");String conductor = request.getParameter("conductor");String party = request.getParameter("party");String result = request.getParameter("result");String memo = request.getParameter("memo");Inspection i = new Inspection();i.setId(id);i.setPerson(person);i.setType(type);i.setItime(itime);i.setConductor(conductor);i.setParty(party);i.setResult(result);i.setMemo(memo);iis.update(i);response.sendRedirect("inspection?action=inspectionList");}else if("inspectionDelete".equals(action)){String id = request.getParameter("id");iis.delete(id);response.sendRedirect("inspection?action=inspectionList");}}
}

五、底部获取项目源码(9.9¥带走)

有问题,或者需要协助调试运行项目的也可以

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/465386.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

GEE数据集——巴西年度土地覆被和利用地图

巴西年度土地覆被和利用地图 巴西年度土地利用和土地覆被制图项目是一个由生物群落、土地利用、遥感、地理信息系统和计算机科学专家组成的合作网络&#xff0c;依靠谷歌地球引擎平台及其云处理和自动分类功能生成巴西年度土地利用和土地覆被时间序列。MapBiomas 项目--是一项多…

Vue源码系列讲解——模板编译篇【一】(综述)

目录 1. 前言 2. 什么是模板编译 3. 整体渲染流程 4. 模板编译内部流程 4.1 抽象语法树AST 4.2 具体流程 5. 总结 1. 前言 在前几篇文章中&#xff0c;我们介绍了Vue中的虚拟DOM以及虚拟DOM的patch(DOM-Diff)过程&#xff0c;而虚拟DOM存在的必要条件是得先有VNode&…

【蓝桥杯Python】试题 算法训练 P0804

资源限制 内存限制&#xff1a;256.0MB C/C时间限制&#xff1a;1.0s Java时间限制&#xff1a;3.0s Python时间限制&#xff1a;5.0s 编写一个函数void strcompress(char *s)&#xff0c;输入一个字符串&#xff08;只包含小写字母和空格&#xff0c;且长度小于1000&…

sheng的学习笔记-网络爬虫scrapy框架

基础知识&#xff1a; scrapy介绍 何为框架&#xff0c;就相当于一个封装了很多功能的结构体&#xff0c;它帮我们把主要的结构给搭建好了&#xff0c;我们只需往骨架里添加内容就行。scrapy框架是一个为了爬取网站数据&#xff0c;提取数据的框架&#xff0c;我们熟知爬虫总…

Modern C++ 内存篇2 - 关于relocation的思考

在上一节《Modern C 内存篇1 - std::allocator VS pmr-CSDN博客》我们详细讨论了关于如何判断用不用memmove优化的代码&#xff0c;结论可以总结为&#xff1a; 只有_Tp是trivial 且 用std::allocator 才会调用memmove。 所有case如下表格所示&#xff1a; No_Tpallocator typ…

2024刘谦春晚第二个扑克牌魔术

前言 就是刚才看春晚感觉这个很神奇&#xff0c;虽然第一个咱模仿不过来&#xff0c;第二个全国人民这么多人&#xff0c;包括全场观众都有成功&#xff0c;这肯定是不需要什么技术&#xff0c;那我觉得这个肯定就是数学了&#xff0c;于是我就胡乱分析一通。 正文 首先准备…

为什么无法正常访问TikTok?该使用跨境专线吗?

TikTok作为全球范围内备受欢迎的社交媒体平台&#xff0c;吸引了数以亿计的用户。然而&#xff0c;有时候用户可能会遇到无法正常访问TikTok的问题&#xff0c;这可能涉及到多方面的因素。本文将深入探讨为什么可能无法正常访问TikTok&#xff0c;并考虑是否使用 TikTok跨境专线…

【机器学习】数据清洗之识别异常点

&#x1f388;个人主页&#xff1a;甜美的江 &#x1f389;欢迎 &#x1f44d;点赞✍评论⭐收藏 &#x1f917;收录专栏&#xff1a;机器学习 &#x1f91d;希望本文对您有所裨益&#xff0c;如有不足之处&#xff0c;欢迎在评论区提出指正&#xff0c;让我们共同学习、交流进步…

单片机学习笔记---蜂鸣器播放提示音音乐(天空之城)

目录 蜂鸣器播放提示音 蜂鸣器播放音乐&#xff08;天空之城&#xff09; 准备工作 主程序 中断函数 上一节讲了蜂鸣器驱动原理和乐理基础知识&#xff0c;这一节开始代码演示&#xff01; 蜂鸣器播放提示音 先创建工程&#xff1a;蜂鸣器播放提示音 把我们之前模块化的…

第73左侧菜单实现

layout下面新建menu layout index.vue导入menu import Menu from /views/layout/menu菜单实现&#xff1a; <template><el-menuactive-text-color"#ffd04b"background-color"#2d3a4b"class"el-menu-vertical-demo"default-active&quo…

MySQL篇----第二十篇

系列文章目录 文章目录 系列文章目录前言一、NULL 是什么意思二、主键、外键和索引的区别?三、你可以用什么来确保表格里的字段只接受特定范围里的值?四、说说对 SQL 语句优化有哪些方法?(选择几条)前言 前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍…

【ES6】模块化

nodejs遵循了CommonJs的模块化规范 导入 require() 导出 module.exports 模块化的好处&#xff1a; 模块化可以避免命名冲突的问题大家都遵循同样的模块化写代码&#xff0c;降低了沟通的成本&#xff0c;极大方便了各个模块之间的相互调用需要啥模块&#xff0c;调用就行 …