201 lines
6.2 KiB
Plaintext
201 lines
6.2 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/incVisual.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;
|
|
}
|
|
|
|
.title1Div {
|
|
border-bottom: 5px solid #437099;
|
|
width: 95%;
|
|
height: 18%;
|
|
padding-bottom: 1%;
|
|
}
|
|
|
|
.qtitle {
|
|
font-family: Microsoft YaHei;
|
|
color:#437099;
|
|
}
|
|
</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++) {
|
|
if (data[i].elementCode.indexOf("title") != -1) {//获取车间名
|
|
var code = data[i].elementCode;
|
|
if (document.getElementById(code)) {//判断存不存在
|
|
//颜色
|
|
$('.' + code + 'Div').css("border-color", "#" + data[i].style);
|
|
document.getElementById(code).style.color = "#" + data[i].style;
|
|
//赋值
|
|
document.getElementById(code).innerHTML = data[i].name;
|
|
}
|
|
} else {
|
|
//获取值 和 获取Modbus
|
|
if (data[i].getValueType == '${Type_GetValue}' || data[i].getValueType == '${Type_GetModbus}') {
|
|
var code = data[i].elementCode;
|
|
if (document.getElementById(code)) {
|
|
document.getElementById(code).innerHTML = data[i].mPoint.parmvalue + data[i].mPoint.unit;
|
|
document.getElementById(code + "Name").innerHTML = data[i].name;
|
|
}
|
|
} 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();
|
|
document.body.style.backgroundColor = "#" + '${param.backgroundColor}';
|
|
//console.log("height",document.body.scrollHeight);
|
|
// $(".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.03 + "px"));
|
|
$(".whiteSpanSmallFont").css("font-size", (document.body.offsetWidth * 0.028 + "px"));
|
|
|
|
$(".qtitle").css("font-size", (document.body.offsetWidth * 0.05 + "px"));
|
|
$(".qcontent").css("font-size", (document.body.offsetWidth * 0.03 + "px"));
|
|
});
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body id="body" style="width:100%;height:100%;margin:0;padding:0;overflow-x:hidden;overflow-y:hidden">
|
|
<div style="width:93%;height:92%;margin:0 auto;margin-top:2%">
|
|
<div id="title1Div" class="title1Div">
|
|
<span id="title1" class="qtitle">称量中心工单状态</span>
|
|
</div>
|
|
<table style="width:95%;height:80%;margin:0 auto;border-collapse:separate;border-spacing:0px 6px;" >
|
|
<tr>
|
|
<td align="center">
|
|
<div class="blueSpanSmallFont">工单号</div>
|
|
</td>
|
|
<td align="center">
|
|
<div class="blueSpanSmallFont">状态</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">进行中</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">进行中</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">已完成</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">已完成</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">已审核</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">已审核</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">已审核</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">WO1912260001</div>
|
|
</td>
|
|
<td>
|
|
<div class="whiteSpanSmallFont">已审核</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |