Subversion Repositories SmartDukaan

Rev

Rev 6388 | 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">
6391 amar.kumar 51
			<thead>
52
    			<tr>
53
    				<th>ScanId</th>
54
    				<th>InventoryItemId</th>
55
    				<th>Type</th>
56
    				<th>Scan Time</th>
57
    				<th>Warehouse Id</th>
58
    				<th>OrderId</th>
59
    				<th>Quantity</th>
60
                </tr>
61
            </thead>
62
			<tbody>
63
    			#foreach($scan in $action.getScans())
64
    			<tr>
65
                    <td>$scan.getId()</td>
66
    				<td>$scan.getInventoryItemId()</td>
67
    				<td>$scan.getType()</td>
68
    				<td>$action.getDateTime($scan.getScannedAt())</td>
69
    				<td>$scan.getWarehouseId()</td>
70
    				<td>$scan.getOrderId()</td>
71
    				<td>$scan.getQuantity()</td>
72
                </tr>
73
    			#end
74
			</tbody>
6322 amar.kumar 75
		</table>
76
		</div>
77
		<script>
78
		$(function() {
6391 amar.kumar 79
    		scanTable = $('#scan-records-table').dataTable({
80
				"sPaginationType": "full_numbers",
6322 amar.kumar 81
                "aaSorting" : [ [ 4, 'asc' ] ],
82
                "bAutoWidth": true,
6391 amar.kumar 83
                "iDisplayLength" : 25,
6322 amar.kumar 84
                "sDom" : 'T<"clear">lfrtip',
85
                "oTableTools" : {
86
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
87
                },
88
            });
89
		});
90
        </script>
91
    </body>
92
</html>