| 6322 |
amar.kumar |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
|
|
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
4 |
<head>
|
|
|
5 |
<title>
|
|
|
6 |
Scan Records Retrieval
|
|
|
7 |
</title>
|
|
|
8 |
<script src="/inventory/js/jquery-1.4.2.js" type="text/javascript"></script>
|
|
|
9 |
<script src="/inventory/js/jquery.dataTables.min.js" type="text/javascript"></script>
|
|
|
10 |
<script src="/inventory/js/events.js" type="text/javascript"></script>
|
|
|
11 |
<script src="/inventory/js/common.js" type="text/javascript"></script>
|
|
|
12 |
<script type="text/javascript" src="/inventory/js/TableTools.min.js"></script>
|
|
|
13 |
<script type="text/javascript" src="js/dataTables.fnDisplayRow.js"></script>
|
|
|
14 |
<link rel="stylesheet" href="/crm/css/TableTools.css" type="text/css" />
|
|
|
15 |
<link rel="stylesheet" href="/crm/css/TableTools_JUI.css" type="text/css" />
|
|
|
16 |
<link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
|
|
|
17 |
</head>
|
|
|
18 |
<body>
|
|
|
19 |
<div id="server-messages">
|
|
|
20 |
#set($messages = $action.getActionErrors())
|
|
|
21 |
#if($messages && $messages.size() != 0)
|
|
|
22 |
#foreach($message in $messages)
|
|
|
23 |
$message <br/>
|
|
|
24 |
#end
|
|
|
25 |
#else
|
|
|
26 |
#set($messages = $action.getActionMessages())
|
|
|
27 |
#if($messages && $messages.size() != 0)
|
|
|
28 |
#foreach($message in $messages)
|
|
|
29 |
$message <br />
|
|
|
30 |
#end
|
|
|
31 |
#end
|
|
|
32 |
#end
|
|
|
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<div id = "search-filters-div">
|
|
|
36 |
<form id = "search-filters-form" action = "scan-record">
|
|
|
37 |
<input type = "radio" name = "filterTypeSelector" value = "itemId">ItemId</input>
|
|
|
38 |
<input type = "radio" name = "filterTypeSelector" value = "serialNumber">Serial Number</input>
|
|
|
39 |
<br />
|
|
|
40 |
<span>From Date : </span>
|
|
|
41 |
<input type = "date" name = "fromDate"></input>
|
|
|
42 |
<span>To Date : </span>
|
|
|
43 |
<input type = "date" name = "toDate"></input>
|
|
|
44 |
<br />
|
|
|
45 |
<span>ItemId/Serial Number</span>
|
|
|
46 |
<input type = "text" name = "searchNumber"></input>
|
|
|
47 |
<button type = "submit">Submit</input>
|
|
|
48 |
</form>
|
|
|
49 |
</div>
|
|
|
50 |
<br />
|
|
|
51 |
<div id = "scan-records">
|
|
|
52 |
<table id = "scan-records-table">
|
|
|
53 |
<tr>
|
|
|
54 |
<th>ScanId</th>
|
|
|
55 |
<th>InventoryItemId</th>
|
|
|
56 |
<th>Type</th>
|
|
|
57 |
<th>Scan Time</th>
|
|
|
58 |
<th>Warehouse Id</th>
|
|
|
59 |
<th>OrderId</th>
|
|
|
60 |
<th>Quantity</th>
|
|
|
61 |
</tr>
|
|
|
62 |
#foreach($scan in $action.getScans())
|
|
|
63 |
<tr>
|
|
|
64 |
<td>$scan.getId()</td>
|
|
|
65 |
<td>$scan.getInventoryItemId()</td>
|
|
|
66 |
<td>$scan.getType()</td>
|
|
|
67 |
<td>$scan.getScannedAt()</td>
|
|
|
68 |
<td>$scan.getWarehouseId()</td>
|
|
|
69 |
<td>$scan.getOrderId()</td>
|
|
|
70 |
<td>$scan.getQuantity()</td>
|
|
|
71 |
</tr>
|
|
|
72 |
#end
|
|
|
73 |
</table>
|
|
|
74 |
</div>
|
|
|
75 |
<script>
|
|
|
76 |
$(function() {
|
|
|
77 |
scanTable = ('#scan-records-table').dataTable({
|
|
|
78 |
"aaSorting" : [ [ 4, 'asc' ] ],
|
|
|
79 |
"bAutoWidth": true,
|
|
|
80 |
"iDisplayLength" : 10,
|
|
|
81 |
"sDom" : 'T<"clear">lfrtip',
|
|
|
82 |
"oTableTools" : {
|
|
|
83 |
"sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
|
|
|
84 |
},
|
|
|
85 |
});
|
|
|
86 |
});
|
|
|
87 |
</script>
|
|
|
88 |
</body>
|
|
|
89 |
</html>
|