Subversion Repositories SmartDukaan

Rev

Rev 27529 | Go to most recent revision | Blame | Compare with Previous | 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 Stock  Detail</li>                                         
                        </ol>
                </div>
        </div>

        <table style="Width:100%; margin:15px">
                <tr>
                        <td  style="Width:20%; float:left">
                     <div class = "row">
                       <div class="col-lg-12">
                            <div class="input-group">
                                        <select class="form-control input-sm" id = "warehouseMap" name="warehouseMap" placeholder="Warehouse">
                                                        <option value="" disabled selected>Warehouse</option>
                                                  #foreach($wm in $warehouseMap.entrySet()))
        
                                        <option value="$wm.getKey()">$wm.getValue()</option>
                                        #end
                                </select>
                        <span class="input-group-btn">
                                <button class="btn btn-primary submit" id="warehouse-wise-stock" type="button">Go!</button>
                        </span>
                  </div>
                  </div>
                 </div>
                </td>
           
          
                </tr>
    </table>
<div class="row">
                                        
                        <div class="col-lg-12">
                                 <table id="warehouseBrandStock" class="table table-striped table-advance table-hover">
                                 <thead>
                                <tr>
                                    <th>Warehouse Id</th>
                                        <th>Warehouse Name</th>
                                        <th>Brand</th>
                                        <th>Stock Qty</th>
                                        <th>Stock Value</th>
                                 </tr>
                                 </thead>
                                <tbody>
                                    #foreach($key in $warehouseWiseBrandStock)
                                        <tr>
                                         <td>$key.getWarehouseId()</td>
                                     <td>$warehouseMap.get($key.getWarehouseId())</td>
                                     <td>$key.getBrand()</td>
                                     <td>$key.getStockQty()</td>
                                     <td class="currency">$key.getStockValue()</td> 
                                        </tr>
                                         #end
                                        
                            </tbody>
                        </table>
                                                </div>
                                                
                        
                        </div>
                                        

</section>
<script type="text/javascript">
$(document).ready(function() {
    indentTable = $('#warehouseBrandStock').DataTable();
    
    
    $('#warehouseBrandStock tbody').on('click', 'tr', function () {
        var data = indentTable.row( this ).data();
        doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandItemStock?warehouseId="+data[0]+"&brand="+data[2],
                        function(response) {
                                $('#' + "main-content").html(response);
                                console.log(response)
                        });
    } );
});


$(document).ready(function() {
$("#warehouse-wise-stock")
                .live(
                        'click',
                        function() {
                var warehouseId =       $('#warehouseMap').val();
          doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId="+warehouseId,
                        function(response) {
                                $('#' + "main-content").html(response);
                                console.log(response)
                        });
        });
});

</script>