180 lines
6.5 KiB
Plaintext
180 lines
6.5 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"%>
|
||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||
<html>
|
||
<head>
|
||
<title></title>
|
||
<jsp:include page="../inc.jsp"></jsp:include>
|
||
<script type="text/javascript">
|
||
var gettrace = function() {
|
||
var rfid=$("#search_rfid").textbox('getValue');
|
||
var trace=$("input[name='search_trace'][checked]").val();
|
||
// $.post(ext.contextPath + '/quality/abnormalQuality/trace1.do?search_rfid='+rfid +'&search_trace=' + trace,function(data) {
|
||
// console.log(data);
|
||
/* data.map(function(ele){
|
||
if(ele.keywords==""){
|
||
}
|
||
$("#a").html(ele.id);
|
||
for(var i=0;i<data.length;i++){
|
||
|
||
data[i]
|
||
}
|
||
}); */
|
||
//});
|
||
$("#cuttingMachine").combobox({
|
||
url : ext.contextPath + '/quality/abnormalQuality/trace1.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||
valueField : 'workstation',
|
||
textField : 'workstation',
|
||
method:'get',
|
||
panelHeight:'auto',
|
||
editable: false,
|
||
onLoadSuccess: function (data) {
|
||
var data1 = $("#cuttingMachine").combobox('getData'); //赋默认值
|
||
if (data1.length > 0) {
|
||
$("#cuttingMachine").combobox('select', data1[0].workstation);
|
||
}
|
||
}
|
||
|
||
});
|
||
$("#CNC").combobox({
|
||
url : ext.contextPath + '/quality/abnormalQuality/trace2.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||
valueField : 'workstation',
|
||
textField : 'workstation',
|
||
method:'get',
|
||
panelHeight:'auto',
|
||
editable: false,
|
||
onLoadSuccess: function (data) {
|
||
var data1 = $("#CNC").combobox('getData'); //赋默认值
|
||
if (data1.length > 0) {
|
||
$("#CNC").combobox('select', data1[0].workstation);
|
||
}
|
||
}
|
||
|
||
});
|
||
$("#CNCClean").combobox({
|
||
url : ext.contextPath + '/quality/abnormalQuality/trace3.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||
valueField : 'workstation',
|
||
textField : 'workstation',
|
||
method:'get',
|
||
panelHeight:'auto',
|
||
editable: false,
|
||
onLoadSuccess: function (data) {
|
||
var data1 = $("#CNCClean").combobox('getData'); //赋默认值
|
||
if (data1.length > 0) {
|
||
$("#CNCClean").combobox('select', data1[0].workstation);
|
||
}
|
||
}
|
||
|
||
});
|
||
$("#temperingFurnace").combobox({
|
||
url : ext.contextPath + '/quality/abnormalQuality/trace4.do?search_rfid='+rfid +'&search_trace=' + trace,
|
||
valueField : 'workstation',
|
||
textField : 'workstation',
|
||
method:'get',
|
||
panelHeight:'auto',
|
||
editable: false,
|
||
onLoadSuccess: function (data) {
|
||
var data1 = $("#temperingFurnace").combobox('getData'); //赋默认值
|
||
if (data1.length > 0) {
|
||
$("#temperingFurnace").combobox('select', data1[0].workstation);
|
||
}
|
||
}
|
||
|
||
});
|
||
|
||
};
|
||
var CNCCleanFun = function() {
|
||
var CNCClean=$("#CNCClean").textbox('getValue');
|
||
var dialog = parent.ext.modalDialog({
|
||
title : '加锁与解锁',
|
||
width:950,
|
||
url : ext.contextPath + '/quality/abnormalQuality/lock.do?CNCClean='+CNCClean,
|
||
|
||
});
|
||
};
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<form id="searchForm" method="post" class="form">
|
||
<table class="table">
|
||
<tr>
|
||
<th>RFID识别码:</th>
|
||
<td><input id="search_rfid"name="search_rfid" class="easyui-textbox" value=""/></td>
|
||
</tr>
|
||
<tr id="client_check1">
|
||
<th>白片/丝印:</th>
|
||
<td><input id="search_trace" type="radio" name="search_trace"
|
||
class="easyui-validatebox" checked="checked" value="0"><label>白片追溯</label></input>
|
||
<input id="search_trace" type="radio" name="search_trace"
|
||
class="easyui-validatebox" value="1"><label>丝印追溯</label></input>
|
||
</td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||
onclick="gettrace();">查询</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
|
||
<th >开料机台:</th>
|
||
<td ><input id="cuttingMachine" name="cuttingMachine" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||
onclick="addFun();">相同开料机台分析</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th >CNC成型机台:</th>
|
||
<td ><input id="CNC" name="CNC" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||
onclick="addFun('');">相同成型机台分析</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th >CNC清洗全检工位:</th>
|
||
<td ><input id="CNCClean" name="CNCClean" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||
onclick="CNCCleanFun();">相同CNC全检工位分析</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th >钢化炉号:</th>
|
||
<td ><input id="temperingFurnace" name="temperingFurnace" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||
onclick="addFun();">相同钢化炉分析</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th >Q白全检工位:</th>
|
||
<td ><input id="allInspectionStation" name="allInspectionStation" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||
onclick="addFun();">相同Q白全检工位分析</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th >油墨:</th>
|
||
<td ><input id="ink" name="ink" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||
onclick="addFun();">相同油墨分析</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th >丝印印刷机台号:</th>
|
||
<td ><input id="screenPrinting " name="screenPrinting" class="easyui-combobox" data-options="validType:'isBlank'"></td>
|
||
<td>
|
||
<a href="javascript:void(0);" class="easyui-linkbutton"
|
||
onclick="addFun();">相同印刷机分析</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
|
||
</body>
|
||
</html>
|