99 lines
3.1 KiB
Plaintext
99 lines
3.1 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@ page language="java" import="java.util.*" 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"%>
|
|
<%request.setAttribute("Flag_UNUSE",com.sipai.entity.material.Boardbatch.Flag_UNUSE);%>
|
|
<%request.setAttribute("Flag_INUSE",com.sipai.entity.material.Boardbatch.Flag_INUSE);%>
|
|
<%request.setAttribute("Flag_USED",com.sipai.entity.material.Boardbatch.Flag_USED);%>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<jsp:include page="../inc.jsp"></jsp:include>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#m').panel({
|
|
width:"100%",
|
|
height:"300",
|
|
title: '使用设备',
|
|
});
|
|
grid = $('#grid').datagrid({
|
|
title : '',
|
|
striped : true,
|
|
rownumbers : true,
|
|
idField : 'id',
|
|
columns : [ [
|
|
{width : '140', title : '设备编号', field : 'equipmentcardid', sortable : true, editor:'textbox',halign:'center'},
|
|
{width : '90', title : '设备名称', field : 'equipmentname', sortable : true, editor:'textbox',halign:'center'},
|
|
{width : '105', title : '设备油墨使用状态', field : 'ibmstatus', sortable : true,formatter:function(value,row){
|
|
switch (value) {
|
|
case '${Flag_UNUSE}':
|
|
return '未使用';
|
|
case '${Flag_INUSE}':
|
|
return '使用中';
|
|
case '${Flag_USED}':
|
|
return '使用完毕';
|
|
default:
|
|
return '';
|
|
}
|
|
}},
|
|
{width : '90', title : '设备型号', field : 'equipmentmodel', sortable : true, editor:'textbox',halign:'center'},
|
|
{width : '90', title : '设备类型', field : 'equipmentclassid', sortable : true, editor:'textbox',halign:'center'},
|
|
{width : '90', title : '存放位置', field : 'areaid', sortable : true, editor:'textbox',halign:'center'}
|
|
] ],
|
|
data:${equipmentcardList}
|
|
});
|
|
});
|
|
</script>
|
|
<style>
|
|
body{ text-align:center}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<form method="post" class="form">
|
|
<input type="hidden" name="id" value="${boardbatch.id }"/>
|
|
<table class="table">
|
|
|
|
<tr>
|
|
<th>网板批次号</th>
|
|
<td>${boardbatch.no }</td>
|
|
</tr>
|
|
<tr>
|
|
<th>网板类别</th>
|
|
<td>${boardbatch.type }</td>
|
|
</tr>
|
|
<tr>
|
|
<th>网板名称</th>
|
|
<td>${boardbatch.name }</td>
|
|
</tr>
|
|
<tr>
|
|
<th>物料状态</th>
|
|
<td>
|
|
<c:if test="${boardbatch.status=='0'}">未使用</c:if>
|
|
<c:if test="${boardbatch.status=='1'}">使用中</c:if>
|
|
<c:if test="${boardbatch.status=='2'}">使用完毕</c:if>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>产品工艺路线</th>
|
|
<td>${boardbatch.processrealid }</td>
|
|
</tr>
|
|
<tr>
|
|
<th>开始时间</th>
|
|
<td>${fn:substring(boardbatch.starttime,0,19)}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>结束时间</th>
|
|
<td>${fn:substring(boardbatch.endtime,0,19)}</td>
|
|
</tr>
|
|
<%-- <tr>
|
|
<th>机台</th>
|
|
<td>${boardbatch.equipmentName }</td>
|
|
</tr> --%>
|
|
</table>
|
|
</form>
|
|
<div id="m">
|
|
<table id="grid" data-options="border:false"></table>
|
|
</div>
|
|
</body>
|
|
</html>
|