first commit
This commit is contained in:
175
bin/WebRoot/jsp/material/cutterStatusInfo.jsp
Normal file
175
bin/WebRoot/jsp/material/cutterStatusInfo.jsp
Normal file
@ -0,0 +1,175 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<style>
|
||||
.textsuccess {
|
||||
position: relative;
|
||||
border: 1px solid #95B8E7;
|
||||
background-color: #28FF28;
|
||||
color:#FFFFFF;
|
||||
text-align:center;
|
||||
width:100% ;
|
||||
height:100%;
|
||||
line-height:90px;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-moz-border-radius: 5px 5px 5px 5px;
|
||||
-webkit-border-radius: 5px 5px 5px 5px;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.texterror {
|
||||
position: relative;
|
||||
border: 1px solid #95B8E7;
|
||||
background-color: red;
|
||||
color:#FFFFFF;
|
||||
text-align:center;
|
||||
width:100% ;
|
||||
height:100%;
|
||||
line-height:90px;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-moz-border-radius: 5px 5px 5px 5px;
|
||||
-webkit-border-radius: 5px 5px 5px 5px;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.textuntest {
|
||||
position: relative;
|
||||
border: 1px solid #95B8E7;
|
||||
background-color: #46A3FF;
|
||||
color:#FFFFFF;
|
||||
text-align:center;
|
||||
width:100% ;
|
||||
height:100%;
|
||||
line-height:90px;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-moz-border-radius: 5px 5px 5px 5px;
|
||||
-webkit-border-radius: 5px 5px 5px 5px;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
if("${equstatusvalue}" == "1")
|
||||
{
|
||||
document.getElementById('status').className = "textsuccess";
|
||||
document.getElementById('status').value = "运行";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById('status').className = "texterror";
|
||||
document.getElementById('status').value = "故障";
|
||||
}
|
||||
if("${equrunmodevalue}" == "2")
|
||||
{
|
||||
document.getElementById('mode').className = "textuntest";
|
||||
document.getElementById('mode').value = "自动模式";
|
||||
}
|
||||
else if("${equrunmodevalue}" == "3")
|
||||
{
|
||||
document.getElementById('mode').className = "textuntest";
|
||||
document.getElementById('mode').value = "MDI模式";
|
||||
}
|
||||
else if("${equrunmodevalue}" == "4")
|
||||
{
|
||||
document.getElementById('mode').className = "textuntest";
|
||||
document.getElementById('mode').value = "手动模式";
|
||||
}
|
||||
else if("${equrunmodevalue}" == "5")
|
||||
{
|
||||
document.getElementById('mode').className = "textuntest";
|
||||
document.getElementById('mode').value = "寸动模式";
|
||||
}
|
||||
else if("${equrunmodevalue}" == "6")
|
||||
{
|
||||
document.getElementById('mode').className = "textuntest";
|
||||
document.getElementById('mode').value = "手轮模式";
|
||||
}
|
||||
|
||||
$("#machine").html( "${equcardid}");
|
||||
$("#processcumno").html( "${processcumnovalue}");
|
||||
$("#mechandno").html( "${mechandnovalue}");
|
||||
$("#cutterlossno").html( "${cutterlossnovalue}");
|
||||
$("#cutterlossset").html( "${cutterlosssetvalue}");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<div id="mainDiv">
|
||||
<table>
|
||||
<tr>
|
||||
<td><span>机台</span></td>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<td> <span id="machine"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span>运行模式</span>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<td> <input id="mode" style="height:30px" readonly ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span>运行状态</span>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<td> <input id="status" style="height:30px" readonly></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div style="background-color:black;width:252px;height:142px">
|
||||
<table>
|
||||
<tr>
|
||||
<td><span style="color:#28FF28;font-size:14px;font-weight:bold">加工累计数</span></td>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<td> <span id="processcumno" style="color:#FFFF6F;font-size:14px;">1</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span style="color:#28FF28;font-size:14px;font-weight:bold">机械手计数</span>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<td> <span id="mechandno" style="color:#FFFF6F;font-size:14px;">2</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span style="color:#28FF28;font-size:14px;font-weight:bold">刀损计数</span>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<td> <span id="cutterlossno" style="color:#FFFF6F;font-size:14px;">3</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span style="color:#28FF28;font-size:14px;font-weight:bold">刀损设定</span>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<td> <span id="cutterlossset" style="color:#FFFF6F;font-size:14px;">4</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user