Rev 29978 | Rev 30073 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<section class="wrapper"><div class="row"><div class="col-lg-12"><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>SEND NOTIFICATION</li></ol></div></div><div class="row" style="background:white;background-color:white;padding:10px;min-height:600px"><form><div class="col-lg-2"><div class="form-group"><label for="exampleFormControlSelect1">Select Warehouse</label><select class="form-control" id="warehouseId">#foreach($warehouse in $warehouses.entrySet())<option value="$warehouse.getKey()">$warehouse.getValue()</option>#end</select></div></div><div class="col-lg-3"><label for="exampleFormControlSelect1">Choose Model</label><div class="input-group"><input type="text" class="form-control typeahead" id="entityData"placeholder="Search Models"> <span class="input-group-btn"><button id="model-to-notify" class="btn btn-default" type="button">Select Model</button></span></div></div></form></div></section><script type="text/javascript">$(document).ready(function () {getEntityAheadOptions($("#entityData"), function (selectedEntity) {itemCatalogId = selectedEntity.catalogId_i;itemTitle = selectedEntity.title_s});$("#model-to-notify").click(function () {colorNumberHandler(itemCatalogId, 0, 'Notify for ' + itemTitle, 'Notify', function (itemQuantity, callback) {let poItemWarehouseModel = {warehouseId: $("#warehouseId").val(),itemIdQuantityList: itemQuantity}doPostAjaxRequestWithJsonHandler(`${context}/indent/send-po-notification`, JSON.stringify(poItemWarehouseModel), function (response) {if (response) {alert("Notified Successfully");}callback();})})});});</script>