Subversion Repositories SmartDukaan

Rev

Rev 6322 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 type="text/javascript" src="/inventory/js/TableTools.min.js"></script>
6388 amar.kumar 11
		<link rel="stylesheet" href="/inventory/css/TableTools.css" type="text/css" />
6322 amar.kumar 12
        <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
13
    </head>
14
    <body>
15
		<div id="server-messages">
16
			#set($messages = $action.getActionErrors())
17
            #if($messages && $messages.size() != 0)
18
                #foreach($message in $messages)
19
                    $message <br/>
20
                #end
21
            #else
22
    			#set($messages = $action.getActionMessages())
23
                #if($messages && $messages.size() != 0)
24
                    #foreach($message in $messages)
25
                        $message <br />
26
                    #end
27
				#end
28
			#end
29
		</div>
6388 amar.kumar 30
		<a href="/inventory">Go to Home page</a>
31
        <br />
32
 
6322 amar.kumar 33
		<div id = "search-filters-div">
34
			<form id = "search-filters-form" action = "scan-record">
35
                <input type = "radio" name = "filterTypeSelector" value = "itemId">ItemId</input>
36
    			<input type = "radio" name = "filterTypeSelector" value = "serialNumber">Serial Number</input>
37
    			<br />
38
                <span>From Date : </span>
39
                <input type = "date" name = "fromDate"></input>
40
    			<span>To Date : </span>
41
				<input type = "date" name = "toDate"></input>
42
				<br />
43
				<span>ItemId/Serial Number</span>
44
                <input type = "text" name = "searchNumber"></input>
45
                <button type = "submit">Submit</input> 
46
            </form>
47
        </div>	
48
		<br />
49
        <div id = "scan-records">
50
		<table id = "scan-records-table">
51
			<tr>
52
				<th>ScanId</th>
53
				<th>InventoryItemId</th>
54
				<th>Type</th>
55
				<th>Scan Time</th>
56
				<th>Warehouse Id</th>
57
				<th>OrderId</th>
58
				<th>Quantity</th>
59
            </tr>
60
			#foreach($scan in $action.getScans())
61
			<tr>
62
                <td>$scan.getId()</td>
63
				<td>$scan.getInventoryItemId()</td>
64
				<td>$scan.getType()</td>
6388 amar.kumar 65
				<td>$action.getDateTime($scan.getScannedAt())</td>
6322 amar.kumar 66
				<td>$scan.getWarehouseId()</td>
67
				<td>$scan.getOrderId()</td>
68
				<td>$scan.getQuantity()</td>
69
            </tr>
70
			#end
71
		</table>
72
		</div>
73
		<script>
74
		$(function() {
75
    		scanTable = ('#scan-records-table').dataTable({
76
                "aaSorting" : [ [ 4, 'asc' ] ],
77
                "bAutoWidth": true,
78
                "iDisplayLength" : 10,
79
                "sDom" : 'T<"clear">lfrtip',
80
                "oTableTools" : {
81
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
82
                },
83
            });
84
		});
85
        </script>
86
    </body>
87
</html>