|
|
<#import "../master.ftl" as master><@master.layout>
<div class="page-header"> <h2>工单批次查询</h2> <small>按工单号查询材料批次上机历史记录</small> <br/></div>
<table id="dg" class="easyui-datagrid" style="width:100%;height:460px;display:none;" data-options="pagination:true, singleSelect:true, fitColumns:false, method:'get', url:'/material/roll/batch/queryData', pageSize:20, toolbar:'#tb'"> <thead> <tr> <th data-options="field:'orderNo',width:120">SO No</th> <th data-options="field:'rollNo',width:120">Roll No</th> <th data-options="field:'operationNo',width:80,align:'center'">工序号</th> <th data-options="field:'operationName',width:100">工序名称</th> <th data-options="field:'componentPartNo',width:150">材料料号</th> <th data-options="field:'customerBatchNo',width:120">客户批次号</th> <th data-options="field:'isSemiOrder',width:80,align:'center'">是否半成品</th> <th data-options="field:'startRow',width:80,align:'center'">开始行</th> <th data-options="field:'endRow',width:80,align:'center'">To Row No</th> <th data-options="field:'columnSortIndex',width:100">No. of Cross</th> <th data-options="field:'sortNo',width:60,align:'center'">序号</th> <th data-options="field:'status',width:80">Status</th> <th data-options="field:'createdBy',width:80">Created By</th> <th data-options="field:'createdDate',width:140,formatter:formatDateTime">Create Date</th> </tr> </thead></table>
<div id="tb" style="padding:10px 5px;display:none;"> <div> 工单号: <input class="easyui-textbox" id="keyword" style="width:220px" placeholder="请输入工单号,如 1976459-01"> <a href="#nowhere" id="queryLink" class="easyui-linkbutton" iconCls="icon-search">Query</a> </div> <input type="hidden" id="_keyword"></div>
<script> $(window).resize(function () { $("#dg").datagrid({"height": $(window).height() - $(".datagrid").offset().top - 20}); }); $(function () { $(window).resize(); });
$("#queryLink").click(function(){ $("#_keyword").val($("#keyword").val()); $('#dg').datagrid({ queryParams: { keyword: $("#keyword").val() } }); });
function formatDateTime(value, row) { if (value) { var date = new Date(value); var year = date.getFullYear(); var month = ("0" + (date.getMonth() + 1)).slice(-2); var day = ("0" + date.getDate()).slice(-2); var hours = ("0" + date.getHours()).slice(-2); var minutes = ("0" + date.getMinutes()).slice(-2); var seconds = ("0" + date.getSeconds()).slice(-2); return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds; } return ""; }</script>
</@master.layout>
|