jsp 页面层
< % @ page language= "java" contentType= "text/html; charset=UTF-8"
pageEncoding= "UTF-8" % >
< ! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
< %
String path = request. getContextPath ( ) ;
String basePath = request. getScheme ( ) + "://" + request. getServerName ( ) + ":" + request. getServerPort ( ) + path + "/" ;
% >
< % @ taglib prefix= "c" uri= "http://java.sun.com/jsp/jstl/core" % >
< % @ taglib prefix= "fn" uri= "http://java.sun.com/jsp/jstl/functions" % >
< html>
< head>
< meta charset= "utf-8" / >
< meta http- equiv= "Content-Type" content= "text/html; charset=utf-8" >
< title> 实时监测< / title>
< meta http- equiv= "X-UA-Compatible" content= "IE=edge" >
< meta content= "width=device-width, initial-scale=1" name= "viewport" / >
< meta content= "" name= "description" / >
< meta content= "" name= "author" / >
< link rel= "stylesheet" type= "text/css"
href= "<%=basePath%>easyui/themes/icon.css" >
< ! -- BEGIN GLOBAL MANDATORY STYLES -- >
< link rel= "stylesheet" type= "text/css"
href= "<%=basePath%>easyui/themes/default/easyui.css" >
< link
href= "<%=basePath%>assets/global/plugins/font-awesome/css/font-awesome.min.css"
rel= "stylesheet" type= "text/css" / >
< link
href= "<%=basePath%>assets/global/plugins/simple-line-icons/simple-line-icons.min.css"
rel= "stylesheet" type= "text/css" / >
< link
href= "<%=basePath%>assets/global/plugins/bootstrap/css/bootstrap.min.css"
rel= "stylesheet" type= "text/css" / >
< link
href= "<%=basePath%>assets/global/plugins/uniform/css/uniform.default.css"
rel= "stylesheet" type= "text/css" / >
< link
< % -- href= "<%=basePath%>assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" -- % >
rel= "stylesheet"
type= "text/css" / >
< ! -- END GLOBAL MANDATORY STYLES -- >
< ! -- BEGIN THEME GLOBAL STYLES -- >
< link href= "<%=basePath%>assets/global/css/components.min.css"
rel= "stylesheet" id= "style_components" type= "text/css" / >
< link href= "<%=basePath%>assets/global/css/plugins.min.css"
rel= "stylesheet" type= "text/css" / >
< ! -- END THEME GLOBAL STYLES -- >
< ! -- BEGIN PAGE LEVEL STYLES -- >
< link href= "<%=basePath%>assets/apps/css/inbox.min.css" rel= "stylesheet"
type= "text/css" / >
< ! -- END PAGE LEVEL STYLES -- >
< ! -- BEGIN THEME LAYOUT STYLES -- >
< link href= "<%=basePath%>assets/layouts/layout4/css/layout.min.css"
rel= "stylesheet" type= "text/css" / >
< link
href= "<%=basePath%>assets/layouts/layout4/css/themes/light.min.css"
rel= "stylesheet" type= "text/css" id= "style_color" / >
< link href= "<%=basePath%>assets/layouts/layout4/css/custom.min.css"
rel= "stylesheet" type= "text/css" / >
< ! -- END THEME LAYOUT STYLES -- >
< link rel= "shortcut icon" href= "favicon.ico" / >
< ! -- END HEAD -- >
< ! -- BEGIN PAGE LEVEL PLUGINS -- >
< ! -- 表格的样式信息lxy -- >
< link rel= "stylesheet"
href= "<%=basePath%>css/bootstrap/bootstrap-table.min.css" / >
< ! -- 图标和默认样式-- >
< ! -- < link rel= "stylesheet" type= "text/css" href= "http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.css" > -- >
< ! -- < link rel= "stylesheet" type= "text/css" href= "http://cdn.bootcss.com/font-awesome/4.6.0/css/font-awesome.min.css" > -- >
< ! -- 核心样式-- >
< link href= "<%=basePath%>css/ySelect.css" rel= "stylesheet"
type= "text/css" >
< script src= "<%=basePath%>js/jquery-1.11.3.min.js" > < / script>
< script src= "<%=basePath%>js/bootstrap.min.js" > < / script>
< script src= "<%=basePath%>js/ySelect.js" > < / script>
< link rel= "stylesheet" type= "text/css"
href= "<%=basePath%>easyui/themes/default/easyui.css" >
< % -- < script src= "<%=basePath%>easyui/jquery.easyui.min.js" > < / script> -- % >
< link type= "text/css" rel= "stylesheet"
href= "<%=basePath%>jeDate/skin/jedate.css" >
< script type= "text/javascript" src= "<%=basePath%>jeDate/src/jedate.js" > < / script>
< script src= "<%=basePath %>js/bootstrap/center-loader.js" > < / script>
< script src= "<%=basePath%>js/bootstrap/bootstrap-table.min.js" > < / script>
< script src= "<%=basePath%>js/bootstrap/bootstrap-table-zh-CN.min.js" > < / script>
< / head>
< style>
* {
font- family: "微软雅黑" ;
font- size: 16 px;
letter- spacing: 2 px;
}
< / style>
< style>
{
color: #fff;
border- color: #b1b0b0;
background: #b1b0b0;
border: none;
}
. start {
cursor: pointer;
}
. end {
cursor: pointer;
color: #fff;
background: #b1b0b0;
border: none;
font- family: "微软雅黑" ;
font- size: 20 px;
letter- spacing: 2 px;
}
< / style>
< body>
< div class = "page-content" >
< ! -- < ul class = "page-breadcrumb breadcrumb" > -- >
< ! -- < li > -- >
< ! -- < span style= "color:#5e738b;font-size: 16px;" > < / span> -- >
< ! -- < span style= "color:#5e738b;font-size: 16px;margin-left: 27px;" > 边坡项目< / span> -- >
< ! -- < i class = "fa fa-circle" > < / i> -- >
< ! -- < / li> -- >
< ! -- < li> -- >
< ! -- < span style= "font-size: 16px;" > 实时监测< / span> -- >
< ! -- < / li> -- >
< ! -- < / ul> -- >
< ! -- < ul class = "page-breadcrumb breadcrumb" >
< li >
< span style= "color:#5e738b;font-size: 16px;" > < / span>
< span style= "color:#5e738b;font-size: 16px;margin-left: 27px;" > 边坡项目< / span>
< i class = "fa fa-circle" > < / i>
< / li>
< li>
< span style= "font-size: 16px;" > 实时监测< / span>
< / li>
< / ul> -- >
< div class = "row" >
< div class = "col-md-12" >
< div class = "row clearfix" style= "font-size: 20px; margin-left: 5px" >
< c: forEach items= "${list }" var = "list" varStatus= "status" >
< button type= "button" class = "flag ${list.MT_DELFLAG}"
onclick= "dj(this);" value= "${list.MT_FID }"
id= "searchBtn${list.MT_TYPE }" > ${ list. MT_NAME } < / button>
< / c: forEach>
< / div>
< div class = "tabbable-line" style= "font-size: 20px; margin-left: 5px" >
< c: forEach items= "${list}" var = "list" varStatus= "status" begin= "0" >
< c: if test= "${list.MT_TYPE == 1 }" >
< ul class = "nav nav-tabs" id= "ui${list.MT_TYPE}" style= "display: block;" >
< c: forEach items= "${list.children }" var = "list1" varStatus= "status" begin= "0" >
< c: if test= "${status.index+1 eq 1}" >
< li class = "active" id= "${list1.MT_FID}" value= "${status.index+1}" >
< a id= "t_${status.index+1 }" data- toggle= "tab" lang= "${status.index }" style= "font-size: 16px;" > ${ list1. MT_NAME } < / a>
< / li>
< / c: if >
< c: if test= "${status.index+1 != 1}" >
< li id= "${list1.MT_FID}" value= "${status.index+1}" >
< a id= "t_${status.index+1 }" data- toggle= "tab" lang= "${status.index }" style= "font-size: 16px;" > ${ list1. MT_NAME } < / a>
< / li>
< / c: if >
< / c: forEach>
< / ul>
< / c: if >
< c: if test= "${list.MT_TYPE != 1 }" >
< ul class = "nav nav-tabs" id= "ui${list.MT_TYPE}" style= "display: none;" >
< c: forEach items= "${list.children }" var = "list1" varStatus= "status" begin= "0" >
< c: choose>
< c: when test= "${status.index+1 eq 1}" >
< li class = "active" id= "${list1.MT_FID}" value= "${list.MT_TYPE}${status.index+1}" >
< a id= "t_${list.MT_TYPE}${status.index+1 }"
data- toggle= "tab" lang= "${status.index }"
style= "font-size: 16px;" > ${ list1. MT_NAME } < / a>
< / li>
< / c: when>
< c: otherwise>
< li id= "${list1.MT_FID}" value= "${list.MT_TYPE}${status.index+1}" >
< a id= "t_${list.MT_TYPE}${status.index+1 }" data- toggle= "tab"
lang= "${status.index }" style= "font-size: 16px;" > ${ list1. MT_NAME } < / a>
< / li>
< / c: otherwise>
< / c: choose>
< / c: forEach>
< / ul>
< / c: if >
< / c: forEach>
< / div>
< / div>
< div class = "tab-pane fade active in" id= "tab_1_1" style= "margin-top: 10px;" >
< div class = "row" >
< div class = "col-md-12" >
< div class = "portlet light bordered" style= "height: 714px" >
< div class = "nav nav-tabs" style= "font-size: 18px;" >
< div id= "item_li" >
< c: forEach items= "${list}" var = "list" varStatus= "status" begin= "0" >
< c: forEach items= "${list.children}" var = "list1" varStatus= "status1" begin= "0" >
< ul id= "${status.index+1}${status1.index+1}" class = "nav nav-tabs" style= "display: none;margin-left: 13px" >
< c: forEach items= "${list1.children }" var = "list2" varStatus= "status2" begin= "0" >
< c: if test= "${status2.index+1 eq 1}" >
< li class = "val${status.index+1}${status1.index+1} active" onclick= "showMtInfo('${list2.MT_FID}','${status.index+1}${status1.index+1}${status2.index+1}')" id= "${list2.MT_FID}" value= "${status.index+1}${status1.index+1}${status2.index+1}" >
< a id= "t_${status.index+1}${status1.index+1}${status2.index+1}" data- toggle= "tab" lang= "${status2.index }" > ${ list2. MT_NAME } < / a>
< / li>
< / c: if >
< c: if test= "${status2.index+1 != 1}" >
< li class = "val${status.index+1}${status1.index+1}" onclick= "showMtInfo('${list2.MT_FID}','${status.index+1}${status1.index+1}${status2.index+1}')" id= "${list2.MT_FID}" value= "${status.index+1}${status1.index+1}${status2.index+1}" >
< a id= "t_${status.index+1}${status1.index+1}${status2.index+1}" data- toggle= "tab" lang= "${status2.index }" > ${ list2. MT_NAME } < / a>
< / li>
< / c: if >
< / c: forEach>
< / ul>
< / c: forEach>
< / c: forEach>
< / div>
< / div>
< div class = "table-scrollable table-responsive" >
< input type= "hidden" id= "mtfid" value= "" >
< table id= "init"
class = "table table-striped table-bordered table-hover table-checkable order-column table text-nowrap" >
< / table>
< / div>
< / div>
< / div>
< / div>
< / div>
< / div>
< / div>
< script type= "text/javascript" >
$ ( function ( ) {
$ ( "#searchBtn1" ) . on ( "click" , function ( ) {
$ ( "#ui1" ) . click ( )
$ ( "#ui1" ) . show ( ) ;
$ ( "#ui1" ) . find ( "li" ) . prop ( "class" , "" )
$ ( "#ui1" ) . find ( "li:first" ) . prop ( "class" , "active" )
$ ( "#ui2" ) . hide ( ) ;
$ ( "#ui2" ) . find ( "li" ) . prop ( "class" , "" )
$ ( "#ui3" ) . hide ( ) ;
$ ( "#ui3" ) . find ( "li" ) . prop ( "class" , "" )
$ ( '#11' ) . show ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
$ ( '#t_111' ) . click ( ) ;
initSurfaceOneOneOne ( ) ;
} )
$ ( "#searchBtn2" ) . on ( "click" , function ( ) {
$ ( "#ui2" ) . click ( )
$ ( "#ui2" ) . show ( ) ;
$ ( "#ui2" ) . find ( "li" ) . prop ( "class" , "" )
$ ( "#ui2" ) . find ( "li:first" ) . prop ( "class" , "active" )
$ ( "#ui1" ) . hide ( ) ;
$ ( "#ui1" ) . find ( "li" ) . prop ( "class" , "" )
$ ( "#ui3" ) . hide ( ) ;
$ ( "#ui3" ) . find ( "li" ) . prop ( "class" , "" )
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . show ( ) ;
$ ( '#t_211' ) . click ( ) ;
initDeformationTwoOneOne ( ) ;
} )
$ ( "#searchBtn3" ) . on ( "click" , function ( ) {
$ ( "#ui3" ) . click ( )
$ ( "#ui3" ) . show ( ) ;
$ ( "#ui3" ) . find ( "li" ) . prop ( "class" , "" )
$ ( "#ui3" ) . find ( "li:first" ) . prop ( "class" , "active" )
$ ( "#ui1" ) . hide ( ) ;
$ ( "#ui1" ) . find ( "li" ) . prop ( "class" , "" )
$ ( "#ui2" ) . hide ( ) ;
$ ( "#ui2" ) . find ( "li" ) . prop ( "class" , "" )
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
initRainfall ( ) ;
} )
} ) ;
$ ( "#t_1" ) . on ( "click" , function ( ) {
$ ( "#t_1" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_2" ) . parent ( ) . prop ( "class" , "" )
$ ( '#11' ) . show ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
$ ( '#t_111' ) . click ( ) ;
initSurfaceOneOneThree ( ) ;
} )
function showMtInfo ( mtfid, index) {
$ ( "#mtfid" ) . val ( mtfid) ;
if ( "113" == index) {
initSurfaceOneOneOne ( ) ;
} else if ( "112" == index) {
initSurfaceOneOneTwo ( ) ;
} else if ( "111" == index) {
initSurfaceOneOneThree ( ) ;
} else if ( "121" == index) {
initDeepDisplacementOneTwoOne ( ) ;
} else if ( "122" == index) {
initDeepDisplacementOneTwoTwo ( ) ;
} else if ( "211" == index) {
initDeformationTwoOneOne ( ) ;
} else if ( "212" == index) {
initDeformationTwoOneTwo ( ) ;
}
}
function initSurfaceOneOneOne ( mtfid) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams111,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: 'GNSS监测' ,
worksheetName: 'sheet1' ,
tableName: 'GNSS监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_X' ,
title: '#X(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_Y' ,
title: '#Y(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_H' ,
title: '#H(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams111 ( params) {
var RSM_SECOND_TYPE = $ ( "#mtfid" ) . val ( ) ;
var temp = {
RSM_SECOND_TYPE : RSM_SECOND_TYPE ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
function initSurfaceOneOneTwo ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams112,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '地表水平位移监测' ,
worksheetName: 'sheet1' ,
tableName: '地表水平位移监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams112 ( params) {
var RSM_SECOND_TYPE = $ ( "#mtfid" ) . val ( ) ;
var temp = {
RSM_SECOND_TYPE : RSM_SECOND_TYPE ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
function initSurfaceOneOneThree ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams113,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '地表垂直位移监测' ,
worksheetName: 'sheet1' ,
tableName: '地表垂直位移监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams113 ( params) {
var RSM_SECOND_TYPE = $ ( "#mtfid" ) . val ( ) ;
var temp = {
RSM_SECOND_TYPE : RSM_SECOND_TYPE ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( "#t_2" ) . on ( "click" , function ( ) {
$ ( "#t_1" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_2" ) . parent ( ) . prop ( "class" , "" )
$ ( '#12' ) . show ( ) ;
$ ( '#21' ) . hide ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#t_121' ) . click ( ) ;
initDeepDisplacementOneTwoOne ( ) ;
} )
function initDeepDisplacementOneTwoOne ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams121,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '深部水平位移' ,
worksheetName: 'sheet1' ,
tableName: '深部水平位移' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_DEPTH' ,
title: '测点深度' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '水平相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams121 ( params) {
var RSM_SECOND_TYPE = $ ( "#mtfid" ) . val ( ) ;
var temp = {
RSM_SECOND_TYPE : RSM_SECOND_TYPE ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
function initDeepDisplacementOneTwoTwo ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams122,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '深部分层沉降' ,
worksheetName: 'sheet1' ,
tableName: '深部分层沉降' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_DEPTH' ,
title: '测点深度' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '沉降相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams122 ( params) {
var RSM_SECOND_TYPE = $ ( "#mtfid" ) . val ( ) ;
var temp = {
RSM_SECOND_TYPE : RSM_SECOND_TYPE ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_3' ) . on ( "click" , function ( ) {
$ ( "#t_1" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_2" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_3" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_4" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_5" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_6" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_3" ) . parent ( ) . prop ( "class" , "active" )
initGroundwater ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} )
function initGroundwater ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams3,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '地下水位监测' ,
worksheetName: 'sheet1' ,
tableName: '地下水位监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初始水位(cm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '当前水位(cm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams3 ( params) {
var value11 = $ ( '.active' ) . attr ( "id" ) ;
var temp = {
RSM_FIRST_TYPE : value11,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_4' ) . on ( "click" , function ( ) {
$ ( "#t_1" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_2" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_3" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_4" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_5" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_6" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_4" ) . parent ( ) . prop ( "class" , "active" )
initPoreWaterPressure ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} )
function initPoreWaterPressure ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'post' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams4,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '孔隙水压力监测' ,
worksheetName: 'sheet1' ,
tableName: '孔隙水压力监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初始值(kPa)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '当前值(kPa)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams4 ( params) {
var value11 = $ ( '.active' ) . attr ( "id" ) ;
var temp = {
RSM_FIRST_TYPE : value11,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_5' ) . on ( "click" , function ( ) {
$ ( "#t_1" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_2" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_3" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_4" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_5" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_6" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_5" ) . parent ( ) . prop ( "class" , "active" )
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
initEarthPressure ( ) ;
} )
function initEarthPressure ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'post' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams5,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '土压力监测' ,
worksheetName: 'sheet1' ,
tableName: '土压力监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_CURRENT_SOILRESSURE' ,
title: '当前土压力(kPa)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
} else if ( value != null && value. length> 0 && value. length< 20 ) { value = value; } else { value = "-" }
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams5 ( params) {
var value11 = $ ( '.active' ) . attr ( "id" ) ;
var temp = {
RSM_FIRST_TYPE : value11,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_6' ) . on ( "click" , function ( ) {
$ ( "#t_1" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_2" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_3" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_4" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_5" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_6" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_6" ) . parent ( ) . prop ( "class" , "active" )
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
initCrack ( ) ;
} )
function initCrack ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'post' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams6,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '裂缝监测' ,
worksheetName: 'sheet1' ,
tableName: '裂缝监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams6 ( params) {
var value11 = $ ( '.active' ) . attr ( "id" ) ;
var temp = {
RSM_FIRST_TYPE : value11,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_21' ) . on ( "click" , function ( ) {
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . show ( ) ;
initDeformationTwoOneOne ( ) ;
$ ( '#t_211' ) . click ( ) ;
} )
function initDeformationTwoOneOne ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams211,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '变形监测' ,
worksheetName: 'sheet1' ,
tableName: '变形监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '水平相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams211 ( params) {
var RSM_SECOND_TYPE = $ ( "#mtfid" ) . val ( ) ;
var temp = {
RSM_SECOND_TYPE : RSM_SECOND_TYPE ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
function initDeformationTwoOneTwo ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams212,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '变形监测' ,
worksheetName: 'sheet1' ,
tableName: '变形监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '垂直相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams212 ( params) {
var RSM_SECOND_TYPE = $ ( "#mtfid" ) . val ( ) ;
var temp = {
RSM_SECOND_TYPE : RSM_SECOND_TYPE ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_22' ) . on ( "click" , function ( ) {
$ ( "#t_21" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_22" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_23" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_24" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_22" ) . parent ( ) . prop ( "class" , "active" )
initAxialForce ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} )
function initAxialForce ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams9,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '轴力监测' ,
worksheetName: 'sheet1' ,
tableName: '轴力监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams9 ( params) {
var temp = {
RSM_FIRST_TYPE : $ ( '.active' ) . attr ( "id" ) ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_23' ) . on ( "click" , function ( ) {
$ ( "#t_21" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_22" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_23" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_24" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_23" ) . parent ( ) . prop ( "class" , "active" )
initCrack2 ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} )
function initCrack2 ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams10,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '裂缝监测' ,
worksheetName: 'sheet1' ,
tableName: '裂缝监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '相对变化量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams10 ( params) {
var temp = {
RSM_FIRST_TYPE : $ ( '.active' ) . attr ( "id" ) ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_24' ) . on ( "click" , function ( ) {
$ ( "#t_21" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_22" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_23" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_24" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_24" ) . parent ( ) . prop ( "class" , "active" )
initStrain_Stress ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} )
function initStrain_Stress ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams11,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '应变/应力监测' ,
worksheetName: 'sheet1' ,
tableName: '应变/应力监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_FIRST_VALUE' ,
title: '初值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_PRESENT' ,
title: '现值' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RELATIVE' ,
title: '相对变化量(微应变)应变/应力(kPa)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams11 ( params) {
var temp = {
RSM_FIRST_TYPE : $ ( '.active' ) . attr ( "id" ) ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_31' ) . on ( "click" , function ( ) {
$ ( "#t_31" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_32" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_31" ) . parent ( ) . prop ( "class" , "active" )
initRainfall ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} )
function initRainfall ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'post' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams12,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '雨量监测' ,
worksheetName: 'sheet1' ,
tableName: '雨量监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_RAINFALL' ,
title: '实时降雨量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_CUMULATIVE_RAINFALL' ,
title: '本次累计降雨量(mm)' ,
valign: 'middle' ,
align: 'center' ,
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams12 ( params) {
var temp = {
RSM_FIRST_TYPE : $ ( '.active' ) . attr ( "id" ) ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( '#t_32' ) . on ( "click" , function ( ) {
$ ( "#t_31" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_32" ) . parent ( ) . prop ( "class" , "" )
$ ( "#t_32" ) . parent ( ) . prop ( "class" , "active" )
initWetTemperature ( ) ;
$ ( '#11' ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} )
function initWetTemperature ( ) {
$ ( 'body' ) . loader ( 'show' , '<img src="<%=basePath %>images/loading1.gif">' ) ;
$ ( '#init' ) . bootstrapTable ( 'destroy' ) ;
$ ( '#init' ) . bootstrapTable ( {
method: 'get' ,
contentType: "application/x-www-form-urlencoded" ,
url : '<%=basePath%>realTimeMonitor/initRealTimeMonitor.te' ,
cache: false ,
pagination: true ,
paginationHAlign: 'right' ,
queryParamsType: '' ,
queryParams: queryParams13,
singleSelect: false ,
pageSize: 10 ,
pageList: [ 10 , 20 , 30 ] ,
search: false ,
showColumns: false ,
sidePagination: "server" ,
striped: true ,
clickToSelect: true ,
showExport: false ,
buttonsAlign: "right" ,
exportTypes: [ 'excel' ] ,
Icons: 'glyphicon-export' ,
exportOptions: {
ignoreColumn: [ 0 ] ,
fileName: '湿温度监测' ,
worksheetName: 'sheet1' ,
tableName: '湿温度监测' ,
excelstyles: [ 'background-color' , 'color' , 'font-size' , 'font-weight' ] ,
} ,
uniqueId: 'rownum_' ,
columns: [
{
field: 'rownum_' ,
title: '序号' ,
sortable: true ,
align: 'center' ,
width: 40 ,
formatter: function ( value, row, index) {
var pageSize= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageSize;
var pageNumber= $ ( '#init' ) . bootstrapTable ( 'getOptions' ) . pageNumber;
return pageSize * ( pageNumber - 1 ) + index + 1 ;
}
} ,
{
field: 'point' ,
title: '测点' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_EM_FID' ,
title: '设备编号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'type' ,
title: '设备类型' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'model' ,
title: '设备型号' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_TEMPERATURE' ,
title: '温度' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_HUMIDITY' ,
title: '湿度' ,
valign: 'middle' ,
align: 'center' ,
} ,
{
field: 'rsm_COLLECTION_TIME' ,
title: '采集时间' ,
valign: 'middle' ,
align: 'center' ,
formatter: function ( value, row, index) {
var temp= value;
if ( value != null && value. length> 19 ) {
value= value. substring ( 0 , 19 ) ;
}
return '<div title="' + temp+ '">' + value+ '</div>' ;
}
} ] ,
onLoadSuccess: function ( ) {
$ ( 'body' ) . loader ( 'hide' ) ;
} ,
onLoadError: function ( ) {
window. parent. modalOutError ( "数据加载失败!" ) ;
}
} ) ;
} ;
function queryParams13 ( params) {
var temp = {
RSM_FIRST_TYPE : $ ( '.active' ) . attr ( "id" ) ,
pageSize: params. pageSize,
pageNumber: params. pageNumber,
} ;
return temp;
}
$ ( function ( ) {
$ ( "#ui1" ) . show ( ) ;
$ ( "#ui2" ) . hide ( ) ;
$ ( "#ui3" ) . hide ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
$ ( '#11' ) . show ( ) ;
$ ( '#t_111' ) . click ( ) ;
initSurfaceOneOneThree ( ) ;
} )
$ ( function ( ) {
var collection = $ ( ".flag" ) ;
$. each ( collection, function ( ) {
$ ( this ) . addClass ( "start" ) ;
$ ( "#searchBtn1" ) . removeClass ( "start" ) ;
$ ( "#searchBtn1" ) . addClass ( "end" ) ;
$ ( '#11' ) . show ( ) ;
$ ( '#12' ) . hide ( ) ;
$ ( '#21' ) . hide ( ) ;
} ) ;
} ) ;
function dj ( dom) {
var collection = $ ( ".flag" ) ;
$. each ( collection, function ( ) {
$ ( this ) . removeClass ( "end" ) ;
$ ( this ) . addClass ( "start" ) ;
} ) ;
$ ( dom) . removeClass ( "start" ) ;
$ ( dom) . addClass ( "end" ) ;
}
< / script>
< / body>
< / html>
controller
package enytek. com. cn. controller. realTimeMonitor;
import java. math. BigDecimal;
import java. text. SimpleDateFormat;
import java. util. ArrayList;
import java. util. Arrays;
import java. util. Calendar;
import java. util. Date;
import java. util. HashMap;
import java. util. List;
import java. util. Map;
import javax. servlet. http. HttpSession;
import org. springframework. beans. factory. annotation. Autowired;
import org. springframework. stereotype. Controller;
import org. springframework. ui. Model;
import org. springframework. web. bind. annotation. RequestMapping;
import org. springframework. web. bind. annotation. RequestParam;
import org. springframework. web. bind. annotation. ResponseBody;
import enytek. com. cn. annotation. LogRecord;
import enytek. com. cn. exception. dealwithallex. RealInsertLog;
import enytek. com. cn. model. dataAnalysis. DataAnalysisEntity;
import enytek. com. cn. model. equipmentInfo. EquipmentInfoEntity;
import enytek. com. cn. model. functionbuttoninfo. FunctionButtonInfoModel;
import enytek. com. cn. model. holdingcopany. HoldingCompanyModel;
import enytek. com. cn. model. ltemType. ItemTypeEntity;
import enytek. com. cn. model. menuinfo. MenuInfoModel;
import enytek. com. cn. model. monitorType. MonitorTypeEntity;
import enytek. com. cn. model. realTimeMonitor. RealTimeMonitorEntity;
import enytek. com. cn. model. sysDataDictionary. SysDataDictionayModel;
import enytek. com. cn. model. termMeasurePoinks. TermMeasurePoinksEntity;
import enytek. com. cn. model. termWorkPoinks. TermWorkPoinks;
import enytek. com. cn. model. userInfo. UserInfoEntity;
import enytek. com. cn. service. Userinfo. UserInfoService;
import enytek. com. cn. service. dataAnalysis. DataAnalysisService;
import enytek. com. cn. service. equipmentInfo. EquipmentInfoService;
import enytek. com. cn. service. ltemType. ItemTypeService;
import enytek. com. cn. service. monitorType. MonitorTypeService;
import enytek. com. cn. service. realTimeMonitor. RealTimeMonitorService;
import enytek. com. cn. service. warning. DataWarningService;
import enytek. com. cn. util. CommonUtil;
import enytek. com. cn. util. LogType;
import enytek. com. cn. util. echecomap. EhcacheMapUtil;
import enytek. com. cn. util. userlimit. AllLimitUtil;
@Controller
@RequestMapping ( "realTimeMonitor" )
public class RealTimeMonitorController {
@Autowired
private RealTimeMonitorService realTimeMonitorService;
@Autowired
private UserInfoService userInfoService;
@Autowired
private MonitorTypeService monitorTypeService;
@Autowired
private DataAnalysisService dataAnalysisService;
@Autowired
private ItemTypeService itemTypeService;
@Autowired
private EquipmentInfoService equipmentInfoService;
@Autowired
private DataWarningService dataWarningService;
@RequestMapping ( "shownoChangeFidInfo" )
public String shownoChangeFidInfo ( HttpSession session, String noChangeFid, Model model, String auditFid) {
UserInfoEntity userInfo = ( UserInfoEntity) session. getAttribute ( "LoginUserInfo" ) ;
MonitorTypeEntity mte = new MonitorTypeEntity ( ) ;
mte. setMT_GRADE_TYPE ( "0" ) ;
String[ ] aaa= { "btn blue" , "btn yellow" , "btn green" , "btn white" } ;
List< MonitorTypeEntity> mteList = monitorTypeService. selectMonitorTypeInfo ( mte) ;
MonitorTypeEntity mte1 = new MonitorTypeEntity ( ) ;
List< MonitorTypeEntity> selectMonitorTypeInfo = monitorTypeService. selectMonitorTypeInfo ( mte1) ;
for ( int i = 0 ; i < mteList. size ( ) ; i++ ) {
if ( mteList. get ( i) . getMT_TYPE ( ) != null && mteList. get ( i) . getMT_TYPE ( ) . equals ( "1" ) ) {
mteList. get ( i) . setMT_DELFLAG ( aaa[ 0 ] ) ;
} else if ( mteList. get ( i) . getMT_TYPE ( ) != null && mteList. get ( i) . getMT_TYPE ( ) . equals ( "2" ) ) {
mteList. get ( i) . setMT_DELFLAG ( aaa[ 1 ] ) ;
} else if ( mteList. get ( i) . getMT_TYPE ( ) != null && mteList. get ( i) . getMT_TYPE ( ) . equals ( "3" ) ) {
mteList. get ( i) . setMT_DELFLAG ( aaa[ 2 ] ) ;
} else {
mteList. get ( i) . setMT_DELFLAG ( aaa[ 3 ] ) ;
}
List< MonitorTypeEntity> list = new ArrayList < > ( ) ;
for ( int j = 0 ; j < selectMonitorTypeInfo. size ( ) ; j++ ) {
if ( mteList. get ( i) . getMT_FID ( ) . equals ( selectMonitorTypeInfo. get ( j) . getMT_SUPERIOR ( ) ) ) {
list. add ( selectMonitorTypeInfo. get ( j) ) ;
}
}
for ( int z = 0 ; z < list. size ( ) ; z++ ) {
List< MonitorTypeEntity> list1 = new ArrayList < > ( ) ;
for ( int j = selectMonitorTypeInfo. size ( ) - 1 ; j >= 0 ; j-- ) {
if ( list. get ( z) . getMT_FID ( ) . equals ( selectMonitorTypeInfo. get ( j) . getMT_SUPERIOR ( ) ) ) {
list1. add ( selectMonitorTypeInfo. get ( j) ) ;
}
}
list. get ( z) . setChildren ( list1) ;
}
mteList. get ( i) . setChildren ( list) ;
}
model. addAttribute ( "list" , mteList) ;
MenuInfoModel menuInfo = ( MenuInfoModel) session. getAttribute ( "LtInfo" ) ;
String mi_PROJECT = menuInfo. getMI_PROJECT ( ) ;
TermWorkPoinks termWorkPoinks = new TermWorkPoinks ( ) ;
termWorkPoinks. setTREM_PROJECT_FID ( mi_PROJECT) ;
List< TermWorkPoinks> selectWorks = dataWarningService. selectWorks ( termWorkPoinks) ;
List< String> worksList = new ArrayList < > ( ) ;
for ( int i = 0 ; i < selectWorks. size ( ) ; i++ ) {
worksList. add ( selectWorks. get ( i) . getTREM_FID ( ) ) ;
}
List< MonitorTypeEntity> monitorList = dataAnalysisService. monitorList ( ) ;
model. addAttribute ( "monitorList" , monitorList) ;
Object obj = EhcacheMapUtil. getObject ( "btn" + userInfo. getUI_FID ( ) ) ;
if ( obj!= null) {
List< FunctionButtonInfoModel> tempList = ( List< FunctionButtonInfoModel> ) obj;
List< FunctionButtonInfoModel> resultList = new ArrayList < FunctionButtonInfoModel> ( ) ;
AllLimitUtil. getButtonListInfoFromFid ( noChangeFid, tempList, resultList) ;
model. addAttribute ( "allPollutantDeliveryBtn" , resultList) ;
if ( resultList!= null && resultList. size ( ) > 0 ) {
for ( int j = 0 ; j < resultList. size ( ) ; j++ ) {
List< FunctionButtonInfoModel> resultListErJi = new ArrayList < FunctionButtonInfoModel> ( ) ;
FunctionButtonInfoModel tempFunctionButtonInfoModel= resultList. get ( j) ;
String erJiFId = tempFunctionButtonInfoModel. getFBI_FID ( ) ;
AllLimitUtil. getButtonListInfoFromFid ( erJiFId, tempList, resultListErJi) ;
model. addAttribute ( "pollutantDeliverySecond" + resultList. get ( j) . getFBI_URL ( ) , resultListErJi) ;
}
}
model. addAttribute ( "auditFid" , auditFid) ;
} else {
return "permissionDenied" ;
}
return "realTimeMonitor/showRealTimeMonitor" ;
}
@RequestMapping ( "initRealTimeMonitor" )
@ResponseBody
public Map< String, Object> initRealTimeMonitor ( RealTimeMonitorEntity realTimeMonitor, DataAnalysisEntity DataAnalysis, HttpSession session, @RequestParam Integer pageSize, @RequestParam Integer pageNumber, Model model) throws Exception{
UserInfoEntity userInfo = ( UserInfoEntity) session. getAttribute ( "LoginUserInfo" ) ;
Map< String, Object> result = new HashMap < String, Object> ( ) ;
MenuInfoModel menuInfo = ( MenuInfoModel) session. getAttribute ( "LtInfo" ) ;
String projeceEquipFid = menuInfo. getProjeceEquipFid ( ) ;
if ( projeceEquipFid != null && projeceEquipFid. length ( ) > 0 ) {
List< String> list_num2 = Arrays. asList ( projeceEquipFid. split ( "," ) ) ;
if ( realTimeMonitor. getRSM_EM_FID ( ) == null || realTimeMonitor. getRSM_EM_FID ( ) == "" ) {
realTimeMonitor. setEI_NUMBER_List ( CommonUtil. getString ( "RSM_EM_FID" , userInfo. getCompanyList ( ) ) ) ;
}
List< EquipmentInfoEntity> equipmentList = dataAnalysisService. equipmentList ( DataAnalysis) ;
List< String> list_num1 = new ArrayList < String> ( ) ;
for ( int i = 0 ; i < equipmentList. size ( ) ; i++ ) {
list_num1. add ( equipmentList. get ( i) . getEMI_FID ( ) ) ;
}
List< String> list_num = new ArrayList < > ( ) ;
for ( int i = 0 ; i < list_num2. size ( ) ; i++ ) {
if ( list_num1. contains ( list_num2. get ( i) ) ) {
list_num. add ( list_num2. get ( i) ) ;
}
}
if ( list_num. size ( ) > 0 ) {
String string = CommonUtil. getString ( "RSM_EM_FID" , list_num) ;
realTimeMonitor. setEI_NUMBER_List ( string) ;
List< String> list = new ArrayList < > ( ) ;
list. add ( "REAL_TIME_MONITOR" ) ;
DataAnalysis. setList ( list) ;
List< RealTimeMonitorEntity> selectRealTimeMonitorPaging = realTimeMonitorService. selectRealTimeMonitorPaging ( realTimeMonitor, pageNumber, pageSize) ;
for ( int i = 0 ; i < selectRealTimeMonitorPaging. size ( ) ; i++ ) {
if ( selectRealTimeMonitorPaging. get ( i) . getRSM_PRESENT ( ) != null && ! "" . equals ( selectRealTimeMonitorPaging. get ( i) . getRSM_PRESENT ( ) ) ) {
RealTimeMonitorEntity realTimeMonitorEntity = selectRealTimeMonitorPaging. get ( i) ;
BigDecimal RSM_PRESENT = new BigDecimal ( realTimeMonitorEntity. getRSM_PRESENT ( ) ) ;
BigDecimal RSM_FIRST_VALUE = new BigDecimal ( realTimeMonitorEntity. getRSM_FIRST_VALUE ( ) ) ;
double RSM_RELATIVE = RSM_PRESENT. subtract ( RSM_FIRST_VALUE) . doubleValue ( ) ;
realTimeMonitorEntity. setRSM_RELATIVE ( String. valueOf ( RSM_RELATIVE) ) ;
realTimeMonitorEntity. setRSM_CURRENT_SOILRESSURE ( String. valueOf ( RSM_RELATIVE) ) ;
realTimeMonitorEntity. setRSM_ACCUMU ( String. valueOf ( RSM_RELATIVE) ) ;
} else {
realTimeMonitor. getRSM_RELATIVE ( ) ;
realTimeMonitor. getRSM_ACCUMU ( ) ;
}
}
Integer selectRealTimeMonitorCount = realTimeMonitorService. selectRealTimeMonitorCount ( realTimeMonitor) ;
result. put ( "total" , selectRealTimeMonitorCount) ;
result. put ( "rows" , selectRealTimeMonitorPaging) ;
} else {
result. put ( "total" , 0 ) ;
result. put ( "rows" , null) ;
}
} else {
result. put ( "total" , 0 ) ;
result. put ( "rows" , null) ;
}
return result;
}
public Map< String, Object> userEquipment ( HttpSession session, Model model) throws Exception{
UserInfoEntity userInfo = ( UserInfoEntity) session. getAttribute ( "LoginUserInfo" ) ;
Map< String, Object> result = new HashMap < String, Object> ( ) ;
EquipmentInfoEntity equipmentInfo = new EquipmentInfoEntity ( ) ;
equipmentInfo. setEMI_ESTABLISH_PEOPLE ( userInfo. getUI_FID ( ) ) ;
List< EquipmentInfoEntity> findAllUserInfo = equipmentInfoService. selectEquipInfo ( equipmentInfo) ;
if ( findAllUserInfo!= null && findAllUserInfo. size ( ) > 0 ) {
List< String> sti = new ArrayList < String> ( ) ;
for ( int j = 0 ; j < findAllUserInfo. size ( ) ; j++ ) {
sti. add ( findAllUserInfo. get ( j) . getEMI_FID ( ) ) ;
}
String companyFid = CommonUtil. getString ( "EMI_ESTABLISH_PEOPLE" , sti) ;
equipmentInfo. setEMI_ESTABLISH_PEOPLE_LIST ( companyFid) ;
} else {
equipmentInfo. setEMI_ESTABLISH_PEOPLE_LIST ( "" ) ;
}
return result;
}
}