| 28754 |
tejbeer |
1 |
<script>
|
|
|
2 |
$(function() {
|
|
|
3 |
getItemAheadOptions($("#item-search-text"), false, function(
|
|
|
4 |
selectedItem) {
|
|
|
5 |
catalogItemId = selectedItem.catalogId;
|
|
|
6 |
console.log(catalogItemId);
|
|
|
7 |
});
|
|
|
8 |
});
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
</script>
|
|
|
14 |
|
|
|
15 |
<section class="wrapper">
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
<div class="row">
|
|
|
19 |
<div class="col-lg-12">
|
|
|
20 |
<h3 class="page-header"><i class="icon_document_alt"></i>Add High Demand Items</h3>
|
|
|
21 |
<ol class="breadcrumb">
|
|
|
22 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
23 |
<li><i class="icon_document_alt"></i>High Demand Items</li>
|
|
|
24 |
</ol>
|
|
|
25 |
</div>
|
|
|
26 |
</div>
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
<div class = "row">
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
<div class="col-lg-2">
|
|
|
34 |
<label>Item</label>
|
|
|
35 |
<input type="text" class="typeahead form-control"
|
|
|
36 |
id="item-search-text" name="Item"
|
|
|
37 |
data-provide="typeahead" autocomplete="off" value=""
|
|
|
38 |
style="width: 300px;" placeholder="Search for product..." />
|
|
|
39 |
</div>
|
|
|
40 |
|
|
|
41 |
<div class="col-lg-2">
|
|
|
42 |
<label>Item</label>
|
|
|
43 |
<input type="text" id="item-qty" class="typeahead form-control" name="item-qty" value="" style="width: 300px;" placeholder="Item Qty" />
|
|
|
44 |
</div>
|
|
|
45 |
|
|
|
46 |
<div class="col-lg-2">
|
|
|
47 |
|
|
|
48 |
<button class="btn btn-primary add-high-demand-item" style = "margin-top:25px" type="button">Submit</button>
|
|
|
49 |
</div>
|
|
|
50 |
</div>
|
|
|
51 |
|
|
|
52 |
<div id="hdi-table">
|
|
|
53 |
<div class="row">
|
|
|
54 |
<div class="col-lg-4">
|
|
|
55 |
<table class="table table-striped table-advance table-hover">
|
|
|
56 |
<tbody>
|
|
|
57 |
<tr>
|
|
|
58 |
<th>Item Name</th>
|
|
|
59 |
<th>Quantity </th>
|
|
|
60 |
<th>Created</th>
|
|
|
61 |
<th>Action</th>
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
</tr>
|
|
|
65 |
#if(!$hdis.isEmpty())
|
|
|
66 |
#foreach( $request in $hdis )
|
|
|
67 |
<tr class="hdi-info" data="$request.getId()">
|
|
|
68 |
<td>$itemMap.get($request.getCatalogId()).getBrand()
|
|
|
69 |
$itemMap.get($request.getCatalogId()).getModelName()
|
|
|
70 |
$itemMap.get($request.getCatalogId()).getModelNumber()
|
|
|
71 |
($itemMap.get($request.getCatalogId()).getCatalogItemId())
|
|
|
72 |
</td>
|
|
|
73 |
<td>$request.getQty()</td>
|
|
|
74 |
<td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
|
|
|
75 |
|
|
|
76 |
<td><button class="btn btn-primary remove-hdi-model" data-requestid="$request.getId()" type="button" >Remove</button></td>
|
|
|
77 |
</tr>
|
|
|
78 |
#end
|
|
|
79 |
#else
|
|
|
80 |
<tr>
|
|
|
81 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
82 |
</tr>
|
|
|
83 |
#end
|
|
|
84 |
</tbody>
|
|
|
85 |
</table>
|
|
|
86 |
</div>
|
|
|
87 |
</div>
|
|
|
88 |
</div>
|
|
|
89 |
|
|
|
90 |
</section>
|
|
|
91 |
|