diff --git a/.classpath b/.classpath index 652d283..a4c7696 100644 --- a/.classpath +++ b/.classpath @@ -1,17 +1,7 @@ - - - - - - - - - - - - + + diff --git a/.idea/.gitignore b/.idea/.gitignore index 5c98b42..0ed6303 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -1,2 +1,6 @@ # Default ignored files -/workspace.xml \ No newline at end of file +/workspace.xml + +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml \ No newline at end of file diff --git a/.idea/artifacts/sushe1_Web_exploded.xml b/.idea/artifacts/sushe1_Web_exploded.xml new file mode 100644 index 0000000..134d290 --- /dev/null +++ b/.idea/artifacts/sushe1_Web_exploded.xml @@ -0,0 +1,19 @@ + + + $PROJECT_DIR$/out/artifacts/sushe1_Web_exploded + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/artifacts/sushe_jar.xml b/.idea/artifacts/sushe_jar.xml new file mode 100644 index 0000000..12ce898 --- /dev/null +++ b/.idea/artifacts/sushe_jar.xml @@ -0,0 +1,9 @@ + + + $PROJECT_DIR$/out/artifacts/sushe_jar + + + + + + \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..652a769 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,20 @@ + + + + + mysql.8 + true + com.mysql.cj.jdbc.Driver + jdbc:mysql://localhost:3306/test1 + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..525bd48 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Java_EE_6_Java_EE_6.xml b/.idea/libraries/Java_EE_6_Java_EE_6.xml index 75fea5e..38ea1d4 100644 --- a/.idea/libraries/Java_EE_6_Java_EE_6.xml +++ b/.idea/libraries/Java_EE_6_Java_EE_6.xml @@ -1,17 +1,19 @@ - + - + + + \ No newline at end of file diff --git a/.idea/libraries/jar.xml b/.idea/libraries/jar.xml new file mode 100644 index 0000000..2ec63d9 --- /dev/null +++ b/.idea/libraries/jar.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/lib.xml b/.idea/libraries/lib.xml new file mode 100644 index 0000000..de1f6c8 --- /dev/null +++ b/.idea/libraries/lib.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 6de32e1..9c9b71d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - - + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 0fb9717..56a4397 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.project b/.project index c0c4c0f..75f5618 100644 --- a/.project +++ b/.project @@ -1,10 +1,15 @@ - demo + sushe + + org.eclipse.wst.jsdt.core.javascriptValidator + + + org.eclipse.jdt.core.javabuilder diff --git a/WebContent/BuildingAdd.jsp b/WebContent/BuildingAdd.jsp new file mode 100644 index 0000000..6980e25 --- /dev/null +++ b/WebContent/BuildingAdd.jsp @@ -0,0 +1,123 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> +<%@ taglib prefix="s" uri="/struts-tags"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + 高校公寓管理系统 + + + + + + + + + + 高校生活,寓你同行 + + + + + + + + + <%@ include file="Left.jsp"%> + + + + 添加楼宇 + + + + + + + + + + *请输入楼栋号: + + + + *请选择楼栋类型: + + 请选择 + 男生宿舍 + 女生宿舍 + + + + *请输入楼栋名字: + + + + *请输入楼栋宿管姓名: + + + + *请输入楼栋管理人员电话: + + + + *请输入地址: + + + + + + + + + + + + + + + + + + + + + + diff --git a/WebContent/BuildingManager.jsp b/WebContent/BuildingManager.jsp new file mode 100644 index 0000000..2f457a6 --- /dev/null +++ b/WebContent/BuildingManager.jsp @@ -0,0 +1,91 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> +<%@ taglib prefix="s" uri="/struts-tags"%> + + + + 高校公寓管理系统 + + + + + + + + + 高校生活,寓你同行 + + + + + + + + + <%@ include file="Left.jsp"%> + + + + 楼栋管理 + + + + + + + 功能导航: 添加楼栋 + 名称: + + + 楼栋名字 + 楼栋管理员名字 + 楼栋管理员电话 + 楼栋地址 + + + + + + + + + + 楼栋号 + 楼栋类型 + 楼栋名字 + 楼栋管理员名字 + 楼栋管理员电话 + 楼栋地址 + 操作 + + + + ${Building_ID} + ${Building_Type} + ${Building_Name} + ${Building_DomitoryName} + ${Building_DomitoryTel} + ${Building_Address} + + 修改 + 删除 + + + + + + + + + + + + + + + + + diff --git a/WebContent/BuildingUpdate.jsp b/WebContent/BuildingUpdate.jsp new file mode 100644 index 0000000..a8e844a --- /dev/null +++ b/WebContent/BuildingUpdate.jsp @@ -0,0 +1,120 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> +<%@ taglib prefix="s" uri="/struts-tags"%> + + + + 高校公寓管理系统 + + + + + + + + + + 高校生活,寓你同行 + + + + + + + + + <%@ include file="Left.jsp"%> + + + + 修改楼宇 + + + + + + + + + + *楼栋号: + + + + *楼栋类型: + + + + *楼栋名: + + + + *楼栋宿管人员名字: + + + + *楼栋宿管人员电话: + + + + *楼栋地址: + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WebContent/DomitoryAdd.jsp b/WebContent/DomitoryAdd.jsp new file mode 100644 index 0000000..8a60ec2 --- /dev/null +++ b/WebContent/DomitoryAdd.jsp @@ -0,0 +1,129 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> +<%@ taglib prefix="s" uri="/struts-tags"%> + + + + 高校公寓管理系统 + + + + + + + + + + 校园宿舍管理系统 + + + + + + + + + <%@ include file="Left.jsp"%> + + + + 添加寝室 + + + + + + + + + + + *楼栋: + + 请选择 + + + ${Building_Name} + + + + + + *寝室号: + + + + *寝室类型: + + 请选择 + 四人寝 + 六人寝 + 九人寝 + + + + *学生姓名: + + + + *学生电话: + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WebContent/DomitoryManager.jsp b/WebContent/DomitoryManager.jsp new file mode 100644 index 0000000..79945b2 --- /dev/null +++ b/WebContent/DomitoryManager.jsp @@ -0,0 +1,83 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> +<%@ taglib prefix="s" uri="/struts-tags"%> + + + + 高校公寓管理系统 + + + + + + + + + 高校生活,寓你同行 + + + + + + + + + <%@ include file="Left.jsp"%> + + + + 宿舍管理 + + + + + + 功能导航: + 查询: + + 学生姓名 + 寝室号 + 电话 + + + + + + + + + 楼栋号 + 寝室号 + 寝室类型 + 学生姓名 + 电话 + 操作 + + + + ${Domitory_BuildingID} + ${Domitory_Number} + ${Domitory_Type} + ${Domitory_StudentName} + ${Domitory_StudentTel} + 修改 + 删除 + + + + + + + + + + + + + + + + diff --git a/WebContent/DomitoryUpdate.jsp b/WebContent/DomitoryUpdate.jsp new file mode 100644 index 0000000..5185d8c --- /dev/null +++ b/WebContent/DomitoryUpdate.jsp @@ -0,0 +1,127 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> +<%@ taglib prefix="s" uri="/struts-tags"%> + + + + 高校公寓管理系统 + + + + + + + + + + 高校生活,寓你同行 + + + + + + + + + <%@ include file="Left.jsp"%> + + + + 修改宿舍 + + + + + + + + + + *楼栋: + + 请选择 + 学生宿舍1栋 + 学生宿舍2栋 + 学生宿舍3栋 + 学生宿舍4栋 + + + + *学生姓名: + + + + *寝室类型: + + 请选择 + 四人寝 + 六人寝 + 九人寝 + + + + *宿舍号: + + + + *学生电话: + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WebContent/Electric.jsp b/WebContent/Electric.jsp index 594360a..321c3b7 100644 --- a/WebContent/Electric.jsp +++ b/WebContent/Electric.jsp @@ -1,59 +1,87 @@ -<%@ page import="java.util.Date" %> -<%@ page import="java.text.SimpleDateFormat" %><%-- +<%-- Created by IntelliJ IDEA. - User: Vie - Date: 2019/10/24 - Time: 15:25 + User: ASUS + Date: 2020/1/4 + Time: 12:06 To change this template use File | Settings | File Templates. --%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> +<%@ taglib prefix="s" uri="/struts-tags"%> + - - 电费使用情况 - - - 欢迎你,<%=request.getParameter("Username")%> - - - - 高校公寓管理系统 - - - - - - - - - <%@ include file="StudentLeft.jsp"%> - - - - - - - - - - - + + 高校公寓管理系统 + + + + + + + + + + 高校生活,寓你同行 + + + + + + + + + <%@ include file="Left.jsp"%> + + + + 电费使用情况 + + + + + + 功能导航: + 查询: + + 寝室号 + + + + + + + + + + + 电费编号 + 宿舍号 + 电费余额 + 操作 + + + + + ${Electric_ID} + ${Electric_Dormitory_Number} + ${Electric_Residual} + 修改 + + + + + + + + - - - <%!Date time= new Date();%> - <% - SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒"); - %> - <% out.println(sdf1.format(time)); %> - - - + + + +