|
|
@@ -23,9 +23,9 @@
|
|
|
<form id="ffMaster">
|
|
|
<div>
|
|
|
开始日期:
|
|
|
- <input class="easyui-datebox" id="datebeginMaster" name="datebeginMaster" data-options="required:true,prompt:'',tipPosition:'top'" style="width:120px; height:32px;">
|
|
|
+ <input class="easyui-datetimebox" id="datebeginMaster" name="datebeginMaster" data-options="required:true,prompt:'',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
截止日期:
|
|
|
- <input class="easyui-datebox" id="dateendMaster" name="dateendMaster" data-options="required:true,prompt:'',tipPosition:'top'" style="width:120px; height:32px;">
|
|
|
+ <input class="easyui-datetimebox" id="dateendMaster" name="dateendMaster" data-options="required:true,prompt:'',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
车间:
|
|
|
<input class="easyui-combobox" id="linecodeMaster" name="linecodeMaster" data-options="required:false,valueField:'value',textField:'text',
|
|
|
data:[{'text': '成A', 'value': 'A'}, {'text': '成B', 'value': 'B'}, {'text': '成C', 'value': 'C'}, {'text': '高压', 'value': '高压'}]" style=" width: 120px; height: 32px; ">
|
|
|
@@ -33,7 +33,7 @@
|
|
|
成型段号: <input class="easyui-combobox" id="linesection" name="linesection" data-options="required:false,valueField:'value',textField:'text',
|
|
|
data:[]" style=" width: 120px; height: 32px; " >
|
|
|
成型线号
|
|
|
- <input class="easyui-combobox" id="groutinglinecodeMaster" name="groutinglinecodeMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'',method:'get',valueField:'GROUTINGLINECODE',textField:'GROUTINGLINECODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
+ <input class="easyui-combobox" id="groutinglinecodeMaster" name="groutinglinecodeMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'',method:'get',valueField:'GROUTINGLINECODE',textField:'GROUTINGLINECODE',panelHeight:'300px',editable:'true'" style="width:180px;height:32px;">
|
|
|
<a href="javascript:void(0)" id="btnSearchSubmit" title="清空" class="easyui-linkbutton" plain="false" onclick="toClear()">清空</a>
|
|
|
<a href="javascript:void(0)" id="btnSearchSubmit" title="搜索" class="easyui-linkbutton" plain="false" onclick="tbSearchSubmit()">搜索</a>
|
|
|
</div>
|
|
|
@@ -56,20 +56,20 @@
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
var ctime = new Date();
|
|
|
- var beginDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate();
|
|
|
- var endDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate();
|
|
|
- $("#datebeginMaster").datebox("setValue", beginDate);
|
|
|
- $("#dateendMaster").datebox("setValue", endDate);
|
|
|
+ var beginDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 00:00:00";
|
|
|
+ var endDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 23:59:59";
|
|
|
+ $("#datebeginMaster").datetimebox("setValue", beginDate);
|
|
|
+ $("#dateendMaster").datetimebox("setValue", endDate);
|
|
|
$('#groutinglinecodeMaster').combobox('reload', '../mes/rpt/rpt.ashx?m=getgroutingline&select=1&text=A1');
|
|
|
});
|
|
|
|
|
|
// 清空恢复默认值
|
|
|
function toClear() {
|
|
|
var ctime = new Date();
|
|
|
- var beginDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate();
|
|
|
- var endDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate();
|
|
|
- $("#datebeginMaster").datebox("setValue", beginDate);
|
|
|
- $("#dateendMaster").datebox("setValue", endDate);
|
|
|
+ var beginDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 00:00:00";
|
|
|
+ var endDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 23:59:59";
|
|
|
+ $("#datebeginMaster").datetimebox("setValue", beginDate);
|
|
|
+ $("#dateendMaster").datetimebox("setValue", endDate);
|
|
|
}
|
|
|
$(function () { //车间与线段 二级联动赋值 change事件
|
|
|
$('#linecodeMaster').combobox({
|
|
|
@@ -163,7 +163,7 @@
|
|
|
|
|
|
$('#DataGridMaster').datagridExport({
|
|
|
headers: headers,
|
|
|
- fileName: '导出数据_' + $("#datebeginMaster").datebox("getValue") + '_' + $("#dateendMaster").datebox("getValue")+'_(成品质量分析日报表(成型)).xls',
|
|
|
+ fileName: '导出数据_' + $("#datebeginMaster").datetimebox("getValue") + '_' + $("#dateendMaster").datetimebox("getValue")+'_(成品质量分析日报表(成型)).xls',
|
|
|
workSheet: '成品质量分析日报表(成型)'
|
|
|
});
|
|
|
}
|