Rev 27839 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<section><!--<style>.table-striped > tbody > tr:nth-child(odd) > td{background: white;background-color: white;}.table-striped > tbody > tr:nth-child(even) > td{background: white;background-color:white;}.table-striped > tbody > tr:hover > td,.table-striped > tbody > tr:hover {background-color: #e98c8f;color:white;}.btn:hover{color: grey;text-decoration: none;}.btn-primary:hover{color: grey;text-decoration: none;}.sale-details{cursor:pointer;}</style>--><script type="text/javascript"></script><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Details</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_document_alt"></i>Warehouse Brand Stock Detail</li></ol></div></div><div class="col-lg-4"><table style="Width:100%; margin:15px"><tr><td style="Width:40%; float:left"><div class = "row"><div class="col-lg-12"><div class="input-group"><select class="form-control input-sm" id = "brands" name="brands" placeholder="Brand"><option value="" disabled selected>Brand</option>#foreach($brand in $brands))#if($brand == $selectedbrand)<option value="$brand" selected>$brand</option>#else<option value="$brand">$brand</option>#end#end</select><span class="input-group-btn"><button class="btn btn-primary submit" id="warehouse-partner-brand-sale" type="button">Go!</button></span></div></div></div></td></tr></table><div class="row"><div class="col-lg-12"><table id="warehousePartnerBrandSale" class="table table-striped table-advance table-hover"><thead><tr><th> W/H Id</th><th>W/H Location</th><th>LMS</th><th>LMS Qty</th><th>LMTD</th><th>LMTD Qty</th><th>MTD</th><th>MTD Qty</th></tr></thead><tbody>#foreach($sales in $warehouseWiseBrandPartnerSales)<tr><td>$sales.getWarehouseId()</td><td>$warehouseMap.get($sales.getWarehouseId())</td><td class="currency">$sales.getLms()</td><td>$sales.getLmsQty()</td><td class="currency">$sales.getLmtd()</td><td>$sales.getLmtdQty()</td><td class="currency">$sales.getMtd()</td><td>$sales.getMtdQty()</td></tr>#end</tbody></table></div></div></div><div class="col-lg-8"><div id="warehouse-table"><div class="row"><div class="col-lg-12 warehouse-brand-item-sale-container"></div></div></div></div></section><script type="text/javascript">$(document).ready(function() {$('#warehousePartnerBrandSale thead tr').clone(true).appendTo( '#warehousePartnerBrandSale thead' );$('#warehousePartnerBrandSale thead tr:eq(1) th').each( function (i) {var title = $(this).text();$(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );$( 'input', this ).on( 'keyup change', function () {if ( table.column(i).search() !== this.value ) {table.column(i).search( this.value ).draw();}});});var table = $('#warehousePartnerBrandSale').DataTable( {orderCellsTop: true,fixedHeader: true});$('#warehousePartnerBrandSale tbody').on('click', 'tr', function () {var data = table.row( this ).data();var brand = $('#brands').val();doGetAjaxRequestHandler(context + "/getWarehouseAccesoriesBrandWiseItemSale?warehouseId="+data[0]+"&brand="+brand, function(response) {$('.warehouse-brand-item-sale-container').html(response);console.log(response)});});$("#warehouse-partner-brand-sale").click(function() {var brand = $('#brands').val();doGetAjaxRequestHandler(context + "/getWarehouseWiseAccesoriesBrandPartnerSale?brand="+brand, function(response) {$('#' + "main-content").html(response);console.log(response)});});});</script>