239 lines
8.5 KiB
Plaintext
239 lines
8.5 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
|
<%@ page import="com.sipai.entity.base.ServerObject"%>
|
|
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security"%>
|
|
<%@page import="com.sipai.entity.visual.JspElement"%>
|
|
<%request.setAttribute("Type_GetValue", JspElement.Type_GetValue); %>
|
|
<%request.setAttribute("Type_GetHistory", JspElement.Type_GetHistory); %>
|
|
<%request.setAttribute("Type_GetModbus", JspElement.Type_GetModbus); %>
|
|
<%request.setAttribute("Type_GetHttp", JspElement.Type_GetHttp); %>
|
|
<!DOCTYPE html>
|
|
<!-- <html lang="zh-CN"> -->
|
|
<!-- BEGIN HEAD -->
|
|
|
|
<head>
|
|
<title></title>
|
|
<!-- 引用页头及CSS页-->
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
|
<style>
|
|
.blueSpanLargeFont {
|
|
color: #437099;
|
|
font-family: Microsoft YaHei;
|
|
}
|
|
|
|
.blueSpanMediumFont {
|
|
color: #74D5FF;
|
|
font-family: Microsoft YaHei;
|
|
}
|
|
|
|
.blueSpanSmallFont {
|
|
color: #437099;
|
|
font-family: Microsoft YaHei;
|
|
}
|
|
|
|
.whiteSpanLargeFont {
|
|
color: white;
|
|
font-family: Microsoft YaHei;
|
|
}
|
|
|
|
.whiteSpanMediumFont {
|
|
color: white;
|
|
font-family: Microsoft YaHei;
|
|
}
|
|
|
|
.whiteSpanSmallFont {
|
|
color: white;
|
|
font-family: Microsoft YaHei;
|
|
}
|
|
|
|
.deepBlueSpanLargeFont {
|
|
color: #4069B2;
|
|
font-family: Microsoft YaHei;
|
|
font-weight: bold
|
|
}
|
|
|
|
.lightBlueSpanLargeFont {
|
|
color: #74D5FF;
|
|
font-family: Microsoft YaHei;
|
|
}
|
|
|
|
.UserPanel {
|
|
background: #182F52;
|
|
border-radius: 20px;
|
|
border: 4px solid #426AB2;
|
|
}
|
|
|
|
.userNumTable {
|
|
width: 100%;
|
|
height: 80%;
|
|
padding-left: 5%;
|
|
padding-right: 5%;
|
|
padding-top: 2%;
|
|
border-collapse: separate;
|
|
border-spacing: 0px 6px;
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function getValue() {
|
|
$.post(ext.contextPath + '/plan/getJspWholeInfoByPlanLayoutId.do', { planLayoutId: "${param.planLayoutId}" }, function (data) {
|
|
//每一条循环判断
|
|
for (var i = 0; i < data.length; i++) {
|
|
//获取值 和 获取Modbus
|
|
if (data[i].getValueType == '${Type_GetValue}' || data[i].getValueType == '${Type_GetModbus}') {
|
|
var code = data[i].elementCode;
|
|
document.getElementById(code).innerHTML = data[i].mPoint.parmvalue;
|
|
} else if (data[i].getValueType == '${Type_GetHistory}') {
|
|
|
|
} else if (data[i].getValueType == '${Type_GetHttp}') {
|
|
var code = data[i].elementCode;
|
|
document.getElementById(code).innerHTML = data[i].value;
|
|
} else {
|
|
|
|
}
|
|
}
|
|
}, 'json');
|
|
}
|
|
/* 定时器 */
|
|
//setInterval(getValue, 300000); //<!--每隔5分钟刷新一次-->
|
|
|
|
|
|
/* 初始化 */
|
|
$(function () {
|
|
//getValue();
|
|
//console.log("height",document.body.scrollHeight);
|
|
document.body.style.backgroundColor = "#" + '${param.backgroundColor}';
|
|
$(".blueSpanLargeFont").css("font-size", (document.body.offsetWidth * 0.0625 + "px"));
|
|
$(".blueSpanMediumFont").css("font-size", (document.body.offsetWidth * 0.0547 + "px"));
|
|
$(".blueSpanSmallFont").css("font-size", (document.body.offsetWidth * 0.0469 + "px"));
|
|
$(".whiteSpanSmallFont").css("font-size", (document.body.offsetWidth * 0.0469 + "px"));
|
|
$(".deepBlueSpanLargeFont").css("font-size", (document.body.offsetWidth * 0.05 + "px"));
|
|
$(".lightBlueSpanLargeFont").css("font-size", (document.body.offsetWidth * 0.05 + "px"));
|
|
//document.getElementById('userImg').style.width = document.body.offsetWidth * 0.09375 + "px";
|
|
document.getElementById('userImg2').style.width = document.body.offsetWidth * 0.135 + "px";
|
|
document.getElementById('userImg3').style.width = document.body.offsetWidth * 0.135 + "px";
|
|
document.getElementById('userImg4').style.width = document.body.offsetWidth * 0.135 + "px";
|
|
document.getElementById('userImg5').style.width = document.body.offsetWidth * 0.135 + "px";
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body style="width:100%;height:100%;margin:0;padding:0;overflow-x:hidden;overflow-y:hidden">
|
|
<div class="container" style="width:100%;height:100%;margin:0;padding:0px;">
|
|
<div class="row" style="width:100%;height:100%;text-align:center;margin:0;">
|
|
<div style="width:50%;height:100%;float:left;margin-top:5%;">
|
|
<table style="width:100%;height:99%;padding-left:4%">
|
|
<tr align="center">
|
|
<td style="width:98%;height:49%;padding:3%;padding-bottom:3%">
|
|
<div class="UserPanel" style="width:90%;height:85%;">
|
|
<table style="width:100%;height:100%;text-align: center">
|
|
<tr>
|
|
<td rowspan="2">
|
|
<img id="userImg2" src="<%=request.getContextPath()%>/IMG/material/user.png" />
|
|
</td>
|
|
<td>
|
|
<div class="deepBlueSpanLargeFont">生产经理</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<div id="processLeader" class="lightBlueSpanLargeFont">李磊</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width:98%;height:49%;padding:5%;padding-top:3%" align="center">
|
|
<div class="UserPanel" style="width:90%;height:85%;">
|
|
<table style="width:100%;height:100%;text-align: center;">
|
|
<tr>
|
|
<td rowspan="2">
|
|
<img id="userImg3" src="<%=request.getContextPath()%>/IMG/material/user.png" />
|
|
</td>
|
|
<td>
|
|
<div class="deepBlueSpanLargeFont">生产主管</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<div id="equLeader" class="lightBlueSpanLargeFont">陈晨</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="width:50%;height:100%;float:right;margin-top:5%;">
|
|
<table style="width:100%;height:99%;padding-left:4%">
|
|
<tr align="center">
|
|
<td style="width:98%;height:49%;padding:3%;padding-bottom:3%">
|
|
<div class="UserPanel" style="width:90%;height:85%;">
|
|
<table style="width:100%;height:100%;text-align: center">
|
|
<tr>
|
|
<td rowspan="2">
|
|
<img id="userImg4" src="<%=request.getContextPath()%>/IMG/material/user.png" />
|
|
</td>
|
|
<td>
|
|
<div class="deepBlueSpanLargeFont">生产主管</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<div id="processLeader" class="lightBlueSpanLargeFont">王盛煜</div>
|
|
</td>
|
|
</tr>
|
|
<!-- <tr>
|
|
<td colspan="2">
|
|
<div id="processLeaderPhone" class="lightBlueSpanLargeFont"></div>
|
|
</td>
|
|
</tr> -->
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width:98%;height:49%;padding:5%;padding-top:3%" align="center">
|
|
<div class="UserPanel" style="width:90%;height:85%;">
|
|
<table style="width:100%;height:100%;text-align: center;">
|
|
<tr>
|
|
<td rowspan="2">
|
|
<img id="userImg5" src="<%=request.getContextPath()%>/IMG/material/user.png" />
|
|
</td>
|
|
<td>
|
|
<div class="deepBlueSpanLargeFont">现场QA</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<div id="equLeader" class="lightBlueSpanLargeFont">杨剑</div>
|
|
</td>
|
|
</tr>
|
|
<!-- <tr>
|
|
<td colspan="2">
|
|
<div id="equLeaderPhone" class="lightBlueSpanLargeFont"></div>
|
|
</td>
|
|
</tr> -->
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |