<%@ 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);
|
var today = new Date();
|
var month=today.getMonth()+1;
|
if(month<10){month=("0"+month);}
|
var date=today.getFullYear()+"-"+month+"-"+(today.getDate()<10?'0'+today.getDate():today.getDate());
|
$("#date").val(date);
|
$("#shift").combobox({
|
onSelect: function () {
|
searchmat();
|
},
|
onChange: function () {
|
$('#mat').combobox({data: []});
|
}
|
})
|
|
$("#date").my97({
|
onChange: function () {
|
$("#shift").combobox("clear");
|
$('#mat').combobox({data: []});
|
}
|
});
|
|
});
|
|
/*
|
$("#date").bind("input propertychange change",function(event){
|
alert();
|
});
|
*/
|
|
function searchmat(){
|
var date = $("#date").combobox("getValue") ;
|
var shift = $("#shift").combobox("getValue") ;
|
if(date!=null&&date!=""&&shift!=null&&shift!=""){
|
$("#mat").combobox("clear");
|
$.post('${pageContext.request.contextPath}/pms/onlineCheck/getorderRoller.do',
|
{
|
"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="mat" name="orderNumber" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false"></select>
|
<input name="inspectionType" id="type" value =1 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>
|