Subversion Repositories SmartDukaan

Rev

Rev 32177 | Rev 32265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32177 Rev 32197
Line 176... Line 176...
176
                        $('#' + "main-content").html(response);
176
                        $('#' + "main-content").html(response);
177
                        console.log(response)
177
                        console.log(response)
178
                    });
178
                    });
179
        }
179
        }
180
 
180
 
-
 
181
 
-
 
182
 
181
        function getWarehouseBrandStock(warehouseId) {
183
        function getWarehouseBrandStock(warehouseId) {
182
 
184
 
183
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId=" + warehouseId,
185
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId=" + warehouseId,
184
                    function (response) {
186
                    function (response) {
185
                        $('#' + "main-content").html(response);
187
                        $('#' + "main-content").html(response);
186
                        console.log(response)
188
                        console.log(response)
187
                    });
189
                    });
188
        }
190
        }
189
 
191
 
190
 
192
 
-
 
193
 
191
        function getWarehouseWiseBrandPartnerSale(brand) {
194
        function getWarehouseWiseBrandPartnerSale(brand) {
192
 
195
 
193
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand=" + brand,
196
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand=" + brand,
194
                    function (response) {
197
                    function (response) {
195
                        $('#' + "main-content").html(response);
198
                        $('#' + "main-content").html(response);
Line 215... Line 218...
215
        }
218
        }
216
 
219
 
217
 
220
 
218
    </script>
221
    </script>
219
 
222
 
220
 
-
 
221
    <script type="text/javascript">
223
    <script type="text/javascript">
222
        function getWarehouseWiseData() {
224
        function getWarehouseWiseData() {
223
            doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
225
            doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
224
                    function (response) {
226
                    function (response) {
225
                        $('#' + "main-content").html(response);
227
                        $('#' + "main-content").html(response);
Line 239... Line 241...
239
                        }
241
                        }
240
                    });
242
                    });
241
        }
243
        }
242
 
244
 
243
 
245
 
-
 
246
 
-
 
247
 
244
    </script>
248
    </script>
245
 
249
 
246
 
250
 
247
</head>
251
</head>
248
 
252
 
Line 398... Line 402...
398
                                <th>Total Value</th>
402
                                <th>Total Value</th>
399
                                <th>Pending Indent</th>
403
                                <th>Pending Indent</th>
400
                                <th>Tertiary</th>
404
                                <th>Tertiary</th>
401
                            </tr>
405
                            </tr>
402
                                #foreach($key in $warehouseStockMap.keySet())
406
                                #foreach($key in $warehouseStockMap.keySet())
403
 
-
 
404
                                <tr
407
                                <tr
405
                                        onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
408
                                   onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
406
                                    <td>$warehouseMap.get($key)</td>
409
                                    <td>$warehouseMap.get($key)</td>
407
                                    #if($warehouseStockMap.get($key).getStockQty())
410
                                    #if($warehouseStockMap.get($key).getStockQty())
408
                                        <td>$warehouseStockMap.get($key).getStockQty()</td>
411
                                        <td>$warehouseStockMap.get($key).getStockQty()</td>
409
                                        <td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
412
                                        <td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
410
                                    #else
413
                                    #else
411
                                        <td>0</td>
414
                                        <td>0</td>
412
                                        <td>0</td> #end
415
                                        <td>0</td> #end
413
                                    #if($warehouseStockMap.get($key).getPendingIndent())
416
                                    #if($warehouseStockMap.get($key).getPendingIndent())
414
                                        <td>$warehouseStockMap.get($key).getPendingIndent()</td> #else
417
                                        <td>$warehouseStockMap.get($key).getPendingIndent()</td> #else
415
                                        <td>0</td> #end
418
                                        <td>0</td> #end
416
 
-
 
417
                                    <td>$warehouseStockMap.get($key).getTertiary()</td>
419
                                    <td>$warehouseStockMap.get($key).getTertiary()</td>
418
 
-
 
419
                                </tr>
420
                                </tr>
420
 
-
 
421
                                #end
421
                                #end
422
 
-
 
423
 
-
 
424
                            </tbody>
422
                            </tbody>
425
                        </table>
423
                        </table>
426
 
-
 
427
 
-
 
428
                    </div>
424
                    </div>
429
                </div>
425
                </div>
430
 
-
 
431
            #end
426
            #end
432
            <button class="btn btn-primary  clickshwograph"
427
            <button class="btn btn-primary  clickshwograph"
433
                    style="display: none" type="button">Submit
428
                    style="display: none" type="button">Submit
434
            </button>
429
            </button>
435
 
430
 
Line 530... Line 525...
530
                               style="width: 65%">
525
                               style="width: 65%">
531
                            <tbody>
526
                            <tbody>
532
                            <tr>
527
                            <tr>
533
                                <th>Auth User</th>
528
                                <th>Auth User</th>
534
                                <th>Tickets</th>
529
                                <th>Tickets</th>
535
 
-
 
536
                            </tr>
530
                            </tr>
537
                                #foreach($authUserTicket in $authUserTicketCount.entrySet())
531
                                #foreach($authUserTicket in $authUserTicketCount.entrySet())
538
 
-
 
539
                                <tr>
532
                                <tr>
540
                                    <td>$authUserTicket.getKey().getName()</td>
533
                                    <td>$authUserTicket.getKey().getName()</td>
541
                                    <td>$authUserTicket.getValue()</td>
534
                                    <td>$authUserTicket.getValue()</td>
542
 
-
 
543
                                </tr>
535
                                </tr>
544
 
-
 
545
                                #end
536
                                #end
546
 
-
 
547
 
-
 
548
                            </tbody>
537
                            </tbody>
549
                        </table>
538
                        </table>
550
 
539
 
551
                    </div>
540
                    </div>
