<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<!-- 用户新增 -->
|
<script type="text/javascript" src="${pageContext.request.contextPath }/pms/pub/combobox/comboboxUtil.js" charset="utf-8"></script>
|
<script type="text/javascript">
|
$(function(){
|
$.loadComboboxData($("#shift"),"SHIFT",false);
|
$.loadComboboxData($("#eqp"),"ALLROLLERS",false);
|
var today = new Date();
|
var month=today.getMonth()+1;
|
if(month<10){month=("0"+month);}
|
var date=today.getFullYear()+"-"+month+"-"+today.getDate();
|
$("#date").val(date);
|
$("#eqpType").combobox({
|
onSelect: function () {
|
var myOptValue = $("#eqpType").combobox("getValue") ;
|
$("#eqp").combobox("clear");
|
if( myOptValue != null && myOptValue==1){
|
$.loadComboboxData($("#eqp"),"ALLROLLERS",false);
|
}else if(myOptValue != null && myOptValue==0){
|
$.loadComboboxData($("#eqp"),"ALLFILTERS",false);
|
}
|
}
|
})
|
|
$("#eqp").combobox({
|
onSelect: function () {
|
searchmat();
|
}
|
})
|
$("#shift").combobox({
|
onSelect: function () {
|
searchmat();
|
}
|
})
|
$("#date").my97({
|
onChange: function () {
|
$("#shift").combobox("clear");
|
$("#eqpType").combobox("clear");
|
$("#eqp").combobox({data: []});
|
$('#mat').combobox({data: []});
|
}
|
})
|
|
})
|
function searchmat(){
|
console.info(123);
|
var equipment = $("#eqp").combobox("getValue") ;
|
var date = $("#date").combobox("getValue") ;
|
var shift = $("#shift").combobox("getValue") ;
|
if(equipment!=null&&equipment!=""&&date!=null&&date!=""&&shift!=null&&shift!=""){
|
$("#mat").combobox("clear");
|
$.post('${pageContext.request.contextPath}/pms/onlineCheck/getorder.do',
|
{
|
"equipment" :equipment,
|
"date":date,
|
"shift":shift
|
}, function(json) {
|
console.info(json);
|
if (json!=null&&json!="") {
|
$("#mat").combobox({
|
data:json,
|
valueField: 'id',
|
textField: 'text'
|
});
|
}
|
},"JSON"
|
);
|
|
}
|
}
|
|
|
|
</script>
|
<div class="easyui-layout" data-options="fit:true,border:false">
|
<div data-options="region:'center',border:false" title="" style="overflow: hidden;padding:5px">
|
<form id="form" method="post" enctype = "multipart/form-data" >
|
<input name="param" id="param" value="hsl" type="hidden"/>
|
<fieldset>
|
<!-- <legend>含水率数据录入<font style="color:red;">***牌号必选***</font></legend> -->
|
<table class="table" style="width: 100%;">
|
<tr>
|
<th>日期</th>
|
<td>
|
<input id="date" name="date" type="text" class="easyui-my97" datefmt="yyyy-MM-dd" style="width:130px"/>
|
</td>
|
</tr>
|
<tr>
|
<th>班次</th>
|
<td>
|
<select id="shift" name="shift" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false"></select>
|
</td>
|
</tr>
|
<tr>
|
<th>机组</th>
|
<td>
|
<select id="eqpType" name="type" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false">
|
<option value = 1>卷接</option>
|
<option value = 0>成型</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<th>机台</th>
|
<td>
|
<select id="eqp" name="eqp" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false"></select>
|
</td>
|
</tr>
|
<tr>
|
<th>牌号</th>
|
<td>
|
<select id="mat" name="orderNumber" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false"></select>
|
<input name="inspectionType" id="type" value =3 type="hidden">
|
</td>
|
</tr>
|
<tr>
|
<th>样本数</th>
|
<td>
|
<input name="sampleNumber" id="sampleNumber" type="text" style="width:130px">
|
</td>
|
|
</tr>
|
</table>
|
</fieldset>
|
</form>
|
<s:debug/>
|
</div>
|
</div>
|