Commit 6ecd7585 authored by 史余彬's avatar 史余彬

环境监测数据查询调整

parent 14c7d162
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="lib" level="project" />
</component>
</module>
\ No newline at end of file
......@@ -20,7 +20,7 @@
<property name="dataSource">
<bean class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="org.postgresql.Driver"></property>
<property name="url" value="jdbc:postgresql://192.168.3.220:5432/MineSIX"></property>
<property name="url" value="jdbc:postgresql://192.168.100.220:5432/MineSIX_test1"></property>
<property name="username" value="postgres"></property>
<property name="password" value="red___"></property>
</bean>
......
......@@ -20,7 +20,7 @@
<property name="dataSource">
<bean class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="org.postgresql.Driver"></property>
<property name="url" value="jdbc:postgresql://localhost:5432/MineSIX"></property>
<property name="url" value="jdbc:postgresql://localhost:5432/MineSIX_test1"></property>
<property name="username" value="postgres"></property>
<property name="password" value="red___"></property>
</bean>
......
portto=5433
ip=127.0.0.1
url=jdbc:postgresql://192.168.3.220:5432/MineSIX
url=jdbc:postgresql://192.168.100.220:5432/MineSIX_test1
password=red___
......@@ -11,7 +11,7 @@
org.hibernate.dialect.PostgreSQLDialect
</property>
<property name="connection.url">
jdbc:postgresql://192.168.3.220:5432/MineSIX
jdbc:postgresql://192.168.100.220:5432/MineSIX_test1
</property>
<property name="connection.username">postgres</property>
<property name="connection.password">red___</property>
......
<script type="text/javascript" charset="utf-8">
window.location.href="http://192.168.3.220:8080/MineJSON/allcount.jsp"
window.location.href="http://192.168.1.3:8081/MineJSON/allcount.jsp"
// window.location.href="http://192.168.3.220:8082/MineJSON/allcount.jsp"
// window.location.href="http://192.168.1.8:8082/MineJSON/allcount.jsp"
// window.location.href="http://localhost:8080/MineTT/allcount.jsp"
</script>
......@@ -156,7 +156,7 @@
// + timeSe, null, function(obj) {
$
.getJSON(
'http://192.168.3.220:8080/MineJSON/vzigbee.action?type=8&param='
'http://192.168.1.3:8081/MineJSON/vzigbee.action?type=8&param='
+ rowData.personcode
+ '-'
+ (Date.parse(new Date(
......
<script type="text/javascript" charset="utf-8">
window.location.href="http://192.168.3.220:8080/MineEM/tubiao/co2jiance.jsp"
window.location.href="http://192.168.1.3:8081/MineEM/tubiao/co2jiance.jsp"
</script>
<script type="text/javascript" charset="utf-8">
window.location.href="http://192.168.3.220:8080/MineEM/tubiao/cojiance.jsp"
window.location.href="http://192.168.1.3:8081/MineEM/tubiao/cojiance.jsp"
</script>
<script type="text/javascript" charset="utf-8">
window.location.href="http://192.168.3.220:8080/MineEM/tubiao/fengsu.jsp"
window.location.href="http://192.168.1.3:8081/MineEM/tubiao/fengsu.jsp"
//window.location.href="http://localhost:8080/MineTRS/tubiao/fengsu.jsp"
</script>
<script type="text/javascript" charset="utf-8">
window.location.href="http://192.168.3.220:8080/MineEM/tubiao/fengya.jsp"
window.location.href="http://192.168.1.3:8081/MineEM/tubiao/fengya.jsp"
//window.location.href="http://localhost:8080/MineTRS/tubiao/fengya.jsp"
</script>
<script type="text/javascript" charset="utf-8">
window.location.href="http://192.168.3.220:8080/MineEM/tubiao/no2jiance.jsp"
window.location.href="http://192.168.1.3:8081/MineEM/tubiao/no2jiance.jsp"
</script>
<script type="text/javascript" charset="utf-8">
window.location.href="http://192.168.3.220:8080/MineEM/tubiao/o2jiance.jsp"
window.location.href="http://192.168.1.3:8081/MineEM/tubiao/o2jiance.jsp"
</script>
<%@ page language="java" pageEncoding="gb2312"%>
<!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=gb2312" />
<title>大屏显示</title>
<style type="text/css">
</style>
<link rel="stylesheet" type="text/css" href="../themes/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../themes/icon.css">
<script type="text/javascript" src="../js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="../js/highcharts.js"></script>
<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
<script>
/**
* 表格数据初始化
*/
function initpolygon1(polygon,title,value1,name) {
$('#'+polygon).highcharts({
chart: {
type: 'gauge',
plotBorderWidth: 1,
plotBackgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0, '#FFF4C6'],
[0.3, '#FFFFFF'],
[1, '#FFF4C6']
]
},
plotBackgroundImage: null,
height: 450
},
title: {
text: name+'号传感器实时温度图'
},
pane: [{
startAngle: -45,
endAngle: 45,
background: null,
center: ['50%', '70%'],
size: 300
}],
yAxis: [{
min: 0,
max: 85,
minorTickPosition: 'outside',
tickPosition: 'outside',
labels: {
rotation: 'auto',
distance: 20
},
plotBands: [{
innerRadius: '100%',
outerRadius: '105%'
}],
pane: 0,
title: {
text: '<span style="font-size:8px">温度 '+value1.toFixed(2)+'</span><br/>℃',
y: -40
}
}],
tooltip: {
enabled: true,
formatter: function () {
return '温度:' +value1.toFixed(2)+''
}
},
plotOptions: {
gauge: {
dataLabels: {
enabled: false
},
dial: {
radius: '100%'
}
}
},
series: [{
data: [value1]
}]
},
function(chart) {
setInterval(function() {
var left = chart.series[0].points[0],
leftVal,
inc = (Math.random() - 0.5) * 3;
leftVal = left.y + inc;
if (leftVal < -20 || leftVal > 20) {
leftVal = left.y - inc;
}
chart.redraw();
}, 700);
});
}
// 页面加载初始化
$(function() {
$.ajax({
url: "http://192.168.1.3:8080/MineTT/online!EnvironmentRealTimeData.do?token=laowangzhuanyong",
type: "get",
dataType:"jsonp",//请求的数据类型
success: function(data) {
console.log(data)
}
})
for (var i = 0 ; i < 10 ; i++) {
$("#wd").append("<div style='width: 400px; height: 200px; float: left;margin-top: 20px; margin-left: 20px; border:1px solid #5896f3'></div>")
}
})
</script>
</head>
<body>
<div id="tt" class="easyui-tabs" style="width:auto;height:auto;">
<div id="wd" title="温度" style="padding:20px;">
</div>
<div title="湿度" data-options="closable:true" style="overflow:auto;padding:20px;display:none;">
湿度
</div>
<div title="风速" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
风速
</div>
<div title="压力" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
压力
</div>
<div title="一氧化碳" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
一氧化碳
</div>
<div title="二氧化碳" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
二氧化碳
</div>
<div title="氧气" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
氧气
</div>
</div>
</body>
</html>
......@@ -417,9 +417,9 @@
} ,
success : function(date) { //etoak - 服务器返回的响应数据
if (date.flag) {
// Dialog.alert("解除成功",function(){window.location.href="http://192.168.3.220:8080/MineEM/tubiao/fengsu.jsp";});
// Dialog.alert("解除成功",function(){window.location.href="http://192.168.1.3:8081/MineEM/tubiao/fengsu.jsp";});
//$("#msgbox").hide();
// window.location.href="http://192.168.3.220:8081/MineEM/tubiao/fengsu.jsp"
// window.location.href="http://192.168.1.8:8081/MineEM/tubiao/fengsu.jsp"
$('#polygon1').datagrid('reload'); // 重新加载数据
} else {
alert("非报警状态,不能解除");
......
......@@ -410,7 +410,7 @@
success : function(date) { //etoak - 服务器返回的响应数据
if (date.flag) {
Dialog.alert("解除成功",function(){window.location.href="http://192.168.1.5:8080/MineEM/tubiao/fengya.jsp";});
Dialog.alert("解除成功",function(){window.location.href="http://192.168.1.3:8081/MineEM/tubiao/fengya.jsp";});
//$("#msgbox").hide();
} else {
......
......@@ -410,7 +410,7 @@
success : function(date) { //etoak - 服务器返回的响应数据
if (date.flag) {
Dialog.alert("解除成功",function(){window.location.href="http://192.168.1.5:8080/MineEM/tubiao/fengya.jsp";});
Dialog.alert("解除成功",function(){window.location.href="http://192.168.1.3:8081/MineEM/tubiao/fengya.jsp";});
//$("#msgbox").hide();
} else {
......
......@@ -408,7 +408,7 @@
success : function(date) { //etoak - 服务器返回的响应数据
if (date.flag) {
Dialog.alert("解除成功",function(){window.location.href="http://192.168.1.5:8080/MineEM/tubiao/fengya.jsp";});
Dialog.alert("解除成功",function(){window.location.href="http://192.168.1.3:8081/MineEM/tubiao/fengya.jsp";});
//$("#msgbox").hide();
} else {
......
<?xml version="1.0" encoding="UTF-8"?>
<Struts2Diagram version="2.0">
<package name="gemho" location="50,50" size="170,7671">
<action name="login" location="10,20" size="150,62">
<result name="success">
<resourceEdge source="success" routing="0" target="index.jsp" />
</result>
<result name="input">
<resourceEdge source="input" routing="0" target="login.jsp" />
</result>
</action>
<action name="logout" location="10,120" size="150,41">
<result name="logoutSuccess">
<resourceEdge source="logoutSuccess" routing="0" target="login.jsp" />
</result>
</action>
<action name="addRoleSelectPers" location="10,220" size="150,41">
<result name="success" />
</action>
<action name="roleAdd" location="10,320" size="150,41">
<result name="success">
<resourceEdge source="success" routing="0" target="refresh.jsp" />
</result>
</action>
<action name="addUser" location="10,420" size="150,62">
<result name="success">
<resourceEdge source="success" routing="0" target="refresh.jsp" />
</result>
<result name="input">
<resourceEdge source="input" routing="0" target="addUser.jsp" />
</result>
</action>
<action name="addUserSelectRole" location="10,520" size="150,41">
<result name="success" />
</action>
<action name="SelectUser" location="10,620" size="150,41">
<result name="success" />
</action>
<action name="deleteUser" location="10,720" size="150,41">
<result name="success" />
</action>
<action name="uploadUser" location="10,820" size="150,41">
<result name="success" />
</action>
<action name="updateUser" location="10,920" size="150,41">
<result name="success">
<resourceEdge source="success" routing="0" target="refresh.jsp" />
</result>
</action>
<action name="uploadRole" location="10,1020" size="150,41">
<result name="success">
<resourceEdge source="success" routing="0" target="updateRole.jsp" />
</result>
</action>
<action name="updateRole" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="refresh.jsp" />
</result>
</action>
<action name="SelectRole" location="10,1120" size="150,41">
<result name="success" />
</action>
<action name="deleteRole" location="10,1220" size="150,41">
<result name="success" />
</action>
<action name="ShenliuliangHistory" location="10,1320" size="150,41">
<result name="success" />
</action>
<action name="ShenliuliangHistory1" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="ShenliuliangHistoryFB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="ShenliuliangHistory1FB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="SelectMarkOption" location="10,1420" size="150,41">
<result name="success" />
</action>
<action name="SelectMarkOptionx" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="ShenliuliangExcel" location="10,1520" size="150,41" />
<action name="ShenliuliangExcel1" location="0,0" size="0,0" />
<action name="JinrunxianExcel" location="10,1620" size="150,41" />
<action name="JinrunxianExcel1" location="0,0" size="0,0" />
<action name="JinrunxianExcelFB" location="0,0" size="0,0" />
<action name="JinrunxianExcel1FB" location="0,0" size="0,0" />
<action name="KushuiweiExcel" location="10,1720" size="150,41" />
<action name="KushuiweiExcel1" location="0,0" size="0,0" />
<action name="JiangyuliangExcel" location="10,1820" size="150,41" />
<action name="JiangyuliangExcel1" location="0,0" size="0,0" />
<action name="BatidibiaoweiyiExcel" location="10,1920" size="150,41" />
<action name="BatidibiaoweiyiExcel1" location="0,0" size="0,0" />
<action name="BatidibiaochenjiangExcel" location="0,0" size="0,0" />
<action name="BatidibiaochenjiangExcel1" location="0,0" size="0,0" />
<action name="BatineibushuipingweiyiExcel" location="10,2020" size="150,41" />
<action name="BatineibushuipingweiyiExcel1" location="0,0" size="0,0" />
<action name="AnpoweiyiExcel" location="0,0" size="0,0" />
<action name="AnpoweiyiExcel1" location="0,0" size="0,0" />
<action name="AnpoweiyiExcelFB" location="0,0" size="0,0" />
<action name="AnpoweiyiExcel1FB" location="0,0" size="0,0" />
<action name="NeibuchenjiangExcel" location="10,2120" size="150,41" />
<action name="NeibuchenjiangExcel1" location="0,0" size="0,0" />
<action name="NeibuchenjiangExcelFB" location="0,0" size="0,0" />
<action name="NeibuchenjiangExcel1FB" location="0,0" size="0,0" />
<action name="NeibucexieExcel" location="10,2220" size="150,41" />
<action name="NeibucexieExcel1" location="0,0" size="0,0" />
<action name="NeibucexieExcelFB" location="0,0" size="0,0" />
<action name="NeibucexieExcel1FB" location="0,0" size="0,0" />
<action name="GantanExcel" location="10,2320" size="150,41" />
<action name="SelectMessage" location="10,2420" size="150,41">
<result name="success" />
</action>
<action name="addMessage" location="10,2520" size="150,62">
<result name="success">
<resourceEdge source="success" routing="0" target="refresh.jsp" />
</result>
<result name="input">
<resourceEdge source="input" routing="0" target="addMessage.jsp" />
</result>
</action>
<action name="deleteMessage" location="10,2620" size="150,41">
<result name="success" />
</action>
<action name="uploadMessage" location="10,2720" size="150,41">
<result name="success" />
</action>
<action name="UpdateMessage1" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="refresh.jsp" />
</result>
<result name="input">
<resourceEdge source="input" routing="0" target="updataMessage.jsp" />
</result>
</action>
<action name="SelectYujingjibie" location="10,2820" size="150,41">
<result name="success" />
</action>
<action name="uploadate" location="10,2920" size="150,41">
<result name="success" />
</action>
<action name="updateyujing" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="YujingchuliHistory" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="YujingchuliOption" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="YujingchuliExcel" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="jinrunxianTB" location="10,3020" size="150,41">
<result name="success" />
</action>
<action name="jinrunxianTBLS" location="10,3120" size="150,41">
<result name="success" />
</action>
<action name="jinrunxianTBFB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="jinrunxianTBLSFB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="JCjinrunxian" location="10,3220" size="150,41">
<result name="success" />
</action>
<action name="jinrunxianXX" location="10,3320" size="150,41">
<result name="success" />
</action>
<action name="shenliuliangTB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="shenliuliangTBLS" location="10,3420" size="150,41">
<result name="success" />
</action>
<action name="JCshenliuliang" location="10,3520" size="150,41">
<result name="success" />
</action>
<action name="shenliuliangXX" location="10,3620" size="150,41">
<result name="success" />
</action>
<action name="shenliuliangXXAll" location="10,3720" size="150,41">
<result name="success" />
</action>
<action name="shujufenye" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="shujufenyeTwoAndFour" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="jiangyuliangTB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="jiangyuliangTBLS" location="10,3820" size="150,41">
<result name="success" />
</action>
<action name="JCjiangyuliang" location="10,3920" size="150,41">
<result name="success" />
</action>
<action name="jiangyuliangXX" location="10,4020" size="150,41">
<result name="success" />
</action>
<action name="jiangyuliangXXAll" location="10,4120" size="150,41">
<result name="success" />
</action>
<action name="kushuiweiTB" location="10,4220" size="150,41">
<result name="success" />
</action>
<action name="kushuiweiTBLS" location="10,4320" size="150,41">
<result name="success" />
</action>
<action name="JCkushuiwei" location="10,4420" size="150,41">
<result name="success" />
</action>
<action name="kushuiweiXX" location="10,4520" size="150,41">
<result name="success" />
</action>
<action name="shuizhijianceTBLS" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="neibuchenjiangTB" location="10,4620" size="150,41">
<result name="success" />
</action>
<action name="neibuchenjiangTBLS" location="10,4720" size="150,41">
<result name="success" />
</action>
<action name="JCneibuchenjiang" location="10,4820" size="150,41">
<result name="success" />
</action>
<action name="neibuchenjiangXX" location="10,4920" size="150,41">
<result name="success" />
</action>
<action name="shuipingweiyiTB" location="10,5020" size="150,41">
<result name="success" />
</action>
<action name="shuipingweiyiTBLS" location="10,5120" size="150,41">
<result name="success" />
</action>
<action name="JCshuipingweiyi" location="10,5220" size="150,41">
<result name="success" />
</action>
<action name="shuipingweiyiXX" location="10,5320" size="150,41">
<result name="success" />
</action>
<action name="batibianxingTB" location="10,5420" size="150,41">
<result name="success" />
</action>
<action name="batibianxingTBLS" location="10,5520" size="150,41">
<result name="success" />
</action>
<action name="JCbatibianxing" location="10,5620" size="150,41">
<result name="success" />
</action>
<action name="batibianxingXX" location="10,5720" size="150,41">
<result name="success" />
</action>
<action name="batibianxingXXAll" location="10,5820" size="150,41">
<result name="success" />
</action>
<action name="batidibiaoweiyiTB" location="10,5920" size="150,41">
<result name="success" />
</action>
<action name="batidibiaoweiyiTB1" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="batidibiaoweiyiTBLS" location="10,6020" size="150,41">
<result name="success" />
</action>
<action name="batidibiaoweiyiTBLS1" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="JCbatidibiaoweiyi" location="10,6120" size="150,41">
<result name="success" />
</action>
<action name="batidibiaoweiyiXX" location="10,6220" size="150,41">
<result name="success" />
</action>
<action name="batidibiaochenjiang" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="batidibiaochenjiangLS" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="JCbatidibiaochenjiang" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="batidibiaochenjiangXX" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="anpoweiyiTB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="anpoweiyiTBLS" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="anpoweiyiTBFB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="anpoweiyiTBLSFB" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="JCanpoweiyi" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="anpoweiyiXX" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="gantanTB" location="10,6320" size="150,41">
<result name="success" />
</action>
<action name="gantanTBLS" location="10,6420" size="150,41">
<result name="success" />
</action>
<action name="JCgantan" location="10,6520" size="150,41">
<result name="success" />
</action>
<action name="BJgantanTB" location="10,6620" size="150,41">
<result name="success" />
</action>
<action name="gantanx" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="jinrunxianCGQ" location="10,6720" size="150,41">
<result name="success" />
</action>
<action name="shenliuliangCGQ" location="10,6820" size="150,41">
<result name="success" />
</action>
<action name="kushuiweiCGQ" location="10,6920" size="150,41">
<result name="success" />
</action>
<action name="jiangyuliangCGQ" location="10,7020" size="150,41">
<result name="success" />
</action>
<action name="neibuchenjiangCGQ" location="10,7120" size="150,41">
<result name="success" />
</action>
<action name="shuipingweiyiCGQ" location="10,7220" size="150,41">
<result name="success" />
</action>
<action name="batidibiaoweiyiCGQ" location="10,7320" size="150,41">
<result name="success" />
</action>
<action name="batidibiaoweiyiCGQ1" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="batibianxingCGQ" location="10,7420" size="150,41">
<result name="success" />
</action>
<action name="gantanweiyiCGQ" location="10,7520" size="150,41">
<result name="success" />
</action>
<action name="biaomianshuxiangweiyiCGQ" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="biaomianshuxiangweiyiCGQ1" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="anpoweiyiCGQ" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="dongtaijianceTP" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="shuaxin" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="lg" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="config.jsp" />
</result>
<result name="false">
<resourceEdge source="false" routing="0" target="lg.jsp" />
</result>
</action>
<action name="configadd" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="config.jsp" />
</result>
</action>
<action name="configdel" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="config.jsp" />
</result>
</action>
<action name="loadsensor" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="uploadSensor" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="updateSensor" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="refresh.jsp" />
</result>
</action>
<action name="addDizhi" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="load.jsp" />
</result>
</action>
<action name="loadLinshi" location="0,0" size="0,0">
<result name="success" />
</action>
<action name="del" location="0,0" size="0,0">
<result name="success">
<resourceEdge source="success" routing="0" target="load.jsp" />
</result>
</action>
<action name="jiamigou" location="0,0" size="0,0">
<result name="success" />
</action>
</package>
<webResource name="index.jsp" path="/index.jsp" location="350,50" size="150,55" />
<webResource name="login.jsp" path="/login.jsp" location="500,50" size="150,55" />
<webResource name="refresh.jsp" path="../refresh.jsp" location="50,200" size="150,55" />
<webResource name="addUser.jsp" path="/role/addUser.jsp" location="200,200" size="150,55" />
<webResource name="addMessage.jsp" path="/yujing/addMessage.jsp" location="350,200" size="150,55" />
<webResource name="updataMessage.jsp" path="/yujing/updataMessage.jsp" location="0,0" size="0,0" />
<webResource name="updateRole.jsp" path="/role/updateRole.jsp" location="0,0" size="0,0" />
<webResource name="config.jsp" path="config.jsp" location="0,0" size="0,0" />
<webResource name="load.jsp" path="load.jsp" location="0,0" size="0,0" />
<webResource name="refresh.jsp" path="refresh.jsp" location="0,0" size="0,0" />
<webResource name="lg.jsp" path="lg.jsp" location="0,0" size="0,0" />
</Struts2Diagram>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabAlarmlog" table="tab_alarmlog" schema="public">
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="username" type="java.lang.String">
<column name="username">
<comment>20</comment>
</column>
</property>
<property name="reason" type="java.lang.String">
<column name="reason" length="200">
<comment>解除报警理由</comment>
</column>
</property>
<property name="jiechutime" type="java.sql.Timestamp">
<column name="jiechutime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname" length="20">
<comment>传感器名称</comment>
</column>
</property>
<property name="zkname" type="java.lang.String">
<column name="zkname" length="20">
<comment>钻孔名称</comment>
</column>
</property>
<property name="kind" type="java.lang.String">
<column name="kind" length="20">
<comment>传感器类型</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabAlarmtype" table="tab_alarmtype" schema="public">
<id name="alarmtype" type="java.lang.String">
<column name="alarmtype" length="50" />
<generator class="increment" />
</id>
<property name="yuliu1" type="java.lang.String">
<column name="yuliu1" />
</property>
<property name="yuliu2" type="java.lang.String">
<column name="yuliu2" />
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabAnpoweiyi" table="tab_anpoweiyi" schema="public">
<comment>坝体岸坡位移</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="35">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>得到的原始值</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>转换后的值(/39.2)毫米</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment>差值</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabBatidibiaochenjiang" table="tab_batidibiaochenjiang" schema="public">
<comment>坝体地表沉降</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>所属钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.Integer">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>传感器数据</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>计算出的沉降值</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment>与上一次的沉降变化量</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否可见</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabBatidibiaoweiyi" table="tab_batidibiaoweiyi" schema="public">
<comment>坝体地表位移</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>所属钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>监测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.Integer">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="lengtha" type="java.lang.Double">
<column name="lengtha" precision="17" scale="17">
<comment>A原始值(1/10毫米)</comment>
</column>
</property>
<property name="lenghtb" type="java.lang.Double">
<column name="lenghtb" precision="17" scale="17">
<comment>B原始值</comment>
</column>
</property>
<property name="curx" type="java.lang.Double">
<column name="curx" precision="17" scale="17">
<comment>当前点X坐标</comment>
</column>
</property>
<property name="cury" type="java.lang.Double">
<column name="cury" precision="17" scale="17">
<comment>当前点Y坐标</comment>
</column>
</property>
<property name="curz" type="java.lang.Double">
<column name="curz" precision="17" scale="17">
<comment>当前点Z坐标</comment>
</column>
</property>
<property name="disx" type="java.lang.Double">
<column name="disx" precision="17" scale="17">
<comment>X变化量</comment>
</column>
</property>
<property name="disy" type="java.lang.Double">
<column name="disy" precision="17" scale="17">
<comment>Y变化量</comment>
</column>
</property>
<property name="disz" type="java.lang.Double">
<column name="disz" precision="17" scale="17">
<comment>Z变化量</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabBatineibubianxing" table="tab_batineibubianxing" schema="public">
<comment>坝体内部变形</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="fangweiangle" type="java.lang.Double">
<column name="fangweiangle" precision="17" scale="17">
<comment>方位角</comment>
</column>
</property>
<property name="qingjiao" type="java.lang.Double">
<column name="qingjiao" precision="17" scale="17">
<comment>倾角</comment>
</column>
</property>
<property name="fangweibianhualiang" type="java.lang.Double">
<column name="fangweibianhualiang" precision="17" scale="17">
<comment>方位角变化量</comment>
</column>
</property>
<property name="qingjiaobianhualiang" type="java.lang.Double">
<column name="qingjiaobianhualiang" precision="17" scale="17">
<comment>倾角变化量</comment>
</column>
</property>
<property name="ifstart" type="java.lang.String">
<column name="ifstart">
<comment>是否起始,1为起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.String">
<column name="ifview">
<comment>是否显示,1为显示,0为不显示</comment>
</column>
</property>
<property name="qingjiaobei" type="java.lang.Double">
<column name="qingjiaobei" precision="17" scale="17">
<comment>正北方向剖面的倾角</comment>
</column>
</property>
<property name="qingjiaodong" type="java.lang.Double">
<column name="qingjiaodong" precision="17" scale="17">
<comment>正东方向上的剖面 的倾角</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabDuankou" table="tab_duankou" schema="public">
<comment>端口设置</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="maincom" type="java.lang.String">
<column name="maincom">
<comment>主端口(设备端口)</comment>
</column>
</property>
<property name="messagecom" type="java.lang.String">
<column name="messagecom">
<comment>短信猫端口</comment>
</column>
</property>
<property name="baojingcom" type="java.lang.String">
<column name="baojingcom">
<comment>报警器端口号</comment>
</column>
</property>
<property name="adduser" type="java.lang.String">
<column name="adduser" />
</property>
<property name="addtime" type="java.sql.Timestamp">
<column name="addtime" length="29" />
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabFengsu" table="tab_fengsu" schema="public">
<comment>风速检测量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>气体含量</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabFengya" table="tab_yali" schema="public">
<comment>压力检测量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>气体含量</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabGantanshujubiao" table="tab_gantanshujubiao" schema="public">
<comment>干滩数据初始值表</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zongzhouweizhi" type="java.lang.String">
<column name="zongzhouweizhi">
<comment>纵轴位置显示值</comment>
</column>
</property>
<property name="tandingchushiz" type="java.lang.String">
<column name="tandingchushiz">
<comment>干滩顶部Z坐标值或者xyz值</comment>
</column>
</property>
<property name="shuimianchushiz" type="java.lang.String">
<column name="shuimianchushiz">
<comment>水面Z值</comment>
</column>
</property>
<property name="gantanchushixiechang" type="java.lang.String">
<column name="gantanchushixiechang">
<comment>干滩初始斜长值</comment>
</column>
</property>
<property name="bjzhi" type="java.lang.String">
<column name="bjzhi">
<comment>报警值</comment>
</column>
</property>
<property name="bujiluzhi" type="java.lang.String">
<column name="bujiluzhi">
<comment>不记录值</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabGantanweiyi" table="tab_gantanweiyi" schema="public">
<comment>干滩位移</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="gantanid" type="java.lang.String">
<column name="gantanid">
<comment>对应的干滩表的ID</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="ifstart" type="java.lang.String">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.String">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="gantan" type="java.lang.String">
<column name="gantan">
<comment>干滩长</comment>
</column>
</property>
<property name="bagao" type="java.lang.String">
<column name="bagao">
<comment>坝高</comment>
</column>
</property>
<property name="podu" type="java.lang.String">
<column name="podu">
<comment>坡度</comment>
</column>
</property>
<property name="gantanbianhualiang" type="java.lang.String">
<column name="gantanbianhualiang">
<comment>干滩长变化量</comment>
</column>
</property>
<property name="bagaobianhualang" type="java.lang.String">
<column name="bagaobianhualang">
<comment>坝高变化量</comment>
</column>
</property>
<property name="podubianhualiang" type="java.lang.String">
<column name="podubianhualiang">
<comment>坡度变化量</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabGas" table="tab_gas" schema="public">
<comment>气体检测量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>气体含量</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabGlobeset" table="tab_globeset" schema="public">
<comment>设置的参数信息</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="com" type="java.lang.String">
<column name="com" length="20">
<comment>串口名称 例如:com1 com2----</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabJiamigou" table="tab_jiamigou" schema="public">
<comment>加密狗是否有效</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="ifyouxiao" type="java.lang.String">
<column name="ifyouxiao" length="20" />
</property>
<property name="daoqiri" type="java.sql.Timestamp">
<column name="daoqiri" length="29" />
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabJiangyuliang" table="tab_jiangyuliang" schema="public">
<comment>降雨量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>板端传来数据(翻转次数)</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>转换后数据(降雨总量)</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment>变化量(即实时降雨量)</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabJinrunxian" table="tab_jinrunxian" schema="public">
<comment>浸润线</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警,1报警0不报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>板端传来数据</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>转换后数据</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment>变化量</comment>
</column>
</property>
<property name="valuewendu" type="java.lang.Double">
<column name="valuewendu" precision="17" scale="17" />
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>0表示不是起始,连续绘制;1表示是起始,断开绘制</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>0表示不显示,不参与绘制;1表示显示,参与绘制</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabKushuiwei" table="tab_kushuiwei" schema="public">
<comment>库水位</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>传感器传回来的时间长(微秒)</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>高度</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17" />
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否是起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="valuewendu" type="java.lang.Double">
<column name="valuewendu" precision="17" scale="17">
<comment>温度值</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabMessage" table="tab_message" schema="public">
<comment>群发短信设置表</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="shifoufasong" type="java.lang.Integer">
<column name="shifoufasong">
<comment>是否发送</comment>
</column>
</property>
<property name="haoma" type="java.lang.String">
<column name="haoma">
<comment>设定的号码</comment>
</column>
</property>
<property name="shedingtime" type="java.sql.Timestamp">
<column name="shedingtime" length="35">
<comment>设定时间</comment>
</column>
</property>
<property name="shezhiren" type="java.lang.String">
<column name="shezhiren">
<comment>设定人</comment>
</column>
</property>
<property name="neirong" type="java.lang.String">
<column name="neirong">
<comment>发送内容</comment>
</column>
</property>
<property name="mark" type="java.lang.String">
<column name="mark">
<comment>类型</comment>
</column>
</property>
<property name="yujingjibie" type="java.lang.String">
<column name="yujingjibie">
<comment>预警级别</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabNeibuchenjiang" table="tab_neibuchenjiang" schema="public">
<comment>坝体内部沉降</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>原始数据(长度值)</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>转换后数据(原始数据/39.2)毫米值</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment>差值</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否是起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabPermission" table="tab_permission" schema="public">
<comment>权限表</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="pername" type="java.lang.String">
<column name="pername" length="255">
<comment>权限名字</comment>
</column>
</property>
<property name="perpath" type="java.lang.String">
<column name="perpath" length="255">
<comment>action的方法</comment>
</column>
</property>
<set name="roles" cascade="none" lazy="false" inverse="false"
table="Tab_roleper">
<key column="perid"></key>
<many-to-many column="roleid" class="com.gemho.bean.TabRole"></many-to-many>
</set>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabPermission" table="tab_permission" schema="public">
<comment>权限表</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="pername" type="java.lang.String">
<column name="pername" length="255">
<comment>权限名字</comment>
</column>
</property>
<property name="perpath" type="java.lang.String">
<column name="perpath" length="255">
<comment>action的方法</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabRole" table="tab_role" schema="public">
<comment>角色表</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="rolename" type="java.lang.String">
<column name="rolename" length="255">
<comment>角色名称</comment>
</column>
</property>
<property name="rolecontent" type="java.lang.String">
<column name="rolecontent" length="255">
<comment>角色概述</comment>
</column>
</property>
<set name="users" table="Tab_userrole" cascade="none"
lazy="false" inverse="false">
<key column="roleid"></key>
<many-to-many column="userid" class="com.gemho.bean.TabUser"></many-to-many>
</set>
<set name="pers" table="Tab_roleper" cascade="none"
lazy="false" inverse="false">
<key column="roleid"></key>
<many-to-many column="perid" class="com.gemho.bean.TabPermission"></many-to-many>
</set>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabRoleper" table="tab_roleper" schema="public">
<comment>角色权限关联</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="roleid" type="java.lang.Integer">
<column name="roleid">
<comment>角色的id</comment>
</column>
</property>
<property name="perid" type="java.lang.Integer">
<column name="perid">
<comment>权限的id</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabSensor" table="tab_sensor" schema="public">
<comment>传感器</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="kind" type="java.lang.String">
<column name="kind">
<comment>传感器类型(渗压计等)</comment>
</column>
</property>
<property name="state" type="java.lang.String">
<column name="state">
<comment>对于坝体体表位移等监测必须不能为空,设置两个传感器是否是一起的,设置标识,对于干滩,存储坝高和初始长,格式:坝高&amp;长度|坝高&amp;长度……</comment>
</column>
</property>
<property name="mark" type="java.lang.String">
<column name="mark">
<comment>监测类型(浸润线等)</comment>
</column>
</property>
<property name="name" type="java.lang.String">
<column name="name" />
</property>
<property name="zkbh" type="java.lang.Integer">
<column name="zkbh">
<comment>钻孔编号</comment>
</column>
</property>
<property name="address1" type="java.lang.Integer">
<column name="address1">
<comment>板端通讯地址位(板子id)</comment>
</column>
</property>
<property name="address2" type="java.lang.String">
<column name="address2">
<comment>安装位置,对于坝体地表位移的位置表示为X|Y|Z</comment>
</column>
</property>
<property name="addressb" type="java.lang.Integer">
<column name="addressb">
<comment>传感器ID</comment>
</column>
</property>
<property name="bzuobiao" type="java.lang.String">
<column name="bzuobiao">
<comment>如果是坝体地表位移记录其对应的B点坐标x|y|z,如果是干滩则是干滩长报警值</comment>
</column>
</property>
<property name="czuobiao" type="java.lang.String">
<column name="czuobiao">
<comment>如果是坝体地表位移记录其对应的C坐标x|y|z,如果是干滩则是坝高报警值</comment>
</column>
</property>
<property name="angle" type="java.lang.Double">
<column name="angle" precision="17" scale="17">
<comment>角度(定角位移时使用),如果是干滩则是坡度报警值</comment>
</column>
</property>
<property name="alarmvalue" type="java.lang.String">
<column name="alarmvalue">
<comment>报警值,对于有不同值的用|分割</comment>
</column>
</property>
<property name="values1" type="java.lang.String">
<column name="values1">
<comment>传感器初始值,对于坐标或者角度的用|分割</comment>
</column>
</property>
<property name="notalarmvalue" type="java.lang.String">
<column name="notalarmvalue">
<comment>不记录值</comment>
</column>
</property>
<property name="jiazhichushi" type="java.lang.String">
<column name="jiazhichushi">
<comment>假值初始值</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabSensorerror" table="tab_sensorerror" schema="public">
<comment>传感器错误表</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="codenum" type="java.lang.String">
<column name="codenum" />
</property>
<property name="codeneirong" type="java.lang.String">
<column name="codeneirong" length="20" />
</property>
<property name="jiludatetime" type="java.util.Date">
<column name="jiludatetime" length="13" />
</property>
<property name="ifzhengchang" type="java.lang.Integer">
<column name="ifzhengchang" />
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname" />
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabShenliuliang" table="tab_shenliuliang" schema="public">
<comment>渗流量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>板端传来数据(时间(毫秒))</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>渗流总量</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment>每次渗流量(差值)</comment>
</column>
</property>
<property name="wenduzhi" type="java.lang.Double">
<column name="wenduzhi" precision="17" scale="17">
<comment>温度值</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabShidu" table="tab_shidu" schema="public">
<comment>风速检测量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>气体含量</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabShuipingweiyi" table="tab_shuipingweiyi" schema="public">
<comment>坝体内部水平位移</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="35">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>得到的原始值</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>转换后的值(/39.2)毫米</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment>差值</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabShuizhijiance" table="tab_shuizhijiance" schema="public">
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname" />
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname" />
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29" />
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj" />
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29" />
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17" />
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17" />
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17" />
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart" />
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview" />
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabStation" table="tab_station" schema="public">
<id name="id" type="java.lang.Integer">
<column name="id" />
</id>
<property name="station" type="java.lang.String">
<column name="station">
<comment>设备ID</comment>
</column>
</property>
<property name="createtime" type="java.util.Date">
<column name="createtime" >
<comment>创建时间</comment>
</column>
</property>
<property name="zduan" type="java.lang.String">
<column name="zduan">
<comment>中断</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabUser" table="tab_user" schema="public">
<comment>帐号</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="username" type="java.lang.String">
<column name="username" />
</property>
<property name="password" type="java.lang.String">
<column name="password" />
</property>
<property name="systemmanage" type="java.lang.Integer">
<column name="systemmanage">
<comment>系统权限</comment>
</column>
</property>
<property name="datasearch" type="java.lang.Integer">
<column name="datasearch">
<comment>查询</comment>
</column>
</property>
<set name="roles" table="Tab_userrole" cascade="none"
lazy="false" inverse="false">
<key column="userid"></key>
<many-to-many column="roleid" class="com.gemho.bean.TabRole"></many-to-many>
</set>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabUserrole" table="tab_userrole" schema="public">
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="userid" type="java.lang.Integer">
<column name="userid" />
</property>
<property name="roleid" type="java.lang.Integer">
<column name="roleid" />
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabWendu" table="tab_wendu" schema="public">
<comment>风速检测量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>气体含量</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabWind" table="tab_wind" schema="public">
<comment>风监测</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment>预留</comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>风速</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17" >
<comment>风压</comment>
</column>
</property>
<property name="value4" type="java.lang.Double">
<column name="value4" precision="17" scale="17" >
<comment>预留</comment>
</column>
</property>
<property name="value5" type="java.lang.Double">
<column name="value5" precision="17" scale="17" >
<comment>预留</comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否是起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="valuewendu" type="java.lang.Double">
<column name="valuewendu" precision="17" scale="17">
<comment>预留</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabYangqi" table="tab_yangqi" schema="public">
<comment>氧气检测量</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17">
<comment>气体含量</comment>
</column>
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17">
<comment></comment>
</column>
</property>
<property name="ifstart" type="java.lang.Integer">
<column name="ifstart">
<comment>是否起始</comment>
</column>
</property>
<property name="ifview" type="java.lang.Integer">
<column name="ifview">
<comment>是否显示</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabYujing" table="tab_yujing" schema="public">
<comment>预警</comment>
<id name="yujingId" type="java.lang.Integer">
<column name="yujing_id" />
<generator class="increment" />
</id>
<property name="yujingshijian" type="java.sql.Timestamp">
<column name="yujingshijian" length="29" />
</property>
<property name="chulishijian" type="java.sql.Timestamp">
<column name="chulishijian" length="29" />
</property>
<property name="yujingneirong" type="java.lang.String">
<column name="yujingneirong" />
</property>
<property name="yujingjibie" type="java.lang.String">
<column name="yujingjibie" />
</property>
<property name="chulizhuangtai" type="java.lang.String">
<column name="chulizhuangtai" />
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabZuankong" table="tab_zuankong" schema="public">
<comment>钻孔</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="nameZk" type="java.lang.String">
<column name="name_zk">
<comment>钻孔名称</comment>
</column>
</property>
<property name="address" type="java.lang.String">
<column name="address">
<comment>钻孔位置,所属剖面</comment>
</column>
</property>
<property name="ikkcx" type="java.lang.Double">
<column name="ikkcx" precision="17" scale="17">
<comment>X坐标</comment>
</column>
</property>
<property name="ikkcy" type="java.lang.Double">
<column name="ikkcy" precision="17" scale="17">
<comment>Y坐标</comment>
</column>
</property>
<property name="ikkcz" type="java.lang.Double">
<column name="ikkcz" precision="17" scale="17">
<comment>Z坐标</comment>
</column>
</property>
<property name="igs" type="java.lang.Double">
<column name="igs" precision="17" scale="17">
<comment>孔深</comment>
</column>
</property>
<property name="vfwangle" type="java.lang.String">
<column name="vfwangle">
<comment>方位角</comment>
</column>
</property>
<property name="vqangle" type="java.lang.String">
<column name="vqangle">
<comment>倾角</comment>
</column>
</property>
<property name="ikj" type="java.lang.Double">
<column name="ikj" precision="17" scale="17">
<comment>孔径</comment>
</column>
</property>
<property name="state" type="java.lang.String">
<column name="state">
<comment>备注</comment>
</column>
</property>
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.gemho.bean.TabZuankongcexie" table="tab_zuankongcexie" schema="public">
<comment>钻孔测斜</comment>
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="increment" />
</id>
<property name="zkname" type="java.lang.String">
<column name="zkname">
<comment>钻孔名称</comment>
</column>
</property>
<property name="sensorname" type="java.lang.String">
<column name="sensorname">
<comment>传感器名称</comment>
</column>
</property>
<property name="jctime" type="java.sql.Timestamp">
<column name="jctime" length="29">
<comment>检测时间</comment>
</column>
</property>
<property name="ifbj" type="java.lang.String">
<column name="ifbj">
<comment>是否报警</comment>
</column>
</property>
<property name="jcbjtime" type="java.sql.Timestamp">
<column name="jcbjtime" length="29">
<comment>解除报警时间</comment>
</column>
</property>
<property name="value1" type="java.lang.Double">
<column name="value1" precision="17" scale="17" />
</property>
<property name="value2" type="java.lang.Double">
<column name="value2" precision="17" scale="17" />
</property>
<property name="value3" type="java.lang.Double">
<column name="value3" precision="17" scale="17" />
</property>
</class>
</hibernate-mapping>
portto=5433
ip=127.0.0.1
url=jdbc:postgresql://192.168.100.220:5432/MineSIX_test1
password=red___
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.PostgreSQLDialect
</property>
<property name="connection.url">
jdbc:postgresql://192.168.100.220:5432/MineSIX_test1
</property>
<property name="connection.username">postgres</property>
<property name="connection.password">red___</property>
<property name="connection.driver_class">
org.postgresql.Driver
</property>
<property name="myeclipse.connection.profile">
db_mineTRS
</property>
<mapping resource="com/gemho/bean/TabZuankong.hbm.xml" />
<mapping resource="com/gemho/bean/TabGantanweiyi.hbm.xml" />
<mapping resource="com/gemho/bean/TabNeibuchenjiang.hbm.xml" />
<mapping resource="com/gemho/bean/TabBatidibiaoweiyi.hbm.xml" />
<mapping resource="com/gemho/bean/TabYujing.hbm.xml" />
<mapping resource="com/gemho/bean/TabShenliuliang.hbm.xml" />
<mapping resource="com/gemho/bean/TabSensor.hbm.xml" />
<mapping resource="com/gemho/bean/TabUser.hbm.xml" />
<mapping resource="com/gemho/bean/TabJiangyuliang.hbm.xml" />
<mapping resource="com/gemho/bean/TabGas.hbm.xml" />
<mapping resource="com/gemho/bean/TabSensorerror.hbm.xml" />
<mapping resource="com/gemho/bean/TabKushuiwei.hbm.xml" />
<mapping resource="com/gemho/bean/TabWind.hbm.xml" />
<mapping resource="com/gemho/bean/TabBatineibubianxing.hbm.xml" />
<mapping resource="com/gemho/bean/TabShuipingweiyi.hbm.xml" />
<mapping resource="com/gemho/bean/TabDuankou.hbm.xml" />
<mapping resource="com/gemho/bean/TabGantanshujubiao.hbm.xml" />
<mapping resource="com/gemho/bean/TabMessage.hbm.xml" />
<mapping resource="com/gemho/bean/TabGlobeset.hbm.xml" />
<mapping resource="com/gemho/bean/TabJinrunxian.hbm.xml" />
<mapping resource="com/gemho/bean/TabZuankongcexie.hbm.xml" />
<mapping resource="com/gemho/bean/TabAlarmlog.hbm.xml" />
<mapping resource="com/gemho/bean/TabPermission.hbm.xml" />
<mapping resource="com/gemho/bean/TabRole.hbm.xml" />
<mapping resource="com/gemho/bean/TabUserrole.hbm.xml" />
<mapping resource="com/gemho/bean/TabRoleper.hbm.xml" />
<mapping resource="com/gemho/bean/TabAlarmtype.hbm.xml" />
<mapping
resource="com/gemho/bean/TabBatidibiaochenjiang.hbm.xml" />
<mapping resource="com/gemho/bean/TabAnpoweiyi.hbm.xml" />
<mapping resource="com/gemho/bean/TabJiamigou.hbm.xml" />
<mapping resource="com/gemho/bean/TabShuizhijiance.hbm.xml" />
<mapping resource="com/gemho/bean/TabStation.hbm.xml" />
<mapping resource="com/gemho/bean/TabFengsu.hbm.xml" />
<mapping resource="com/gemho/bean/TabFengya.hbm.xml" />
<mapping resource="com/gemho/bean/TabWendu.hbm.xml" />
<mapping resource="com/gemho/bean/TabShidu.hbm.xml" />
</session-factory>
</hibernate-configuration>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="gemho" extends="json-default">
<!-- 拦截器 拦截权限 -->
<interceptors>
<interceptor-stack name="loginRoleStack">
<interceptor-ref name="defaultStack"></interceptor-ref>
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="loginRoleStack"></default-interceptor-ref>
<global-results>
<result name="noLogin" type="redirect">/login.jsp</result>
</global-results>
<!-- 登陆管理 -->
<action name="login" class="loginAction" method="login" >
<result name="success">/index.jsp</result>
<result name="input" >/login.jsp</result>
</action>
<action name="logout" class="logoutAction" method="logout">
<result name="logoutSuccess">/login.jsp</result>
</action>
<!-- 添加用户 角色 -->
<action name="addRoleSelectPers" class="addRoleSelectPersAction" >
<result name="success" type="json"></result>
</action>
<action name="roleAdd" class="addRoleAction">
<result name="success" >../refresh.jsp</result><!-- 返回成功页面 -->
</action>
<action name="addUser" class="addUserAction" >
<result name="success" >../refresh.jsp</result><!-- 返回成功页面 -->
<result name="input" >/role/addUser.jsp</result>
</action>
<action name="addUserSelectRole" class="addUserSelectRoleAction" >
<result name="success" type="json" ></result>
</action>
<action name="SelectUser" class="SelectUserAction">
<result name="success" type="json" ></result>
</action>
<action name="deleteUser" class="deleteUserAction">
<result name="success" type="json"></result>
</action>
<action name="uploadUser" class="uploadUserAction">
<result name="success" type="json" ></result>
</action>
<action name="updateUser" class="updateUserAction">
<result name="success">../refresh.jsp</result> <!-- 返回成功页面 -->
</action>
<action name="uploadRole" class="uploadRoleAction">
<result name="success">/role/updateRole.jsp</result>
</action>
<action name="updateRole" class="UpdateRoleAction">
<result name="success">../refresh.jsp</result>
</action>
<action name="SelectRole" class="SelectRoleAction">
<result name="success" type="json"></result>
</action>
<action name="deleteRole" class="deleteRoleAction">
<result name="success" type="json"></result>
</action>
<!-- 添加用户 角色 -->
<!-- history历史 -->
<action name="ShenliuliangHistory" class="ShenliuliangHistoryAction">
<result name="success" type="json"></result>
</action>
<action name="ShenliuliangHistory1" class="ShenliuliangHistory1Action">
<result name="success" type="json"></result>
</action>
<action name="ShenliuliangHistoryFB" class="ShenliuliangHistoryFBAction">
<result name="success" type="json"></result>
</action>
<action name="ShenliuliangHistory1FB" class="ShenliuliangHistory1FBAction">
<result name="success" type="json"></result>
</action>
<action name="SelectMarkOption" class="SelectMarkOptionAction">
<result name="success" type="json"></result>
</action>
<action name="SelectMarkOptionx" class="SelectMarkOptionxAction">
<result name="success" type="json"></result>
</action>
<action name="ShenliuliangExcel" class="ShenliuliangExcelAction">
</action>
<action name="ShenliuliangExcel1" class="ShenliuliangExcel1Action">
</action>
<!-- 浸润线Excel -->
<action name="JinrunxianExcel" class="JinrunxianExcelAction">
</action>
<action name="JinrunxianExcel1" class="JinrunxianExcel1Action">
</action>
<action name="JinrunxianExcelFB" class="JinrunxianExcelFBAction">
</action>
<action name="JinrunxianExcel1FB" class="JinrunxianExcel1FBAction">
</action>
<!-- 库水位 Excel-->
<action name="KushuiweiExcel" class="KushuiweiExcelAction">
</action>
<action name="KushuiweiExcel1" class="KushuiweiExcel1Action">
</action>
<!-- 降雨量 -->
<action name="JiangyuliangExcel" class="JiangyuliangExcelAction">
</action>
<action name="JiangyuliangExcel1" class="JiangyuliangExcel1Action">
</action>
<!-- 坝体地表位移 Excel-->
<action name="BatidibiaoweiyiExcel" class="BatidibiaoweiyiExcelAction">
</action>
<action name="BatidibiaoweiyiExcel1" class="BatidibiaoweiyiExcel1Action">
</action>
<!-- 坝体地表竖向位移Excel -->
<action name="BatidibiaochenjiangExcel" class="BatidibiaochenjiangExcelAction">
</action>
<action name="BatidibiaochenjiangExcel1" class="BatidibiaochenjiangExcel1Action">
</action>
<!-- 坝体内部水平位移Excel -->
<action name="BatineibushuipingweiyiExcel" class="BatineibushuipingweiyiExcelAction">
</action>
<action name="BatineibushuipingweiyiExcel1" class="BatineibushuipingweiyiExcel1Action">
</action>
<!-- 岸坡位移excel -->
<action name="AnpoweiyiExcel" class="AnpoweiyiExcelAction">
</action>
<action name="AnpoweiyiExcel1" class="AnpoweiyiExcel1Action">
</action>
<action name="AnpoweiyiExcelFB" class="AnpoweiyiExcelFBAction">
</action>
<action name="AnpoweiyiExcel1FB" class="AnpoweiyiExcel1FBAction">
</action>
<!-- 坝体内部沉降Excel -->
<action name="NeibuchenjiangExcel" class="NeibuchenjiangExcelAction">
</action>
<action name="NeibuchenjiangExcel1" class="NeibuchenjiangExcel1Action">
</action>
<action name="NeibuchenjiangExcelFB" class="NeibuchenjiangExcelFBAction">
</action>
<action name="NeibuchenjiangExcel1FB" class="NeibuchenjiangExcel1FBAction">
</action>
<!-- 坝体内部测斜Excel -->
<action name="NeibucexieExcel" class="NeibucexieExcelAction">
</action>
<action name="NeibucexieExcel1" class="NeibucexieExcel1Action">
</action>
<action name="NeibucexieExcelFB" class="NeibucexieExcelFBAction">
</action>
<action name="NeibucexieExcel1FB" class="NeibucexieExcel1FBAction">
</action>
<!-- 干滩 Excel-->
<action name="GantanExcel" class="GantanExcelAction">
</action>
<!-- history历史 -->
<!-- 短信猫 -->
<action name="SelectMessage" class="SelectMessageAction">
<result name="success" type="json"></result>
</action>
<action name="addMessage" class="addMessageAction">
<result name="success" >../refresh.jsp</result><!-- 返回成功页面 -->
<result name="input" >/yujing/addMessage.jsp</result>
</action>
<action name="deleteMessage" class="deleteMessageAction">
<result name="success" type="json"></result>
</action>
<action name="uploadMessage" class="uploadMessageAction">
<result name="success" type="json"></result>
</action>
<action name="UpdateMessage1" class="UpdateMessage1Action">
<result name="success">../refresh.jsp</result>
<result name="input">/yujing/updataMessage.jsp</result>
</action>
<!-- 短信猫 -->
<!-- 预警级别 -->
<action name="SelectYujingjibie" class="SelectYujingjibieAction">
<result name="success" type="json"></result>
</action>
<action name="uploadate" class="uploadateAction">
<result name="success" type="json"></result>
</action>
<action name="updateyujing" class="updateyujingAction">
<result name="success" type="json"></result>
</action>
<action name="YujingchuliHistory" class="YujingchuliHistoryAction">
<result name="success" type="json"></result>
</action>
<action name="YujingchuliOption" class="YujingchuliOptionAction">
<result name="success" type="json"></result>
</action>
<!-- 预警级别 -->
<!-- 预警处理 -->
<action name="YujingchuliExcel" class="YujingchuliExcelAction">
<result name="success" type="stream">
<!-- 修改stream中的参数 -->
<param name="inputName">eno</param>
<param name="contentDisposition">attachment;filename=${filename}</param>
</result>
</action>
<!-- 预警处理 -->
<!-- 浸润线图表 -->
<action name="jinrunxianTB" class="jinrunxianTBAction">
<result name="success" type="json"></result>
</action>
<action name="jinrunxianTBLS" class="jinrunxianTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="jinrunxianTBFB" class="jinrunxianTBFBAction">
<result name="success" type="json"></result>
</action>
<action name="jinrunxianTBLSFB" class="jinrunxianTBLSFBAction">
<result name="success" type="json"></result>
</action>
<action name="JCjinrunxian" class="JCjinrunxianAction">
<result name="success" type="json"></result>
</action>
<action name="jinrunxianXX" class="jinrunxianXXAction">
<result name="success" type="json"></result>
</action>
<!-- 浸润线图表 -->
<!-- 渗流量图表 -->
<action name="shenliuliangTB" class="shenliuliangTBAction">
<result name="success" type="json"></result>
</action>
<action name="shenliuliangTBLS" class="shenliuliangTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCshenliuliang" class="JCshenliuliangAction">
<result name="success" type="json"></result>
</action>
<action name="shenliuliangXX" class="shenliuliangXXAction">
<result name="success" type="json"></result>
</action>
<action name="shenliuliangXXAll" class="shenliuliangXXAllAction">
<result name="success" type="json"></result>
</action>
<action name="shujufenye" class="shujufenyeAction">
<result name="success" type="json"></result>
</action>
<action name="shujufenyeTwoAndFour" class="shujufenyeTwoAndFourAction">
<result name="success" type="json"></result>
</action>
<!-- 渗流量图表 -->
<!-- 降雨量图表 -->
<action name="jiangyuliangTB" class="jiangyuliangTBAction">
<result name="success" type="json"></result>
</action>
<action name="jiangyuliangTBLS" class="jiangyuliangTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCjiangyuliang" class="JCjiangyuliangAction">
<result name="success" type="json"></result>
</action>
<action name="jiangyuliangXX" class="jiangyuliangXXAction">
<result name="success" type="json"></result>
</action>
<action name="jiangyuliangXXAll" class="jiangyuliangXXAllAction">
<result name="success" type="json"></result>
</action>
<!-- 降雨量图表 -->
<!-- 库水位图表 -->
<action name="kushuiweiTB" class="kushuiweiTBAction">
<result name="success" type="json"></result>
</action>
<action name="kushuiweiTBLS" class="kushuiweiTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCkushuiwei" class="JCkushuiweiAction">
<result name="success" type="json"></result>
</action>
<action name="kushuiweiXX" class="kushuiweiXXAction">
<result name="success" type="json"></result>
</action>
<action name="shuizhijianceTBLS" class="ShuizhijianceTBLSAction">
<result name="success" type="json"></result>
</action>
<!-- 库水位图表 -->
<!-- 内部沉降图表 -->
<action name="neibuchenjiangTB" class="neibuchenjiangTBAction">
<result name="success" type="json"></result>
</action>
<action name="neibuchenjiangTBLS" class="neibuchenjiangTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCneibuchenjiang" class="JCneibuchenjiangAction">
<result name="success" type="json"></result>
</action>
<action name="neibuchenjiangXX" class="neibuchenjiangXXAction">
<result name="success" type="json"></result>
</action>
<!-- 内部沉降图表 -->
<!-- 水平位移图表 -->
<action name="shuipingweiyiTB" class="shuipingweiyiTBAction">
<result name="success" type="json"></result>
</action>
<action name="shuipingweiyiTBLS" class="shuipingweiyiTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCshuipingweiyi" class="JCshuipingweiyiAction">
<result name="success" type="json"></result>
</action>
<action name="shuipingweiyiXX" class="shuipingweiyiXXAction">
<result name="success" type="json"></result>
</action>
<!-- 水平位移图表 -->
<!-- 坝体变形图表 -->
<action name="batibianxingTB" class="batibianxingTBAction">
<result name="success" type="json"></result>
</action>
<action name="batibianxingTBLS" class="batibianxingTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCbatibianxing" class="JCbatibianxingAction">
<result name="success" type="json"></result>
</action>
<action name="batibianxingXX" class="batibianxingXXAction">
<result name="success" type="json"></result>
</action>
<action name="batibianxingXXAll" class="batibianxingXXAllAction">
<result name="success" type="json"></result>
</action>
<!-- 坝体变形图表 -->
<!-- 坝体地表位移图表 -->
<action name="batidibiaoweiyiTB" class="batidibiaoweiyiTBAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaoweiyiTB1" class="batidibiaoweiyiTBAction1">
<result name="success" type="json"></result>
</action>
<action name="batidibiaoweiyiTBLS" class="batidibiaoweiyiTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaoweiyiTBLS1" class="batidibiaoweiyiTBLSAction1">
<result name="success" type="json"></result>
</action>
<action name="JCbatidibiaoweiyi" class="JCbatidibiaoweiyiAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaoweiyiXX" class="batidibiaoweiyiXXAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaochenjiang" class="batidibiaochenjiangAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaochenjiangLS" class="batidibiaochenjiangLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCbatidibiaochenjiang" class="JCbatidibiaochenjiangAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaochenjiangXX" class="batidibiaochenjiangXXAction">
<result name="success" type="json"></result>
</action>
<!-- 坝体地表位移图表 -->
<!-- 岸坡位移图表 -->
<action name="anpoweiyiTB" class="anpoweiyiTBAction">
<result name="success" type="json"></result>
</action>
<action name="anpoweiyiTBLS" class="anpoweiyiTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="anpoweiyiTBFB" class="anpoweiyiTBFBAction">
<result name="success" type="json"></result>
</action>
<action name="anpoweiyiTBLSFB" class="anpoweiyiTBLSFBAction">
<result name="success" type="json"></result>
</action>
<action name="JCanpoweiyi" class="JCanpoweiyiAction">
<result name="success" type="json"></result>
</action>
<action name="anpoweiyiXX" class="anpoweiyiXXAction">
<result name="success" type="json"></result>
</action>
<!-- 岸坡位移图表 -->
<!-- 干滩位移 -->
<action name="gantanTB" class="gantanTBAction">
<result name="success" type="json"></result>
</action>
<action name="gantanTBLS" class="gantanTBLSAction">
<result name="success" type="json"></result>
</action>
<action name="JCgantan" class="JCgantanAction">
<result name="success" type="json"></result>
</action>
<action name="BJgantanTB" class="BJgantanTBAction">
<result name="success" type="json"></result>
</action>
<action name="gantanx" class="gantanxAction">
<param name="wawa">1.94</param>
<result name="success" type="json"></result>
</action>
<!-- 干滩位移 -->
<!-- 动态监测示意图 -->
<action name="jinrunxianCGQ" class="jinrunxianCGQAction">
<result name="success" type="json"></result>
</action>
<action name="jinrunxianCGQFB" class="jinrunxianCGQFBAction">
<result name="success" type="json"></result>
</action>
<action name="shenliuliangCGQ" class="shenliuliangCGQAction">
<result name="success" type="json"></result>
</action>
<action name="kushuiweiCGQ" class="kushuiweiCGQAction">
<result name="success" type="json"></result>
</action>
<action name="jiangyuliangCGQ" class="jiangyuliangCGQAction">
<result name="success" type="json"></result>
</action>
<action name="neibuchenjiangCGQ" class="neibuchenjiangCGQAction">
<result name="success" type="json"></result>
</action>
<action name="neibuchenjiangCGQFB" class="neibuchenjiangCGQFBAction">
<result name="success" type="json"></result>
</action>
<action name="shuipingweiyiCGQ" class="shuipingweiyiCGQAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaoweiyiCGQ" class="batidibiaoweiyiCGQAction">
<result name="success" type="json"></result>
</action>
<action name="batidibiaoweiyiCGQ1" class="batidibiaoweiyiCGQAction1">
<result name="success" type="json"></result>
</action>
<action name="batibianxingCGQ" class="batibianxingCGQAction">
<result name="success" type="json"></result>
</action>
<action name="batibianxingCGQFB" class="batibianxingCGQFBAction">
<result name="success" type="json"></result>
</action>
<action name="gantanweiyiCGQ" class="gantanweiyiCGQAction">
<result name="success" type="json"></result>
</action>
<action name="biaomianshuxiangweiyiCGQ" class="biaomianshuxiangweiyiCGQAction">
<result name="success" type="json"></result>
</action>
<action name="biaomianshuxiangweiyiCGQ1" class="biaomianshuxiangweiyiCGQAction1">
<result name="success" type="json"></result>
</action>
<action name="anpoweiyiCGQ" class="anpoweiyiCGQAction">
<result name="success" type="json"></result>
</action>
<action name="anpoweiyiCGQFB" class="anpoweiyiCGQFBAction">
<result name="success" type="json"></result>
</action>
<!-- 动态监测示意图 -->
<!-- 传感器状态示意图 -->
<action name="dongtaijianceTP" class="dongtaijianceTPAction">
<result name="success" type="json"></result>
</action>
<!-- 传感器状态示意图 -->
<!-- 实时刷新 -->
<action name="shuaxin" class="shuaxinAction">
<result name="success" type="json"></result>
</action>
<!-- 实时刷新 -->
<!-- 系统配置 -->
<action name="lg" class="lgAction" >
<result name="success" >config.jsp</result>
<result name="false" >lg.jsp</result>
</action>
<action name="configadd" class="ConfigAction" method="add">
<result name="success" >config.jsp</result>
</action>
<action name="configdel" class="ConfigAction" method="del">
<result name="success" >config.jsp</result>
</action>
<action name="loadsensor" class="ConfigAction" method="loadsensor">
<result name="success" type="json">
<param name="root">sensorlist</param>
</result>
</action>
<action name="uploadSensor" class="ConfigAction" method="uploadSensor">
<result name="success" type="json"></result>
</action>
<action name="updateSensor" class="ConfigAction" method="updateSensor">
<result name="success" >refresh.jsp</result>
</action>
<action name="addDizhi" class="addDizhiAction" method="add" >
<result name="success" >load.jsp</result>
</action>
<action name="loadLinshi" class="addDizhiAction" method="load" >
<result name="success" type="json">
<param name="root">list</param>
</result>
</action>
<action name="del" class="addDizhiAction" method="del" >
<result name="success" >load.jsp</result>
</action>
<!-- 系统配置 -->
<!-- 加密狗 -->
<action name="jiamigou" class="JiamigouAction" >
<result name="success" type="json"></result>
</action>
<!-- 加密狗 -->
<!-- 气体监测图表 -->
<!--二氧化碳 -->
<action name="co2jiance" class="co2jianceAction" >
<result name="success" type="json"></result>
</action>
<action name="JCco2" class="JCco2Action">
<result name="success" type="json"></result>
</action>
<action name="co2XX" class="co2XXAction">
<result name="success" type="json"></result>
</action>
<!--二氧化碳 -->
<!--二氧化氮 -->
<action name="no2jiance" class="no2jianceAction" >
<result name="success" type="json"></result>
</action>
<action name="JCno2" class="JCno2Action">
<result name="success" type="json"></result>
</action>
<action name="no2XX" class="no2XXAction">
<result name="success" type="json"></result>
</action>
<!-- 站点信息 -->
<action name="stationconfig" class="stationConfigAction">
<result name="success" type="json"></result>
</action>
<!--二氧化氮 -->
<!--氧气 -->
<action name="o2jiance" class="o2jianceAction" >
<result name="success" type="json"></result>
</action>
<!--一氧化碳 -->
<action name="cojiance" class="cojianceAction" >
<result name="success" type="json"></result>
</action>
<action name="JCo2" class="JCo2Action">
<result name="success" type="json"></result>
</action>
<action name="o2XX" class="o2XXAction">
<result name="success" type="json"></result>
</action>
<!--氧气 -->
<!-- 气体监测图表 -->
<!-- 气体监测历史 -->
<!--二氧化碳-->
<action name="co2Excel" class="co2ExcelAction">
</action>
<action name="co2Excel1" class="co2Excel1Action">
</action>
<!--二氧化碳-->
<!--二氧化氮 -->
<action name="no2Excel" class="no2ExcelAction">
</action>
<action name="no2Excel1" class="no2Excel1Action">
</action>
<!--二氧化氮 -->
<!--氧气 -->
<action name="o2Excel" class="o2ExcelAction">
</action>
<action name="o2Excel1" class="o2Excel1Action">
</action>
<!--氧气 -->
<!-- 气体监测历史 -->
<!--风监测图表 -->
<!--风速 -->
<action name="wendu" class="wenduAction" >
<result name="success" type="json"></result>
</action>
<action name="wendu1" class="wendu1Action" >
<result name="success" type="json"></result>
</action>
<action name="shidu" class="shiduAction" >
<result name="success" type="json"></result>
</action>
<action name="shidu1" class="shidu1Action" >
<result name="success" type="json"></result>
</action>
<action name="fengsu" class="fengsuAction" >
<result name="success" type="json"></result>
</action>
<action name="fengsu1" class="fengsu1Action" >
<result name="success" type="json"></result>
</action>
<action name="JCfengsu" class="JCfengsuAction">
<result name="success" type="json"></result>
</action>
<action name="fengsuXX" class="fengsuXXAction">
<result name="success" type="json"></result>
</action>
<!--风速 -->
<!--风压 -->
<action name="fengya" class="fengyaAction" >
<result name="success" type="json"></result>
</action>
<action name="fengya1" class="fengya1Action" >
<result name="success" type="json"></result>
</action>
<action name="JCfengya" class="JCfengyaAction">
<result name="success" type="json"></result>
</action>
<action name="fengyaXX" class="fengyaXXAction">
<result name="success" type="json"></result>
</action>
<!--风压 -->
<!--风监测图表 -->
<!--风监测历史 -->
<!--风速 -->
<action name="fengsuExcel" class="fengsuExcelAction">
</action>
<action name="fengsuExcel1" class="fengsuExcel1Action">
</action>
<!--风速 -->
<!--风压 -->
<action name="fengyaExcel" class="fengyaExcelAction">
</action>
<action name="fengyaExcel1" class="fengyaExcel1Action">
</action>
<!--风压-->
<!--风监测历史 -->
<!-- 气体监测动态示意图 -->
<!--二氧化碳-->
<action name="co2jianceCGQ" class="co2jianceCGQAction">
<result name="success" type="json"></result>
</action>
<!--二氧化碳-->
<!--二氧化氮-->
<action name="no2jianceCGQ" class="no2jianceCGQAction">
<result name="success" type="json"></result>
</action>
<!--二氧化氮-->
<!--氧气-->
<action name="o2jianceCGQ" class="o2jianceCGQAction">
<result name="success" type="json"></result>
</action>
<!--氧气-->
<!-- 气体监测动态示意图 -->
<!-- 风监测动态示意图 -->
<!--风速-->
<action name="fengsujianceCGQ" class="fengsujianceCGQAction">
<result name="success" type="json"></result>
</action>
<!--风速-->
<!--风压-->
<action name="fengyajianceCGQ" class="fengyajianceCGQAction">
<result name="success" type="json"></result>
</action>
<!--风压-->
<!-- 风监测动态示意图 -->
</package>
<!--<constant name="struts.action.extension" value="do"></constant>-->
</struts>
......@@ -30,7 +30,7 @@ public class co2jianceAction extends ActionSupport {
@Override
public String execute() throws Exception {
list =co2jiance.getCo2("", state, zduan);
list =co2jiance.getCo2("co2", state, zduan);
return SUCCESS;
}
}
......@@ -31,7 +31,7 @@ public class cojianceAction extends ActionSupport {
@Override
public String execute() throws Exception {
list =cojiance.getCo2("", state, zduan);
list =cojiance.getCo2("co", state, zduan);
return SUCCESS;
}
}
......@@ -27,7 +27,7 @@ public class fengsuAction extends ActionSupport{
@Override
public String execute() throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
list =fengsu.getWeiZhi("", zduan);
list =fengsu.getWeiZhi("风速", zduan);
return SUCCESS;
}
......
......@@ -25,7 +25,6 @@ public class fengya1Action extends ActionSupport {
this.zduan = zduan;
}
public List<Object> getList() {
return list;
}
......@@ -36,4 +35,5 @@ public class fengya1Action extends ActionSupport {
list = fengya.Search_Page_new_lsPT("压力", zduan);
return SUCCESS;
}
}
......@@ -30,7 +30,7 @@ public class o2jianceAction extends ActionSupport {
@Override
public String execute() throws Exception {
list =o2jiance.getO2("", state, zduan);
list =o2jiance.getO2("o2", state, zduan);
return SUCCESS;
}
......
......@@ -30,7 +30,7 @@ public class wendu1Action extends ActionSupport {
@Override
public String execute() throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
list = wendu.Search_Page_new_lsPT("", zduan);
list = wendu.Search_Page_new_lsPT("�¶=�", zduan);
return SUCCESS;
}
}
......@@ -42,7 +42,7 @@ public class fengsuImpl implements kushuiweiDao {
}
String sql = "FROM TabSensor WHERE state='"+mark+"' order by name";
list = session.createQuery(sql).list();
// 根据中段查询下属的所有设备Id
// �����жβ�ѯ�����������豸Id
String b = "FROM TabStation WHERE zduan = '" + zduan
+ "' and id < 10 order by station";
liststation = session.createQuery(b).list();
......@@ -71,7 +71,7 @@ public class fengsuImpl implements kushuiweiDao {
sensor1.setAlarmvalue1(alarmvalue);
}
sensorList.add(sensor1);
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String sqlStr="FROM TabFengsu WHERE sensorname = '"+sensorname+"' and id=(SELECT max(id) FROM TabFengsu WHERE sensorname = '"+sensorname+"' and ifview=0 and ifstart=0 group by sensorname)";
System.out.println(sqlStr + "============test sql");
......@@ -114,7 +114,7 @@ public class fengsuImpl implements kushuiweiDao {
List<Object> list = null;
List listAll = new ArrayList();
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE mark = '"+mark+"' order by name";
list = session.createQuery(a).list();
......@@ -186,8 +186,8 @@ public class fengsuImpl implements kushuiweiDao {
/**
* @author Administrator
* @param 传感器
* ,用户,原因 //解除报警
* @param ������
* ,�û�,ԭ�� //�������
*/
public int logstopalarm(String sensorname, String username, String reason) {
Session session = HibernateUtil.openSession();
......@@ -203,9 +203,9 @@ public class fengsuImpl implements kushuiweiDao {
work2.setUsername(username);
work2.setReason(reason);
work2.setJiechutime(ts);
work2.setKind("风速监测");
work2.setKind("���ټ��");
ht.save(work2);
// 更新报警状态
// ���±���״̬
Query query;
if(sensorname.contains("*")){
String[] name = sensorname.split("\\*");
......@@ -223,7 +223,7 @@ public class fengsuImpl implements kushuiweiDao {
query = session.createQuery("FROM TabFengsu WHERE ifbj ='1'");
if(query.list()==null||query.list().size()<=0){
query = (Query) session
.createQuery( "delete from TabAlarmtype where alarmtype = '风速监测'");
.createQuery( "delete from TabAlarmtype where alarmtype = '���ټ��'");
((org.hibernate.Query) query).executeUpdate();
}
......@@ -392,15 +392,15 @@ public class fengsuImpl implements kushuiweiDao {
}
/**
* mark:类型
* @return 传感器状态
* mark������
* @return ������״̬
*/
@SuppressWarnings("unchecked")
public List<Object> Search_CGQ_new(String mark) {
Session session = HibernateUtil.openSession();
List list = new ArrayList();
try {
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='风速' order by name";
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='����' order by name";
List sensor = session.createQuery(a).list();
for (int i = 0; i < sensor.size(); i++) {
value value = new value();
......@@ -447,9 +447,9 @@ public class fengsuImpl implements kushuiweiDao {
zduan = "2";
}
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE state='风速' order by name";
String a = "FROM TabSensor WHERE state='风速' order by name";
list = session.createQuery(a).list();
String b = "FROM TabStation WHERE zduan = '" + zduan
......
......@@ -40,9 +40,9 @@ public class fengyaImpl implements kushuiweiDao {
if (zduan.length() == 0) {
zduan = "2";
}
String sql = "FROM TabSensor WHERE state='压力' order by name";
String sql = "FROM TabSensor WHERE state='压力' order by name";
list = session.createQuery(sql).list();
// 根据中段查询下属的所有设备Id
// �����жβ�ѯ�����������豸Id
String b = "FROM TabStation WHERE zduan = '" + zduan
+ "' and id < 10 order by station";
liststation = session.createQuery(b).list();
......@@ -71,7 +71,7 @@ public class fengyaImpl implements kushuiweiDao {
sensor1.setAlarmvalue1(alarmvalue);
}
sensorList.add(sensor1);
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String sqlStr="FROM TabFengya WHERE sensorname = '"+sensorname+"' and id=(SELECT max(id) FROM TabFengya WHERE sensorname = '"+sensorname+"' and ifview=0 and ifstart=0 group by sensorname)";
query = session.createQuery(sqlStr);
......@@ -113,7 +113,7 @@ public class fengyaImpl implements kushuiweiDao {
List<Object> list = null;
List listAll = new ArrayList();
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE mark = '"+mark+"' order by name";
list = session.createQuery(a).list();
......@@ -185,8 +185,8 @@ public class fengyaImpl implements kushuiweiDao {
/**
* @author Administrator
* @param 传感器
* ,用户,原因 //解除报警
* @param ������
* ,�û�,ԭ�� //�������
*/
public int logstopalarm(String sensorname, String username, String reason) {
Session session = HibernateUtil.openSession();
......@@ -202,9 +202,9 @@ public class fengyaImpl implements kushuiweiDao {
work2.setUsername(username);
work2.setReason(reason);
work2.setJiechutime(ts);
work2.setKind("风监测");
work2.setKind("����");
ht.save(work2);
// 更新报警状态
// ���±���״̬
Query query;
if(sensorname.contains("*")){
String[] name = sensorname.split("\\*");
......@@ -222,7 +222,7 @@ public class fengyaImpl implements kushuiweiDao {
query = session.createQuery("FROM TabWind WHERE ifbj ='1'");
if(query.list()==null||query.list().size()<=0){
query = (Query) session
.createQuery( "delete from TabAlarmtype where alarmtype = '风监测'");
.createQuery( "delete from TabAlarmtype where alarmtype = '����'");
((org.hibernate.Query) query).executeUpdate();
}
tx.commit();
......@@ -390,15 +390,15 @@ public class fengyaImpl implements kushuiweiDao {
}
/**
* mark:类型
* @return 传感器状态
* mark������
* @return ������״̬
*/
@SuppressWarnings("unchecked")
public List<Object> Search_CGQ_new(String mark) {
Session session = HibernateUtil.openSession();
List list = new ArrayList();
try {
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='压' order by name";
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='��ѹ' order by name";
List sensor = session.createQuery(a).list();
for (int i = 0; i < sensor.size(); i++) {
value value = new value();
......@@ -446,9 +446,9 @@ public class fengyaImpl implements kushuiweiDao {
}
System.out.println(mark + "===mark");
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE state='压力' order by name";
String a = "FROM TabSensor WHERE state='压力' order by name";
list = session.createQuery(a).list();
String b = "FROM TabStation WHERE zduan = '" + zduan
......
portto=5433
ip=127.0.0.1
url=jdbc:postgresql://192.168.3.220:5432/MineSIX
url=jdbc:postgresql://192.168.100.220:5432/MineSIX_test1
password=red___
......@@ -36,9 +36,9 @@ public class shiduImpl implements kushuiweiDao {
if (zduan.length() == 0) {
zduan = "2";
}
String sql = "FROM TabSensor WHERE state='湿度' order by name";
String sql = "FROM TabSensor WHERE state='湿度' order by name";
list = session.createQuery(sql).list();
// 根据中段查询下属的所有设备Id
// �����жβ�ѯ�����������豸Id
String b = "FROM TabStation WHERE zduan = '" + zduan
+ "' and id < 10 order by station";
liststation = session.createQuery(b).list();
......@@ -67,7 +67,7 @@ public class shiduImpl implements kushuiweiDao {
sensor1.setAlarmvalue1(alarmvalue);
}
sensorList.add(sensor1);
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String sqlStr = "FROM TabShidu WHERE sensorname = '" + sensorname + "' and id=(SELECT max(id) FROM TabShidu WHERE sensorname = '" + sensorname + "' and ifview=0 and ifstart=0 group by sensorname)";
query = session.createQuery(sqlStr);
......@@ -109,7 +109,7 @@ public class shiduImpl implements kushuiweiDao {
List<Object> list = null;
List listAll = new ArrayList();
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE mark = '"+mark+"' order by name";
list = session.createQuery(a).list();
......@@ -181,8 +181,8 @@ public class shiduImpl implements kushuiweiDao {
/**
* @author Administrator
* @param 传感器
* ,用户,原因 //解除报警
* @param ������
* ,�û�,ԭ�� //�������
*/
public int logstopalarm(String sensorname, String username, String reason) {
Session session = HibernateUtil.openSession();
......@@ -198,9 +198,9 @@ public class shiduImpl implements kushuiweiDao {
work2.setUsername(username);
work2.setReason(reason);
work2.setJiechutime(ts);
work2.setKind("风监测");
work2.setKind("����");
ht.save(work2);
// 更新报警状态
// ���±���״̬
Query query;
if(sensorname.contains("*")){
String[] name = sensorname.split("\\*");
......@@ -218,7 +218,7 @@ public class shiduImpl implements kushuiweiDao {
query = session.createQuery("FROM TabWind WHERE ifbj ='1'");
if(query.list()==null||query.list().size()<=0){
query = (Query) session
.createQuery( "delete from TabAlarmtype where alarmtype = '风监测'");
.createQuery( "delete from TabAlarmtype where alarmtype = '����'");
((Query) query).executeUpdate();
}
tx.commit();
......@@ -386,15 +386,15 @@ public class shiduImpl implements kushuiweiDao {
}
/**
* mark:类型
* @return 传感器状态
* mark������
* @return ������״̬
*/
@SuppressWarnings("unchecked")
public List<Object> Search_CGQ_new(String mark) {
Session session = HibernateUtil.openSession();
List list = new ArrayList();
try {
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='压' order by name";
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='��ѹ' order by name";
List sensor = session.createQuery(a).list();
for (int i = 0; i < sensor.size(); i++) {
value value = new value();
......@@ -441,9 +441,9 @@ public class shiduImpl implements kushuiweiDao {
zduan = "2";
}
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE state='湿度' order by name";
String a = "FROM TabSensor WHERE state='湿度' order by name";
list = session.createQuery(a).list();
String b = "FROM TabStation WHERE zduan = '" + zduan
......
......@@ -36,9 +36,9 @@ public class wenduImpl implements kushuiweiDao {
if (zduan.length() == 0) {
zduan = "2";
}
String sql = "FROM TabSensor WHERE state='温度' order by name";
String sql = "FROM TabSensor WHERE state='温度' order by name";
list = session.createQuery(sql).list();
// 根据中段查询下属的所有设备Id
// �����жβ�ѯ�����������豸Id
String b = "FROM TabStation WHERE zduan = '" + zduan
+ "' and id < 10 order by station";
liststation = session.createQuery(b).list();
......@@ -67,7 +67,7 @@ public class wenduImpl implements kushuiweiDao {
sensor1.setAlarmvalue1(alarmvalue);
}
sensorList.add(sensor1);
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String sqlStr = "FROM TabWendu WHERE sensorname = '" + sensorname + "' and id=(SELECT max(id) FROM TabWendu WHERE sensorname = '" + sensorname + "' and ifview=0 and ifstart=0 group by sensorname)";
query = session.createQuery(sqlStr);
......@@ -109,7 +109,7 @@ public class wenduImpl implements kushuiweiDao {
List<Object> list = null;
List listAll = new ArrayList();
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE mark = '"+mark+"' order by name";
list = session.createQuery(a).list();
......@@ -181,8 +181,8 @@ public class wenduImpl implements kushuiweiDao {
/**
* @author Administrator
* @param 传感器
* ,用户,原因 //解除报警
* @param ������
* ,�û�,ԭ�� //�������
*/
public int logstopalarm(String sensorname, String username, String reason) {
Session session = HibernateUtil.openSession();
......@@ -198,9 +198,9 @@ public class wenduImpl implements kushuiweiDao {
work2.setUsername(username);
work2.setReason(reason);
work2.setJiechutime(ts);
work2.setKind("风监测");
work2.setKind("����");
ht.save(work2);
// 更新报警状态
// ���±���״̬
Query query;
if(sensorname.contains("*")){
String[] name = sensorname.split("\\*");
......@@ -218,7 +218,7 @@ public class wenduImpl implements kushuiweiDao {
query = session.createQuery("FROM TabWind WHERE ifbj ='1'");
if(query.list()==null||query.list().size()<=0){
query = (Query) session
.createQuery( "delete from TabAlarmtype where alarmtype = '风监测'");
.createQuery( "delete from TabAlarmtype where alarmtype = '����'");
((Query) query).executeUpdate();
}
tx.commit();
......@@ -386,15 +386,15 @@ public class wenduImpl implements kushuiweiDao {
}
/**
* mark:类型
* @return 传感器状态
* mark������
* @return ������״̬
*/
@SuppressWarnings("unchecked")
public List<Object> Search_CGQ_new(String mark) {
Session session = HibernateUtil.openSession();
List list = new ArrayList();
try {
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='压' order by name";
String a = "SELECT name FROM TabSensor WHERE mark='" + mark + "' and state='��ѹ' order by name";
List sensor = session.createQuery(a).list();
for (int i = 0; i < sensor.size(); i++) {
value value = new value();
......@@ -441,9 +441,9 @@ public class wenduImpl implements kushuiweiDao {
zduan = "2";
}
try {
// Person是类的名字而不是表的名字,既然是类的名字就需要严格区分大小写
// Person��������ֶ����DZ�����֣���Ȼ��������־���Ҫ�ϸ����ִ�Сд
Query query;
String a = "FROM TabSensor WHERE state='温度' order by name";
String a = "FROM TabSensor WHERE state='温度' order by name";
list = session.createQuery(a).list();
String b = "FROM TabStation WHERE zduan = '" + zduan
......
......@@ -11,7 +11,7 @@
org.hibernate.dialect.PostgreSQLDialect
</property>
<property name="connection.url">
jdbc:postgresql://192.168.3.220:5432/MineSIX
jdbc:postgresql://192.168.100.220:5432/MineSIX_test1
</property>
<property name="connection.username">postgres</property>
<property name="connection.password">red___</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment