Rev 27509 | Rev 27538 | Go to most recent revision | 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>$(function(){$("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"});});</script><section class="wrapper"><div class="row"><div class="col-lg-2"><select multiple="multiple" name="brands" id="brands" data-placeholder="Choose Brands" class="chosen-select criteria-brands">#foreach ($brand in $brands)#if($selectedBrand.contains($brand))<option value="$brand" selected>$brand</option>#else<option value="$brand" >$brand</option>#end#end</select></div><div class="col-lg-2"><input class="btn btn-primary brandWiseSearch" type="button" value="submit"></div></div><div class="row"><div class="col-lg-12"><table id="warehouseBrandItemStock" class="table table-striped table-advance table-hover"><thead><tr><th>Item</th><th>Unit Price</th><th>Stock Qty</th><th>Stock Value</th><th>Pending Indent</th></tr></thead><tbody>#foreach($key in $warehouseWiseItemStock)<tr><td>$key.getBrand() $key.getModelName() $key.getModelNumber() $key.getColor()</td><td>$key.getUnitPrice()</td><td>$key.getStockQty()</td><td class="currency">$key.getStockValue()</td><td>$key.getPendingIndent()</td></tr>#end</tbody></table></div></div></section><script type="text/javascript">$(document).ready(function() {indentable = $('#warehouseBrandItemStock').DataTable();});$(document).ready(function() {$(".brandWiseSearch").live('click',function() {var warehouseId = $warehouseId;var brands = $('#brands').val();if (brands == null) {alert("select the brand");return false}doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandItemStock?warehouseId="+warehouseId+"&brands="+brands,function(response) {$('.warehouse-brand-item-container').html(response);console.log(response)});});});</script>