基於SSM開發的物業維修管理系統
10063基於SSM開發的物業維修管理系統
程式碼
鏈-椄:https://pan@baidu@com/s/1b_CCWhXdhnaGAwT6DNsLFA (把@換成 . 就可正常訪問)
趧-紶-碼:5345
f/u枝此段-吶傛開啟baidu網盤手機App,caozuo更方便哦
技術
Spring + SpringMVC + Mybatis
工具
eclipse + tomact + mysql + jdk
功能詳情
管理員許可權 | 管理層許可權 | 業主許可權 | 維修工許可權 |
---|---|---|---|
人員管理 | 微信報表統計 | 個人首頁 | 維修任務 |
公告管理 | 報修情況 | 我的報修 | 我的維修任務 |
維修管理 | 投訴情況 | 個人中心 | 我的訊息 |
個人中心 | 個人中心 | 安全退出 | 個人中心 |
安全退出 | 安全退出 | 安全退出 |
系統相關截圖
● 系統首頁
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.EmploeDaoImpl;
import com.entity.Dept;
public class ManagerDeptAdd extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String did = request.getParameter(“did”);
String dname = request.getParameter(“dname”);
String dnumber = request.getParameter(“dnumber”);
String daddr = request.getParameter(“daddr”);
String eid = request.getParameter(“eid”);
Dept dept = new Dept();
dept.setDid(Integer.parseInt(did));
dept.setDname(dname);
dept.setDnumber(Integer.parseInt(dnumber));
dept.setDaddr(daddr);
dept.setEid(Integer.parseInt(eid));
DeptDaoImpl ddi = new DeptDaoImpl();
boolean flag = ddi.insertDept(dept);
if(flag){
EmploeDaoImpl edi = new EmploeDaoImpl();
boolean flag2 = edi.updatePidByEid(Integer.parseInt(eid), 2011);
if(flag2){
response.sendRedirect(“ManagerDeptTable”);
}
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.entity.Dept;
import com.entity.Message;
public class ManagerDeptTable extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
DeptDaoImpl ddi = new DeptDaoImpl();
String pageNow =request.getParameter("n");
if(pageNow==null||pageNow.equals("")){
pageNow="1";
}
if(Integer.parseInt(pageNow)<1){
pageNow="1";
}
int pageCount =1;
if(request.getSession().getAttribute("pageCount")!=null&&!request.getSession().getAttribute("pageCount").equals("")){
pageCount =(Integer)request.getSession().getAttribute("pageCount");
}
if(Integer.parseInt(pageNow)>pageCount){
pageNow = pageCount+"";
}
ArrayList<Dept> deptlist = ddi.getAllDeptByPage(Integer.parseInt(pageNow));
System.out.println("ÎÒÊÇ·ñΪ¿Õ"+deptlist.isEmpty());
request.getSession().setAttribute("deptlist", deptlist);
pageCount =ddi.getPageCount();
request.getSession().setAttribute("pageCount", pageCount);
request.getSession().setAttribute("pageNow", pageNow);
int lineCount =ddi.getLineCount();
request.getSession().setAttribute("lineCount", lineCount);
response.sendRedirect("manager/dept_table.jsp");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.EmploeDaoImpl;
import com.daoImpl.PostDaoImpl;
import com.entity.Emploe;
import com.entity.Post;
public class ManagerDeptTable_add extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
EmploeDaoImpl edi = new EmploeDaoImpl();
//適合當經理的職位架構師,列出所有適合人選
ArrayList pnameList = edi.getEmploeByPname(“架構師”);
request.getSession().setAttribute(“pnameList”, pnameList);
response.sendRedirect(“manager/dept_add.jsp”);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.*;
import com.entity.Dept;
public class ManagerDeptUpdate extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String did = request.getParameter("did");
DeptDaoImpl ddi = new DeptDaoImpl();
Dept dept = ddi.getDeptById(Integer.parseInt(did));
request.getSession().setAttribute("dept", dept);
ArrayList<Dept> deptList = ddi.getAllDept();
request.getSession().setAttribute("deptList", deptList);
response.sendRedirect("manager/dept_update.jsp");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.entity.Dept;
public class ManagerDeptUpdate_table extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String did = request.getParameter("did");
String dname = request.getParameter("dname");
String dnumber = request.getParameter("dnumber");
String daddr = request.getParameter("daddr");
String eid= request.getParameter("eid");
Dept dept = new Dept();
dept.setDid(Integer.parseInt(did));
dept.setDname(dname);
dept.setDnumber(Integer.parseInt(dnumber));
dept.setDaddr(daddr);
dept.setEid(Integer.parseInt(eid));
DeptDaoImpl ddi = new DeptDaoImpl();
boolean flag = ddi.updateDept(Integer.parseInt(did), dept);
if(flag){
response.sendRedirect("ManagerDeptTable");
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.EmploeDaoImpl;
import com.entity.Emploe;
public class ManagerEmploeAdd extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String eid =request.getParameter("eid");
String ename =request.getParameter("ename");
String esalary =request.getParameter("esalary");
String esex =request.getParameter("esex");
String ebir =request.getParameter("ebir");
String emarry =request.getParameter("emarry");
String eedu =request.getParameter("eedu");
String did =request.getParameter("did");
String pid =request.getParameter("pid");
String eaddr =request.getParameter("eaddr");
String ephone =request.getParameter("ephone");
Emploe emploe = new Emploe();
emploe.setEid(Integer.parseInt(eid));
emploe.setEname(ename);
emploe.setEsalary(esalary);
emploe.setEsex(esex);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
try {
emploe.setEbir(sdf.parse(ebir));
} catch (ParseException e) {
e.printStackTrace();
}
emploe.setEmarry(emarry);
emploe.setEedu(eedu);
emploe.setDid(Integer.parseInt(did));
emploe.setPid(Integer.parseInt(pid));
emploe.setEaddr(eaddr);
emploe.setEphone(ephone);
EmploeDaoImpl edi = new EmploeDaoImpl();
boolean flag = edi.addEmploe(emploe);
if(flag){
response.sendRedirect("EmploeTable");
}else{
response.sendRedirect("ManagerEmploeTable_add");
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.PostDaoImpl;
import com.entity.Dept;
import com.entity.Post;
public class ManagerEmploeTable_add extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
DeptDaoImpl ddi = new DeptDaoImpl();
ArrayList<Dept> deptList =ddi.getAllDept();
PostDaoImpl pdi = new PostDaoImpl();
ArrayList<Post> postList = pdi.getAllPost();
request.getSession().setAttribute("deptList", deptList);
request.getSession().setAttribute("postList", postList);
response.sendRedirect("manager/emploe_add.jsp");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.EmploeDaoImpl;
import com.daoImpl.PostDaoImpl;
import com.entity.Dept;
import com.entity.Emploe;
import com.entity.Post;
public class ManagerEmploeUpdate extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Emploe emploe =(Emploe)request.getSession().getAttribute("emploe");
String eid = request.getParameter("eid");
String ename = request.getParameter("ename");
String esalary = request.getParameter("esalary");
String esex = request.getParameter("esex");
String ebir = request.getParameter("ebir");
String emarry = request.getParameter("emarry");
String eedu = request.getParameter("eedu");
String did = request.getParameter("did");
DeptDaoImpl ddi = new DeptDaoImpl();
Dept dept = ddi.getDeptById(Integer.parseInt(did));
request.getSession().setAttribute("dept", dept);
String pid = request.getParameter("pid");
PostDaoImpl pdi = new PostDaoImpl();
Post post = pdi.getPostById(Integer.parseInt(pid));
request.getSession().setAttribute("post", post);
String ephone = request.getParameter("ephone");
String eaddr = request.getParameter("eaddr");
emploe.setEid(Integer.parseInt(eid));
emploe.setEname(ename);
emploe.setEsalary(esalary);
emploe.setEsex(esex);
SimpleDateFormat sfd = new SimpleDateFormat("yyyy-MM-dd");
try {
emploe.setEbir(sfd.parse(ebir));
} catch (ParseException e) {
e.printStackTrace();
}
emploe.setEmarry(emarry);
emploe.setEedu(eedu);
emploe.setDid(Integer.parseInt(did));
emploe.setPid(Integer.parseInt(pid));
emploe.setEphone(ephone);
emploe.setEaddr(eaddr);
EmploeDaoImpl edi = new EmploeDaoImpl();
boolean flag = edi.updateEmploe(Integer.parseInt(eid), emploe);
System.out.println("更新成功了沒");
if(flag){
System.out.println("恩");
request.getSession().setAttribute("emploe", emploe);
response.sendRedirect("EmploeDetail?eid="+eid);
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.ManagerDaoImpl;
import com.entity.Manager;
public class ManagerLogin extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType(“text/html;charset=gb2312”);
PrintWriter out = response.getWriter();
String mname = request.getParameter(“mname”);
String mpassword = request.getParameter(“mpassword”);
String code = request.getParameter(“code”);
String trueCode = (String)request.getSession().getAttribute(“code”);
ManagerDaoImpl mdi = new ManagerDaoImpl();
if(code.equalsIgnoreCase(trueCode)){
out.print("¡Ì");
int n = mdi.managerLogin(mname, mpassword);
System.out.println(n);
if(n1){
Manager manager = mdi.getMangerByName(mname);
request.getSession().setAttribute(“mname”, mname);
request.getSession().setAttribute(“manager”, manager);
response.sendRedirect(“EmploeTable”);
}else if(n2){
response.sendRedirect(“manager_login.jsp”);
}else{
response.sendRedirect(“manager_login.jsp”);
}
}else{
out.print("¡Á");
response.sendRedirect(“manager_login.jsp”);
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.ManagerDaoImpl;
import com.entity.Manager;
public class ManagerMpasswordUpdate extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Manager manager = (Manager)request.getSession().getAttribute("manager");
String mid = request.getParameter("mid");
String mpassword = request.getParameter("mpassword");
String newPsw = request.getParameter("newPsw");
String reNewPsw = request.getParameter("reNewPsw");
String code = request.getParameter("code");
String trueCode = (String)request.getSession().getAttribute("code");
if(code.equalsIgnoreCase(trueCode)){
if(newPsw.equals(reNewPsw)){
if(mid.equals(manager.getMid()+"")){
ManagerDaoImpl mdi = new ManagerDaoImpl();
int n = mdi.managerLogin(manager.getMname(), mpassword);
if(n==1){
boolean flag = mdi.mupdatePassword(Integer.parseInt(mid), newPsw);
if(flag){
response.sendRedirect("manager_login.jsp");
}
}else if(n==2){
response.sendRedirect("manager/mpassword_update.jsp");
}
}else{
response.sendRedirect("manager/mpassword_update.jsp");
}
}else{
response.sendRedirect("manager/mpassword_update.jsp");
}
}else{
response.sendRedirect("manager/mpassword_update.jsp");
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
相關文章
- 基於SSM開發的企業人事管理系統SSM
- 基於SSM開發的健身俱樂部管理系統 JAVA MySQLSSMJavaMySql
- 基於SSM開發的企業進存銷系統 JAVA MySQLSSMJavaMySql
- java 基於SSM框架開發線上音樂視訊MV管理系統JavaSSM框架
- 基於SSM的酒店管理系統畢業設計論文【範文】SSM
- 基於SSM框架的JavaWeb通用許可權管理系統SSM框架JavaWeb
- 基於SSM框架的文章管理系統(增加留言回覆功能)SSM框架
- 073基於SSM酒店管理系統(前後臺)SSM
- 基於TP3.1開發的企業網站管理系統網站
- 基於SSM的職員考勤系統SSM
- 捷徑系統-智慧物業管理,智慧物業社群,物業管理系統
- Java基於SSM框架的計算機學院管理系統(3)JavaSSM框架計算機
- 基於ssm、Vue.js的簡單教師資訊管理系統SSMVue.js
- 基於adminlte的後臺管理系統開發
- 基於Tp23開發的bug管理系統
- 基於JSP開發的物流資訊管理系統JS
- 基於JSP小區物業管理系統(論文+原始碼)JS原始碼
- 推薦一款基於nodejs+koa+vue開發的開源智慧物業系統NodeJSVue
- 基於本人開發的許可權系統開發的企業站
- thinkphp5開發的魔盒微信報修開鎖/維修工單管理系統PHP
- 基於SSM的線上考試系統畢業設計論文【範文】SSM
- 基於SSM的網上商城系統畢業設計論文【範文】SSM
- 基於 Golang 開發的分散式定時任務管理系統Golang分散式
- 基於Hyperf + Vue + Element 開發的管理系統(內建聊天模組)Vue
- 基於SSM保護隱私的遠端醫療查詢系統設計與開發SSM
- 物業管理新利器_智慧物業管理系統優勢總結
- 基於javaEE的土地檔案管理系統的設計及開發Java
- 免費開源TuziCMS基於ThinkPHP的企業網站管理系統PHP網站
- 開發了一個基於thinkphp6.0的快速開發後臺管理系統PHP
- 縱論物聯網(六):基於Linux的物聯網作業系統Linux作業系統
- 基於物聯網開發的水電站遠端管控系統方案
- ssm星級酒店管理系統SSM
- 基於 hyperf,vuetify,casbin 開發的前後端分離管理系統Vue後端
- 基於laravel及layui開發的後臺管理系統 -- laravel-wjfcmsLaravelUI
- 基於Python+Vue開發的旅遊景區管理系統PythonVue
- 基於QT的webkit與ExtJs開發CB/S結構的企業應用管理系統QTWebKitJS
- 基於SSM的線上外賣訂餐系統畢業設計論文【範文】SSM
- 中小企業基於資訊系統的存貨管理