Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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