first commit
This commit is contained in:
168
WebRoot/jsp/visual/modules/workOrderInfo.jsp
Normal file
168
WebRoot/jsp/visual/modules/workOrderInfo.jsp
Normal file
@ -0,0 +1,168 @@
|
||||
<%@ 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 #5AD8FF;
|
||||
width: 95%;
|
||||
height: 18%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.qtitle {
|
||||
font-family: Microsoft YaHei;
|
||||
}
|
||||
</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.033 + "px"));
|
||||
$(".whiteSpanSmallFont").css("font-size", (document.body.offsetWidth * 0.033 + "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 width="18%">
|
||||
<div id="productNameName" class="blueSpanSmallFont"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="productName" class="whiteSpanSmallFont"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="18%">
|
||||
<div id="productCodeName" class="blueSpanSmallFont"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="productCode" class="whiteSpanSmallFont"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="18%">
|
||||
<div id="productModalName" class="blueSpanSmallFont"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="productModal" class="whiteSpanSmallFont"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="18%">
|
||||
<div id="presentBatchName" class="blueSpanSmallFont"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="presentBatch" class="whiteSpanSmallFont"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="18%">
|
||||
<div id="planAmountName" class="blueSpanSmallFont"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="planAmount" class="whiteSpanSmallFont"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user