学生宿舍电量管理系统

目录

学生宿舍电量管理系统 1

需求分析 1

系统设计的目的和意义 1

数据字典 1

数据项 1

数据结构 2

数据流 3

数据存储 4

处理过程 5

功能分析 6

功能流程图 6

普通用户 6

管理员 7

概念结构设计 7

逻辑结构设计 7

物理结构设计 8

宿舍楼表 8

宿舍表 8

用电量表 8

学生表 8

普通用户表 8

管理员表 9

系统实现 9

普通用户 9

管理员 12

功能分析

功能流程图

Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_宿舍电量管理系统

普通用户

注册:通过用户注册页面用学号、密码注册一个新的账户,来使用此系统。

登录:通过学号、密码登录此系统。

查询:通过搜索指定的栋号、宿舍号、年份、月份,能够查询到每月对应的用电度数和用电费用。

交费:在交费页面中输入相应金额后可进行模拟交费。

修改密码:为了提高密码安全性,用户能够进行密码的修改。

管理员

注册:通过管理员注册页面用工号、用户名、密码注册管理员账号。

登录:通过工号、密码登录后使用管理学生信息功能。

查询

o学生页面:通过学号、栋号、宿舍号查询学生的具体信息。

o宿舍楼页面:通过栋号查询宿舍楼具体信息。

o宿舍页面:通过栋号、宿舍号查询宿舍具体信息。

修改:管理员能修改学生的某些信息。

添加:添加一条学生记录。

删除:删除一条学生记录。

概念结构设计

确定实体、实体的属性、实体之间的联系。

Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_毕业设计_02

逻辑结构设计
宿舍楼(栋号,楼层数,房间数,可住人数,实住人数)
宿舍(栋号,宿舍号,可住人数,实住人数,居住性别,欠费总额)
学生(学号,姓名,性别,年龄,系别,专业,栋号,宿舍号,手机号)
用电量(栋号,宿舍号,年份,月份,用电度数,用电费用)
普通用户(学号,普通用户密码)
管理员(管理员号,管理员用户名,管理员密码)
物理结构设计http://www.biyezuopin.vip/onews.asp?id=16968
宿舍楼表
create table floor ( fid varchar(2) not null , flevel varchar(2) not null , froom int not null , fexcept int not null , freal int not null , primary key(fid) );
宿舍表
create table dorm ( fid varchar(2) not null , did varchar(4) not null , dexcept int not null , dreal int not null , dsex varchar(2) not null , dmoney double not null , primary key (fid, did), foreign key (fid) references floor (fid));
用电量表
create table ele ( fid varchar(2) not null , did varchar(4) not null , year varchar(4) not null , month varchar(2) not null , electric varchar(4) not null , fare double not null , primary key (fid,did, year, month), foreign key (fid, did) references dorm (fid, did)😉;
学生表
create table stu ( stuid varchar(13) not null , name varchar(10) not null , sex varchar(2) not null , age int not null , depart varchar(20) not null , major varchar(20) not null , phone varchar(11) not null , fid varchar(2) not null , did varchar(4) not null , primary key (stuid)); create trigger tri1 after inster on stufor each row beginupdate floor set freal=(freal+1) where fid=new.fid;update dormset dreal=(dreal+1) where fid=new.fid and did=new.did; end;
普通用户表
create table user ( stuid varchar(13) not null , password varchar(20) not null , primary key (stuid));
管理员表
create table root ( rid varchar(20) not null , rname varchar(10) not null , rpassword varchar(20) not null , primary key (rid));
系统实现
部分功能界面展示
普通用户
注册

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>学生宿舍电量管理系统主界面</title>

<link rel="stylesheet" type="text/css" href="jquery-easyui-1.3.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="jquery-easyui-1.3.3/themes/icon.css">
<script type="text/javascript" src="jquery-easyui-1.3.3/jquery.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	$(function(){
		// 数据
		var treeData=[{
			text:"用户",
			children:[{
				text:"电量信息管理",
				attributes:{
					url:"electric.jsp"
				}
			}]
		}];
		
		// 实例化树菜单
		$("#tree").tree({
			data:treeData,
			lines:true,
			onClick:function(node){
				if(node.attributes){
					openTab(node.text,node.attributes.url);
				}
			}
		});
		
		// 新增Tab
		function openTab(text,url){
			if($("#tabs").tabs('exists',text)){
				$("#tabs").tabs('select',text);
			}else{
				var content="<iframe frameborder='0' scrolling='auto' style='width:100%;height:100%' src="+url+"></iframe>";
				$("#tabs").tabs('add',{
					title:text,
					closable:true,
					content:content
				});
			}
		}
	});
</script>
</head>
<body class="easyui-layout">

	<div region="north" style="height: 80px">
		<table border="0" width="1100px" height="80px" style="margin-left:40px"> 
			<tr> 
				<td width="100px"><img src="images/1.jpg" width="70px" height="70px"></td> 
				<td width="800px"><font size="10px">学生宿舍电量管理系统</font></td> 
			</tr>
		</table>  		
	</div>
	
	<div region="center">
		<div class="easyui-tabs" fit="true" border="false" id="tabs">
			<div title="首页" >
				<div align="center" style="padding-top: 100px;"><font color="red" size="10">欢迎使用本系统^_^</font></div>
			</div>
		</div>
	</div>
	
	<div region="west" style="width: 200px;" title="导航菜单" split="true">
		<ul id="tree"></ul>
	</div>	
	
	<div region="south" style="height:100px" title="基本信息" split="true" align="center">
		<table border="0" width="800px" style="margin-top:20px; align:center">
			<tr>
				<td style="heigth:40px; width:30px"><font size="4">当前用户:</font></td>  
				<td style="width:60px"><font size="4" color="red"><b>${currentUser.name }</b></font></td>
			
				<td style="heigth:40px; width:30px"><font size="4">所在宿舍:</font></td>
				<td style="width:60px"><font size="4" color="red"><b>${currentUser.fid }${currentUser.did }</b></font></td>
			
				<td style="heigth:40px; width:30px"><font size="4">欠费总额:</font></td>
				<td style="width:60px"><font size="4" color="red"><b>${currentUser.dmoney }元</b></font></td> 
			</tr>
		</table>
	</div>
	
</body>
</html>

Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_毕业设计_03


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_Web_04


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_宿舍电量管理系统_05


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_Java_06


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_学生宿舍电量管理_07


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_宿舍电量管理系统_08


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_Web_09


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_毕业设计_10


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_Web_11


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_Web_12


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_学生宿舍电量管理_13


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_Java_14


Java编写程序实现梯度电费计算并计算用户的月消费电量为60度160度360度56 基于java的用电量分析_毕业设计_15