| 32132 |
amit.gupta |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>Warehousewise Stock</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>Warehousewise Stock</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
|
|
|
12 |
<form id="warehouse-stock" class="row form-inline" onsubmit="sumbmitHandler(event)">
|
|
|
13 |
<div class="col-lg-4 form-group">
|
|
|
14 |
<label>Select Brand</label>
|
|
|
15 |
<select class="form-control">
|
|
|
16 |
#foreach($brand in $brands)
|
|
|
17 |
<option value="$brand">$brand</option>
|
|
|
18 |
#end
|
|
|
19 |
<option value="Samsung">Samsung</option>
|
|
|
20 |
</select>
|
|
|
21 |
</div>
|
|
|
22 |
<button class="btn btn-default" type="submit">Submit</button>
|
|
|
23 |
<button class="btn btn-primary" onclick="ExportToExcel(this, $('option').val())"
|
|
|
24 |
data-tableid="brandwise-stock">Export
|
|
|
25 |
table to excel
|
|
|
26 |
</button>
|
|
|
27 |
</form>
|
|
|
28 |
<div class="row brandwise-stock-container">
|
|
|
29 |
|
|
|
30 |
</div>
|
|
|
31 |
</section>
|
|
|
32 |
<script type="text/javascript">
|
|
|
33 |
|
|
|
34 |
function sumbmitHandler(event) {
|
|
|
35 |
event.preventDefault();
|
|
|
36 |
let brand = $(event.target).find('select').val();
|
|
|
37 |
doGetAjaxRequestHandler(`${context}/warehouse/stock-qty/${brand}`, function (data) {
|
|
|
38 |
$('.brandwise-stock-container').html(data);
|
|
|
39 |
})
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
</script>
|
|
|
44 |
|