Subversion Repositories SmartDukaan

Rev

Rev 27574 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27556 tejbeer 1
<div class="col-lg-12">
2
	<table id="warehouseItemWisePartnerSale" class="table table-striped table-advance table-hover">
3
		<thead>
4
	    	<tr>
5
	    				<th>W/H Name</th>
6
	    				<th>Item</th>
7
	    				<th>LMTD</th>
8
	    				<th>LMTD Qty</th>
9
	    				 <th>MTD</th>
10
	    				 <th>MTD Qty</th>
11
	    			 </tr>
12
				 </thead>
13
	    			<tbody>
14
	    			    #foreach($branditemSale in $branditemSales)
15
	    				<tr>
16
 
17
	    	 		   	<td>$warehouseMap.get($branditemSale.getWarehouseId())</td>
18
	    	 		     <td>$branditemSale.getBrand() $branditemSale.getModelName() $branditemSale.getModelNumber() $branditemSale.getColor()</td>
19
	                      <td class="currency">$branditemSale.getLmtd()</td>
20
	    	 		      <td class="currency">$branditemSale.getLmtdQty()</td>
21
	    	 		      <td class="currency">$branditemSale.getMtd()</td>
22
	    	 		      <td class="currency">$branditemSale.getMtdQty()</td>	</tr>
23
	    				 #end
24
 
25
	    		    </tbody>
26
	    		</table>
27
		    </div>
28
 
29
 
30
 
31
 
32
 
33
 
34
 
35
<script type="text/javascript">
36
  $(document).ready(function() {
37
 
38
   $('#warehouseItemWisePartnerSale thead tr').clone(true).appendTo( '#warehouseItemWisePartnerSale thead' );
39
    $('#warehouseItemWisePartnerSale thead tr:eq(1) th').each( function (i) {
40
        var title = $(this).text();
41
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
42
 
43
        $( 'input', this ).on( 'keyup change', function () {
44
            if ( table.column(i).search() !== this.value ) {
45
                table
46
                    .column(i)
47
                    .search( this.value )
48
                    .draw();
49
            }
50
        } );
51
    } )
52
  var table = $('#warehouseItemWisePartnerSale').DataTable( {
53
        orderCellsTop: true,
54
        fixedHeader: true
55
    } );
56
});
57
 
58
 
59
 
60
 
61
</script>