Subversion Repositories SmartDukaan

Rev

Rev 6388 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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