Subversion Repositories SmartDukaan

Rev

Rev 24168 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<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;
        }
        .vendor-details{
                cursor:pointer;
        }
</style>

<script>
        configureItemsForScanInDropDown();
        configureWarehousesForScanInDropDown();
</script>

<section class="wrapper">            
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>ITEM</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>SCAN IN ITEMS for $warehouse.getName()</li>                                                        
                        </ol>
                </div>
        </div>
        
        <div id="scan-in-item-container">
        <div class="row">
                <div class="col-lg-3 form-group">
                        <input type="hidden" id="warehouseId" name="warehouseId" value="$warehouse.getId()" />
                        <input type="hidden" id="warehouseName" name="warehouseId" value="$warehouse.getName()" />
                        <select class="form-control input-sm" id = "items-for-scan-in" name = "items-for-scan-in" placeholder="Items">
                                        <option value="" disabled selected>Items</option>
                                        #foreach($item in $items)
                                        <option value="$item.getId()" itemType="$item.getType()">$item.getBrand() $item.getDescription()</option>
                                #end
                     </select>
                </div>
                <div class="col-lg-2">
                <input type="number" class="form-control" id="quantity" placeholder="Quantity" value="" />
                </div>
                        <div class="col-lg-2">
                <button class="btn btn-primary" data-toggle="modal" data-target="#scanInItemModel" id="" onclick="scanInItemDialog()" type="button">Scan In</button>
                        </div>
                                
        </div>
        </div>
        
        <div id="scan-in-items-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Item Name</th>
                                                <th>Availability</th>
                                                <th>Reserved</th>
                                        </tr>
                                        #if(!$adminCurrentInventorySnapshots.isEmpty())
                                                #foreach( $adminCurrentInventorySnapshot in $adminCurrentInventorySnapshots )
                                                        <tr class="scan-in-item-details" data="$adminCurrentInventorySnapshot.getItemId()">
                                                                <td>$itemIdDescriptionMap.get($adminCurrentInventorySnapshot.getItemId())</td>
                                                                <td>$adminCurrentInventorySnapshot.getAvailability()</td>
                                                                <td>$adminCurrentInventorySnapshot.getReserved()</td>
                                                        </tr>
                                                #end
                                        #else
                                                <tr>
                                                        <td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
    #if(!$adminCurrentInventorySnapshots.isEmpty())
        <div class="row" id="scan-in-items-paginated">
                <div class="col-lg-9">
                        <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
                </div>
                <div class="col-lg-3" style="text-align:right;">
                                <div class="btn-group" style="width:40%">
                                        <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
                                </div>
                                <div class="btn-group" style="width:40%">
                                        #if($end >= $size)
                                                <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
                                        #else
                                                <button class="btn btn-primary next" style="width:100%">Next</button>
                                        #end
                                </div>
                </div>
            </div>
    #end
</section>
<div id="scan-in-item-details-container" style="background:white;background-color:white;">
</div>
<div id="scanInItemModel" class="modal" role="dialog" data-backdrop="false">
        <div class="modal-dialog modal-lg">
       <!-- Modal content-->
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Scan In Item</h4>
              </div>
              <div class="modal-body">
                        <input type="hidden" class="itemId" />
                        <input type="hidden" class="warehouseId" />
                        <h4 class="warehouseName modelHeaderCustom">Warehouse Name : <span></span></h4>
                        <h4 class="itemInformation modelHeaderCustom">Item Details : <span></span></h4>
                        <h4 class="itemQuantity modelHeaderCustom">Quantity : <span></span></h4>
                        <h4 class="modal-title">Enter Serial Numbers</h4>
                        <div id="serialNumberContainer">
                        </div>
                        <hr/>
                        <span class="input-group-btn">
                                <button type="button" id="scanInItemButton" class="btn btn-primary">Submit!</button>
                </span>
                  </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
              </div>
              </div>
        </div>
</div>