552
                #end
541
                #end
553
                <div class="col-lg-6">
542
                <div class="col-lg-6">
554
                <h3 style="margin-top: -2px; margin-bottom: 24px">
543
                <h3 style="margin-top: -2px; margin-bottom: 24px">
555
                                                <strong>Loan Summary</strong>
544
                                                <strong>Loan Summary</strong>
556
                                            </h3>
545
                                            </h3>
557
 
546
 
558
                                 <table class="table table-striped table-advance table-hover"
547
                                 <table class="table table-striped table-advance table-hover loan-summary-table"
559
                                                                style="width: 50%">
548
                                                                style="width: 50%">
560
                                  <tbody>
549
                                  <tbody>
-
 
550
                                  <thead>
561
                                 <tr>
551
                                 <tr>
562
                                     <th>   </th>
552
                                     <th>   </th>
563
                                     <th>Loan Count</th>
553
                                     <th>Loan Count</th>
564
                                     <th>Loan Value</th>
554
                                     <th>Loan Value</th>
565
                                   </tr>
555
                                   </tr>
-
 
556
 
566
                                   </thead>
557
                                   </thead>
567
                                   <tr>
558
                                   <tr>
-
 
559
 
568
                                     <th>Total Loan</th>
560
                                     <th>Total Loan</th>
569
                                     <td>$loanSummary.getPendingLoansLoanAggregation().getPartnerCount()</td>
561
                                    <td   class= "loan" data-type="TOTAL_LOAN" data-toggle="modal" data-target="#loanSummaryModal">$loanSummary.getPendingLoansLoanAggregation().getPartnerCount()</td>
570
                                     <td>$loanSummary.getPendingLoansLoanAggregation().getTotalValue()</td>
562
                                     <td class="currency">$loanSummary.getPendingLoansLoanAggregation().getTotalValue()</td>
-
 
563
 
571
                                   </tr>
564
                                   </tr>
-
 
565
 
572
                                   <tr>
566
                                       <tr>
573
                                     <th>Default Loan</th>
567
                                     <th>Default Loan</th>
574
                                     <td>$loanSummary.getDefaultLoansAggregation().getPartnerCount()</td>
568
                                     <td class= "loan" data-type="DEFAULT_LOAN" data-toggle="modal" data-target="#loanSummaryModal">$loanSummary.getDefaultLoansAggregation().getPartnerCount()</td>
575
                                     <td>$loanSummary.getDefaultLoansAggregation().getTotalValue()</td>
569
                                     <td class="currency">$loanSummary.getDefaultLoansAggregation().getTotalValue()</td>
576
                                   </tr>
570
                                        </tr>
577
                                   <tr>
571
                                     <tr>
578
                                     <th>Due Loan</th>
572
                                     <th>Due Loan</th>
579
                                      <td>$loanSummary.getDueLoansAggregation().getPartnerCount()</td>
573
                                      <td class= "loan" data-type="DUE_LOAN" data-toggle="modal" data-target="#loanSummaryModal">$loanSummary.getDueLoansAggregation().getPartnerCount()</td>
580
                                      <td>$loanSummary.getDueLoansAggregation().getTotalValue()</td>
574
                                      <td class="currency">$loanSummary.getDueLoansAggregation().getTotalValue()</td>
581
                                   </tr>
575
                                     </tr>
-
 
576
 
582
                                  </tbody>
577
                                  </tbody>
583
                                 </table>
578
                                 </table>
584
 
-
 
585
                                 </div>
579
                                 </div>
586
 
-
 
587
 
-
 
588
            </div>
580
            </div>
589
            #if($authUserTicketCount)
581
            #if($authUserTicketCount)
590
                <div class="row">
582
                <div class="row">
591
                    <div class="col-lg-6">
583
                    <div class="col-lg-6">
592
 
584
 
Line 893... Line 885...
893
            $('.purchaseMilestoneContainer').html(response);
885
            $('.purchaseMilestoneContainer').html(response);
894
        });
886
        });
895
             doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
887
             doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
896
            $('.chartfilterlmsContainer').html(response);
888
            $('.chartfilterlmsContainer').html(response);
897
        });
889
        });
898
        
-
 
899
 
890
 
900
 
891
 
-
 
892
        $('.loan-summary-table').on('click', '.loan', function () {
-
 
893
            console.log($(this));
-
 
894
            let loanSummaryType = $(this).data("type");
-
 
895
            doGetAjaxRequestHandler(`${context}/getPartnerWiseLoanSummary?loanSummaryType=${loanSummaryType}`, function (response) {
-
 
896
                $('#loanSummaryModal .modal-content').html(response);
-
 
897
            });
-
 
898
        });
-
 
899
 
901
        $(document).on('click', ".brand_month_sales", function () {
900
        $(document).on('click', ".brand_month_sales", function () {
902
            $(".bms").css("color", "blue");
901
            $(".bms").css("color", "blue");
903
            $(".bms").css("background-color", "white");
902
            $(".bms").css("background-color", "white");
904
            $(".bmp").css("color", "white");
903
            $(".bmp").css("color", "white");
905
            $(".bmp").css("background-color", "#C0C0C0");
904
            $(".bmp").css("background-color", "#C0C0C0");
Line 949... Line 948...
949
                </div>
948
                </div>
950
            </div>
949
            </div>
951
        </div>
950
        </div>
952
    </div>
951
    </div>
953
</section>
952
</section>
-
 
953
 
-
 
954
    <div id="loanSummaryModal" class="modal" role="dialog">
-
 
955
        <div class="modal-dialog modal-lg">
-
 
956
            <div class="modal-content"></div>
-
 
957
 
-
 
958
        </div>
-
 
959
    </div>
954
</body>
960
</body>
955
</html>
961
</html>
956
962