dataLogSearch.jsp
5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<%@ include file="/common/taglibs.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<!-- BEGIN PAGE HEADER-->
<h3 class="page-title">
<fmt:message key="dataLog.search.subtitle"/>
</h3>
<!-- BEGIN PAGE CONTENT-->
<div class="row">
<div class="col-md-12">
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div class="portlet box blue">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-list-alt"></i><fmt:message key="dataLog.search.subtitle"/>
</div>
</div>
<div class="portlet-body">
<form:form commandName="searchCriteria" class="form-horizontal form-bordered" id="searchCriteria"
action="search.html">
<div class="form-group">
<input type="hidden" name="fid" value="${fid}"/>
<input type="hidden" name="pid" value="${pid}"/>
<label class="control-label col-md-2"><fmt:message key="barcode.partNumber"/></label>
<div class="col-md-2">
<div style="text-align:left" class="input-group">
<form:input id="partNumber" path="partNumber" class="form-control"/>
</div>
</div>
<label class="control-label col-md-2"><fmt:message key="barcode.barcode"/></label>
<div class="col-md-2">
<div style="text-align:left" class="input-group">
<form:input id="barcode" path="barcode" class="form-control" placeholder=""/>
</div>
</div>
<div class="col-md-2">
<button class="btn purple" type="submit"><i class="fa fa-search"></i><fmt:message
key="button.search"/></button>
</div>
</div>
</form:form>
<div class="table-scrollable">
<display:table name="searchCriteria.pageList" cellspacing="0" cellpadding="0" requestURI="search.html"
sort="external"
defaultsort="1" class="table table-striped table-bordered table-hover" export="false"
id="dataLog">
<display:column property="partNumber" titleKey="dataLog.partNumber" sortable="true" sortProperty="partNumber"/>
<display:column property="barcode" titleKey="barcode.barcode" sortable="true" sortProperty="barcode"/>
<display:column titleKey="dataLog.storageName" sortable="true" sortProperty="posName">
<c:if test="${not empty dataLog.storageName}">
${dataLog.storageName}[${dataLog.posName}]
</c:if>
</display:column>
<display:column property="relationCodes" titleKey="dataLog.num" sortable="true" sortProperty="num"/>
<display:column titleKey="dataLog.type" sortable="true" sortProperty="type">
<fmt:message key="op.${dataLog.type}"/>
</display:column>
<display:column titleKey="dataLog.status" sortable="true" sortProperty="status">
<span class='label label-sm label-${fn:toLowerCase(dataLog.status)}'>
[<fmt:message key="op.status.${fn:toLowerCase(dataLog.status)}"/>]
</span>
<c:if test="${dataLog.wait || dataLog.executing}">
<a href="#" onclick="cancelTask('${dataLog.id}')"><fmt:message key="button.cancel"/></a>
</c:if>
</display:column>
<display:column titleKey="dataLog.orderSource" sortable="true" sortProperty="sourceName">
${dataLog.sourceStr}
</display:column>
<display:column titleKey="dataLog.batch" sortable="true" sortProperty="batchInfo" property="batchInfo"/>
<display:column titleKey="dataLog.date" sortable="true" sortProperty="updateDate">
<fmt:formatDate value="${dataLog.updateDate}" pattern="yyyy-MM-dd HH:mm"/>
</display:column>
<display:setProperty name="paging.banner.item_name"><fmt:message
key="dataLog.item.name"/></display:setProperty>
<display:setProperty name="paging.banner.items_name"><fmt:message
key="dataLog.item.name"/></display:setProperty>
</display:table>
</div>
</div>
</div>
<!-- END EXAMPLE TABLE PORTLET-->
</div>
</div>
<!-- END PAGE CONTENT-->
<c:set var="scripts" scope="request">
<script>
jQuery(document).ready(function () {
cancelTask = function (tid){
$.post("${ctx}/service/store/cancelTask", {tid: tid}, function (data) {
if(data){
alert('取消成功');
window.location.href="";
}
});
}
});
</script>
</c:set>