Subversion Repositories SmartDukaan

Rev

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



<script>

 $(".add-customer-feedback").click(function(){
        $("#fetchCustomerData").modal({backdrop: false});
        
    });
    
    
$(function(){
        getPartnerAheadOptions($("#typeaheadpartner"),function(selectedPartner){
                
        $('#partnerId').val(selectedPartner.partnerId + "");
                });
        
           $('input[name="hdate"]').daterangepicker(getSingleDatePicker());
   
});
        
                
 </script>
<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>HYGIENE</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>Hygiene</li>       
                                        <li><button class="btn btn-primary fetchDetail"  data-toggle="modal" data-target="#fetchCustomerData"  type="button" >Fetch</button>
                                                                     </li>                                                      
                        </ol>
                </div>
        </div>
        
        <table style="Width:100%; margin-bottom:15px">
                <tr>
                        <td align="left" style="Width:5%">
                       <div class="col-lg-12">
                            <div class="input-group">
                        <input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartner" name="Item" data-provide="typeahead" autocomplete="off">
                        <input id="partnerId" type="hidden"/>
                        <span class="input-group-btn">
                                <button class="btn btn-primary submit" id="hygiene-fofo-search" type="button">Go!</button>
                        </span>
                  </div>
                 </div>
                </td>
                
               <td align="left" style="Width:20%">
                        <div class="col-lg-6">
                            <div class="input-group">
                       <input placeholder="Date" id="hdate" name="hdate"  type="text" value="$date"  class="form-control">
                        <span class="input-group-btn">
                                <button class="btn btn-primary submit" id="hygiene-date-search" type="button">Go!</button>
                        </span>
                  </div>
                 </div>
              </td>
              
             <td align="left" style="Width:20%">
                        <div class="col-lg-6">
                            <div class="input-group">
                       <input placeholder="Mobile Number" id="mobileNumber" name="mobileNumber"  type="text" value=""  class="form-control">
                        <span class="input-group-btn">
                                <button class="btn btn-primary submit" id="hygiene-mobile-search" type="button">Go!</button>
                        </span>
                  </div>
                 </div>
              </td>
           
           
          
                </tr>
    </table>
        <div id="hygiene-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Partner Name</th>
                                                <th>Partner Mobile</th>
                                                <th>Partner City</th>
                                                <th>Date of Purchase</th>
                                                <th>Customer Name</th>
                                                <th>Customer Mobile</th>
                                                <th>Customer City</th>
                                                <th>Invoice Number</th>
                                                <th>Disposed Timestamp</th>
                                                <th>Count</th>
                                                <th>Fetch</th>
                                                
                                        </tr>
                                                #if(!$hygieneData.isEmpty())
                                                                #foreach( $hygieneDataModel in $hygieneData )
                                                                <tr class="hygiene-data" data="$hygieneDataModel.getOrderId()">
                                                                        <td>$partnerAddress.get($hygieneDataModel.getFofoId()).getBusinessName()</td>
                                                                        <td>$partnerAddress.get($hygieneDataModel.getFofoId()).getMobileNumber()</td>
                                                                        <td>$partnerAddress.get($hygieneDataModel.getFofoId()).getAddress().getCity()</td>
                                                                        <td>$hygieneDataModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                                                        <td>$customerAddress.get($fofoOrder.get($hygieneDataModel.getOrderId()).getCustomerAddressId()).getName()</td>
                                                                        <td>$customerAddress.get($fofoOrder.get($hygieneDataModel.getOrderId()).getCustomerAddressId()).getPhoneNumber()</td>
                                                                        <td>$customerAddress.get($fofoOrder.get($hygieneDataModel.getOrderId()).getCustomerAddressId()).getCity()</td>
                                                                        <td>$fofoOrder.get($hygieneDataModel.getOrderId()).getInvoiceNumber()</td>

                                                                        #if($hygieneDataModel.getDisposedTimestamp())
                                                                                <td>$hygieneDataModel.getDisposedTimestamp().format($dateTimeFormatter)</td>
                                                                #else
                                                                <td> </td>
                                                                #end
                                                                        <td>$hygieneDataModel.getCallCount()</td>
                                                                        <td>
                                                                                <button class="btn btn-primary fetch"
                                                                                                data-requestid="$hygieneDataModel.getOrderId()" data-toggle="modal"
                                                                                                data-target="#fetchCustomerData" type="button">Fetch
                                                                                </button>
                                                                        </td>
                                                             
                                                        </tr>   
                                   #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
    
    
    
    
    <div id="fetchCustomerData" class="modal" role="dialog">
          <div class="modal-dialog">
        
            <!-- Modal content-->
            <div class="modal-content">
             
    </div>
   </div>
 </div>
        
        </section>