Subversion Repositories SmartDukaan

Rev

Blame | 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 type="text/javascript">


        </script>
<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>Details</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>Warehouse Brand Activated Model</li>                                               
                        </ol>
                </div>
        </div>

<div class="col-lg-6">
        <table style="Width:100%; margin:15px">
                <tr>
                        <td  style="Width:40%; float:left">
                     <div class = "row">
                       <div class="col-lg-12">
                            <div class="input-group">
                                <select class="form-control input-sm" id = "brands" name="brands" placeholder="Brand">
                                                <option value="" disabled selected>Brand</option>
                                                  #foreach($brand in $brands))
                              #if($brand == $selectedbrand)
                                        <option value="$brand" selected>$brand</option>
                                  #else
                                        <option value="$brand">$brand</option>
                                  #end
                                  #end
                                </select>
                        <span class="input-group-btn">
                                <button class="btn btn-primary submit" id="warehouse-brand-activated-sale" type="button">Go!</button>
                        </span>
                  </div>
                  </div>
                 </div>
                </td>
           
          
                </tr>
    </table>
<div class="row">
                                        
                        <div class="col-lg-12">
                                 <table id="warehouseActivatedModel" class="table table-striped table-advance table-hover">
                                 <thead>
                                <tr>
                                    <th> W/H Id</th>
                                        <th>W/H Location</th>
                                    <th>LMS</th>
                                    <th>LMS Qty</th>
                                    <th>LMTD</th>
                                    <th>LMTD Qty</th>
                                        <th>MTD</th>
                                        <th>MTD Qty</th>
        
                                 </tr>
                                 </thead>
                                <tbody>
                                    #foreach($wam in $warehouseWiseActivatedModels)
                                        <tr>
                                          <td>$wam.getWarehouseId()</td>
                                      <td>$warehouseMap.get($wam.getWarehouseId())</td>
                                      <td class="currency">$wam.getLms()</td>
                                      <td>$wam.getLmsQty()</td>
                                      <td class="currency">$wam.getLmtd()</td>
                                      <td>$wam.getLmtdQty()</td>
                                      <td class="currency">$wam.getMtd()</td>
                                      <td>$wam.getMtdQty()</td>
                                      
                         
                                        </tr>
                                         #end
                                        
                            </tbody>
                        </table>
                    </div>
                                                
</div>

</div>

        <div class="col-lg-6">
                <div id="warehouse-activated-table">
                        <div class="row">
                        <div class="col-lg-12 warehouse-brand-activated-item-container">
                        </div>
                    </div>
                </div>
        </div>
                                        

</section>
<script type="text/javascript">
$(document).ready(function() {

          var table = $('#warehouseActivatedModel').DataTable( {
                orderCellsTop: true,
                fixedHeader: true
        });


    $('#warehouseActivatedModel tbody').on('click', 'tr', function () {
        var data = table.row( this ).data();
        var brand = $('#brands').val();
        doGetAjaxRequestHandler(context + "/getWarehouseBrandWiseItemActivatedModel?warehouseId="+data[0]+"&brand="+brand, function(response) {
                        $('.warehouse-brand-activated-item-container').html(response);
                        console.log(response)
                });
        });

        $("#warehouse-brand-activated-sale").click(function() {
                var brand = $('#brands').val();
                doGetAjaxRequestHandler(context + "/getActivatedModelWarehouseWise?brand="+brand, function(response) {
                        $('#' + "main-content").html(response);
                        console.log(response)
                });
        });
});

</script>