<%@ page contentType="text/html;charset=UTF-8"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<c:set var="ctx" value="${pageContext.request.contextPath}" />
|
|
<html>
|
<head>
|
<script src="tb.js"></script>
|
<script src="jq.js"></script>
|
<script src="${ctx}/static/js/ng/tb.js" type="text/javascript"></script>
|
|
<style>
|
.table>tbody>tr>td {
|
vertical-align: middle;
|
/* content:middle; */
|
text-align: center;
|
font-weight: bold;
|
font-size:16px;
|
/* border: 1px solid green; */
|
}
|
|
.table>thead>tr>th{
|
font-weight: bold;
|
font-size:20px;
|
text-align: center;
|
}
|
|
h1{
|
display : inline;
|
}
|
|
</style>
|
|
<script>
|
|
var rTime = 1000;//自动刷新间隔时间 单位:毫秒
|
<%String groups = request.getParameter("group");
|
if (groups == null)
|
groups = "null";
|
out.print("var group=" + groups + ";\r\n");%>
|
</script>
|
|
<title>中空理片笼-详情</title>
|
</head>
|
<body>
|
<div class="content-wrapper">
|
<!-- 上片位信息 -->
|
<div>
|
<section class="content container-fluid">
|
<div class="box" style="overflow: auto;">
|
<div class="box-header"></div>
|
<!-- /.box-header -->
|
<div class="box-body no-padding" id="jiaWeiXinXi"></div>
|
</div>
|
|
</section>
|
</div>
|
<!-- 信息提示 -->
|
<div class="modal fade" id="CZ_Msg" tabindex="-1" role="dialog"
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
<form class="form-horizontal" role="form">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true">×</button>
|
<h3 class="modal-title" id="TK_AlertTitle">操作提示:</h3>
|
</div>
|
<div class="modal-body" style="text-align: left;">
|
<h3 id="MsgShow">
|
<span id="cz_Ming" style="font-weight: bold"></span> <span
|
id="cz_Zhuangtai" style="font-weight: bold"></span>
|
</h3>
|
</div>
|
<div class="modal-footer">
|
<button type="button" class="btn btn-primary btn-lg"
|
data-dismiss="modal">确定</button>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
</div>
|
<!-- /.content-wrapper -->
|
|
|
<!-- 表内容显示 -->
|
<script>
|
var opt = {
|
table : {
|
style : "width:100%",
|
"class" : "table table-striped table-hover"
|
},
|
columns : [
|
|
{
|
name : "栅格号",
|
binding : 0,
|
filter : {}
|
|
}, {
|
name : "玻璃ID",
|
binding : 3,
|
filter : {}
|
}, {
|
|
name : "宽",
|
binding : 4,
|
filter : {}
|
}, {
|
name : "高",
|
binding : 5,
|
//style : "width:8%",
|
filter : {}
|
}, {
|
name : "厚",
|
binding : 6,
|
//style : "width:8%",
|
filter : {}
|
}, {
|
name : "流程卡号",
|
binding : 2,
|
filter : {}
|
//设置列可搜索
|
},{
|
name : "操作",
|
binding : 7,
|
style : "width:15%",
|
type : "element",
|
filter : {}
|
} ]
|
};
|
|
//创建表
|
var db = createTable(document.getElementById("jiaWeiXinXi"), opt);
|
var a = true;
|
var t = false;
|
|
//加载表格内容
|
function loadTable() {
|
/* if (t == false) {
|
document.getElementById("groupNum").innerHTML = group;
|
t = true;
|
} */
|
//alert("刷新了");
|
$.ajax({
|
type : "post",
|
dataType : "json",
|
async: true,
|
data : {
|
yemian:"中空理片笼管理",
|
caozuo:"获取列表",
|
leixing:"查询",
|
line : group
|
},
|
url : "/gmms2/mesview/data/_zhongkonglipianlong_mangage",
|
success : loadSuccess,
|
error : loadError
|
});
|
var title=document.getElementsByTagName('table')[0].rows[2].cells[5].innerHTML;
|
var input1val=$("#input1").val();
|
if(title!=''&&title!=null&&input1val!=title){
|
$("#input1").val(title);
|
$("#glass_tiaoxu").collapse('show');
|
querydata();
|
//alert(title);
|
}
|
|
}
|
loadTable();
|
|
function loadSuccess(data) {
|
|
var d = data;
|
//alert(d);
|
for (var i = 0; i < d.length; i++) {
|
|
var s;
|
d[i][7]="";
|
|
|
}
|
|
db.update(d);
|
}
|
|
function loadError(data) {
|
/*$("#CZ_Msg").modal('toggle');
|
$("#cz_Ming").html("获取列表");
|
$("#cz_Zhuangtai").html("执行失败,请检查原因!"+data);
|
$("#cz_Zhuangtai").attr("style", "color:red;");*/
|
|
|
/* if (a == true) {
|
setTimeout(loadTable, 5000);
|
a = false;
|
} */
|
}
|
|
//InitLoad();
|
</script>
|
|
<!-- 页面定时刷新 暂停 恢复 -->
|
<script>
|
var interval = setInterval('loadTable()', rTime);//定时刷新
|
function refresh() {
|
|
interval = setInterval('loadTable()', rTime);//刷新恢复
|
}
|
|
function stopRefresh() {
|
clearInterval(interval);//停止刷新
|
}
|
|
$(function() {
|
|
$('#TK-info').on('show.bs.modal', function() {
|
stopRefresh();
|
//alert("停止刷新1");
|
});
|
|
$('#QK-info').on('show.bs.modal', function() {
|
stopRefresh();
|
//alert("停止刷新2");
|
});
|
|
$('#BJ-Info').on('show.bs.modal', function() {
|
stopRefresh();
|
//alert("停止刷新3");
|
})
|
|
$('#TK-info').on('hide.bs.modal', function() {
|
refresh();
|
//alert("开始刷新1");
|
});
|
|
$('#QK-info').on('hide.bs.modal', function() {
|
refresh();
|
//alert("开始刷新2");
|
});
|
|
$('#BJ-Info').on('hide.bs.modal', function() {
|
refresh();
|
//alert("开始刷新3");
|
})
|
|
|
});
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
</html>
|