Rev 30683 | Rev 32346 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(function() {getItemAheadOptions($("#item-search-text"), false, function(selectedItem) {catalogItemId = selectedItem.catalogId;console.log(catalogItemId);});getItemAheadOptions($(".item-mapping-search-text"), false, function(selectedItem) {mappedCatalogItemId = selectedItem.catalogId;console.log(mappedCatalogItemId);});$("select.criteria-warehouseregion").chosen({no_results_text: "Oops, nothing found!"});});var table = $('#comboModel').DataTable( {"scrollX": true,orderCellsTop: true,fixedHeader: true});</script></script><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>COMBO</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>COMBO</li></ol></div></div><div class = "row"><div class="col-lg-6"><div class = "row"><div class="col-lg-3"><label>Item</label><input type="text" class="typeahead form-control"id="item-search-text" name="Item"data-provide="typeahead" autocomplete="off" value=""placeholder="Search for product..." /></div><div class="col-lg-3"><label>Qty</label><input type="text" id="item-qty" class="typeahead form-control" name="item-qty" value="" placeholder="Item Qty" /></div><div class="col-lg-3"><label>Region</label><select multiple class="criteria-warehouseregion chosen-select">#foreach ($wmEntry in $warehouseMap.entrySet())<option value="$wmEntry.getKey()">$wmEntry.getValue()</option>#end</select></div></div><div class = "row" style="margin-top:12px" ><div class="col-lg-2"><button class="btn btn-primary add-combo-container" style = "margin-top:25px" type="button">Add Set</button></div></div><div class = "row" style="margin-top:12px" ><ul id = "list"></ul></div><div class = "row" style="margin-top:12px"><div id="cmbuttons"><button class="btn btn-primary create-combo-model">Create Combo</button></div></div></div><div class="col-lg-6"><div class="panel-content"><table class="table table-striped table-advance table-hover" id="comboModel"><thead><tr><th>Name</th><th>Quantity</th><th>warehouseId</th><th>Action</th><th>MappedModel</th></tr></thead><tbody>#if(!$comboModels.isEmpty())#foreach( $request in $comboModels )#set($comboLength =$request.getComboOptions().size() + 1)<tr class="combo-model" data="$request.getId()"><td rowspan="$comboLength">$request.getItemDescription()</td><td rowspan="$comboLength">$request.getQty()</td><td rowspan="$comboLength">$warehouseMap.get($request.getWarehouseId())</td><td rowspan="$comboLength"><button class="btn btn-primary remove-combo" data-requestid="$request.getId()" type="button" >Remove</button></td>#foreach($optionModel in $request.getComboOptions())<tr><td>#foreach($mappedModel in $optionModel.getComboMappedModels())<div> $mappedModel.getItemDescription() - $mappedModel.getComboQty() </div>#end</td></tr>#end</tr>#end#end</tbody></table></div></div></div></section>