first commit
This commit is contained in:
142
bin/WebRoot/jsp/material/cutterCNCEquList.jsp
Normal file
142
bin/WebRoot/jsp/material/cutterCNCEquList.jsp
Normal file
@ -0,0 +1,142 @@
|
||||
<%@ 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() {
|
||||
doDisplayCNCEqu();
|
||||
})
|
||||
|
||||
var displayInfoFun = function(equid) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
width:1000,
|
||||
height:675,
|
||||
title : '编辑设备信息',
|
||||
url : ext.contextPath + '/material/cuttercncinfo/cutterCNCInfoList.do?equid=' + equid,
|
||||
});
|
||||
};
|
||||
|
||||
function doDisplayCNCEqu(){
|
||||
$.getJSON(ext.contextPath +"/material/cuttercncinfo/getCNCEquJson.do",cb);
|
||||
}
|
||||
function cb(data){
|
||||
for(var i = 0;i<data.length;i++){
|
||||
var subDiv = document.createElement("div");
|
||||
subDiv.style.width = "8%";
|
||||
subDiv.style.height = "80px";
|
||||
subDiv.style.float = "left";
|
||||
subDiv.style.margin = "2%";
|
||||
document.getElementById("cncEqupool").appendChild(subDiv);
|
||||
if(data[i].equstatusvalue == "1")
|
||||
{
|
||||
//var img=document.createElement("img");
|
||||
//img.src="/PlantEngine_RLD/IMG/CNCmachine.PNG";
|
||||
var subInput = document.createElement("input");
|
||||
subInput.className = "textsuccess";
|
||||
subInput.value = "CNC#"+data[i].equipmentcardid.substring(data[i].equipmentcardid.length-4,data[i].equipmentcardid.length);//显示cardid
|
||||
subInput.setAttribute("equId",data[i].equid);
|
||||
subInput.readOnly = true;
|
||||
//subDiv.appendChild(img);
|
||||
subDiv.appendChild(subInput);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//var img=document.createElement("img");
|
||||
//img.src="/PlantEngine_RLD/IMG/CNCmachine.PNG";
|
||||
var subInput = document.createElement("input");
|
||||
subInput.className = "texterror";
|
||||
subInput.value = "CNC#"+data[i].equipmentcardid.substring(data[i].equipmentcardid.length-4,data[i].equipmentcardid.length);//显示cardid
|
||||
subInput.setAttribute("equId",data[i].equid);//传递equid
|
||||
subInput.readOnly = true;
|
||||
//subDiv.appendChild(img);
|
||||
subDiv.appendChild(subInput);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
$("input.textsuccess").bind("click", function () {
|
||||
selectequid =$(this).attr("equId");
|
||||
displayInfoFun(selectequid);
|
||||
});
|
||||
|
||||
$("input.texterror").bind("click", function () {
|
||||
selectequid =$(this).attr("equId");
|
||||
displayInfoFun(selectequid);
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id = "cncEqupool" ></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user