Subversion Repositories SmartDukaan

Rev

Rev 21640 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>
        .table-hover > tbody > tr:hover > td,
        .table-hover > tbody > tr:hover {
          background-color: #6DC767;
          color:white;
        }
        .btn:hover,
        .btn:focus {
        color: grey;
        text-decoration: none;
        }
        .modal-dialog.modal-lg{
                left:10%;
                right:auto;
                width:80%;
        }
        .modal-content{
                background : white;
        }
        .modelHeaderCustom{
                font-size:14px;
                font-weight:bold;
        }
        hr{
                background-color:#007aff;
                border:none;
                height:1px;
                background:#007aff;
        }
        
        .border-highlight{
                border : 3px solid red;
        }
</style>

<section class="wrapper">            
      <!--overview start-->
          <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>GRN</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${request.getContextPath()}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>GRN</li>                                                   
                        </ol>
                </div>
        </div>
        <form class="form-horizontal row" id="purchase-reference-submit">
        <div class="col-lg-9 row">
        <label class="col-lg-3 control-label font-bold" style="text-align:center;font-weight:600;">AirWallBill / Invoice No.</label>
                <div class="input-group col-lg-6">
                    #if($airwayBillOrInvoiceNumber)
                        #set($value = $airwayBillOrInvoiceNumber)
                    #else
                        #set($value = "")
                    #end
                                <input type="text" class="form-control" name="airwayBillOrInvoiceNumber"  value="$value" placeholder="Enter AirwayBill or invoice Number" />
             <span class="input-group-btn">
             <button type="submit" class="btn btn-primary">Submit!</button>
             </span>
        </div>
    </div>
    </form>
    <hr/>
    #if($customItems.size() > 0)
        <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Brand</th>
                                                <th>Model Name</th>
                                                <th>Model Number</th>
                                                <th>Color</th>
                                                <th>Quantity</th>
                                                <th>Unit Price</th>
                                                <th>GRN</th>
                                        </tr>
                                         #foreach( $customItem in $customItems )
                                                #set($customLineItem = $customItem.getItemDetail())
                                                <tr>
                                                        <td>$customLineItem.getBrand()</td>
                                                        #if($customLineItem.getModelName())
                                                                <td>$customLineItem.getModelName()</td>
                                                        #else
                                                                <td>-</td>
                                                        #end
                                                        #if($customLineItem.getModelNumber())
                                                                <td>$customLineItem.getModelNumber()</td>
                                                        #else
                                                                <td>-</td>
                                                        #end
                                                        #if($customLineItem.getColor())
                                                                <td>$customLineItem.getColor()</td>
                                                        #else
                                                                <td>-</td>
                                                        #end
                                                        <td>$customLineItem.getQuantity()</td>
                                                        <td>$customLineItem.getUnitPrice()</td>
                                                        #if(!$customItem.isScanned())
                                                                <td class="grnDone"><a class="btn btn-primary" href="javascript:void(0)"><i class="icon_check_alt2"></i></a></td>
                                                        #else
                                                                <td class="startGrn" itemId="$customItem.getItemId()" displayName="$customLineItem.getDisplayName()" invoiceNumber="$invoiceNumber" quantity="$customLineItem.getQuantity()"><a class="btn btn-primary" data-toggle="modal" data-target="#scanModel""><i class="icon_plus_alt2"></i></a></td>
                                                        #end
                                                </tr>
                                         #end
                                </tbody>
                        </table>
                </div>
        </div>
        <div id="scanModel" class="modal fade" role="dialog">
                <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">Enter GRN Details</h4>
              </div>
              <div class="modal-body">
                <input type="hidden" id="invoiceNumber" />
                <input type="hidden" id="itemId" />
                        <h4 class="grnInvoiceNumber modelHeaderCustom">Invoice Number : <span></span></h4>
                        <h4 class="grnProductInfo modelHeaderCustom">Product Details : <span></span></h4>
                        <h4 class="modal-title">Enter Serial Numbers</h4>
                        <div id="grnImeiInformation">
                        </div>
                        <hr/>
                        <span class="input-group-btn">
                                <button type="submit" id="grnSubmit" 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>
    #end
        
</section>