Subversion Repositories SmartDukaan

Rev

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

Rev 33063 Rev 33087
Line 49... Line 49...
49
          href="resources/css/datatables.bootstrap.min.css"/>
49
          href="resources/css/datatables.bootstrap.min.css"/>
50
    <link rel='stylesheet'
50
    <link rel='stylesheet'
51
          href='https://use.fontawesome.com/releases/v5.7.0/css/all.css'
51
          href='https://use.fontawesome.com/releases/v5.7.0/css/all.css'
52
          integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ'
52
          integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ'
53
          crossorigin='anonymous'>
53
          crossorigin='anonymous'>
54
            <link rel="stylesheet" type="text/css" href="resources/css/bootstrap-tagsinput.css">
54
    <link rel="stylesheet" type="text/css" href="resources/css/bootstrap-tagsinput.css">
55
    <script>
55
    <script>
56
        function signOut() {
56
        function signOut() {
57
            var auth2 = gapi.auth2.getAuthInstance();
57
            var auth2 = gapi.auth2.getAuthInstance();
58
            auth2.signOut().then(function () {
58
            auth2.signOut().then(function () {
59
                window.location.href = "${rc.contextPath}/logout";
59
                window.location.href = "${rc.contextPath}/logout";
Line 79... Line 79...
79
        }
79
        }
80
 
80
 
81
        .stars-outer {
81
        .stars-outer {
82
            display: inline-block;
82
            display: inline-block;
83
            position: relative;
83
            position: relative;
84
            font-family: 'Mukta',FontAwesome,Hind;
84
            font-family: 'Mukta', FontAwesome, Hind;
85
        }
85
        }
86
 
86
 
87
        .stars-outer::before {
87
        .stars-outer::before {
88
            content: "\f006 \f006 \f006 \f006 \f006";
88
            content: "\f006 \f006 \f006 \f006 \f006";
89
        }
89
        }
Line 178... Line 178...
178
            right: 0;
178
            right: 0;
179
            text-align: center;
179
            text-align: center;
180
            font-size: 2em;
180
            font-size: 2em;
181
            font-weight: bold;
181
            font-weight: bold;
182
            color: white;
182
            color: white;
183
            font-family: 'Amaranth', sans-serif,'Mukta';
183
            font-family: 'Amaranth', sans-serif, 'Mukta';
184
        }
184
        }
185
    </style>
185
    </style>
186
 
186
 
187
    <script type="text/javascript">
187
    <script type="text/javascript">
188
        isAdmin = true;
188
        isAdmin = true;
Line 195... Line 195...
195
                        console.log(response)
195
                        console.log(response)
196
                    });
196
                    });
197
        }
197
        }
198
 
198
 
199
 
199
 
200
 
-
 
201
        function getWarehouseBrandStock(warehouseId) {
200
        function getWarehouseBrandStock(warehouseId) {
202
 
201
 
203
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId=" + warehouseId,
202
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId=" + warehouseId,
204
                    function (response) {
203
                    function (response) {
205
                        $('#' + "main-content").html(response);
204
                        $('#' + "main-content").html(response);
206
                        console.log(response)
205
                        console.log(response)
207
                    });
206
                    });
208
        }
207
        }
209
 
208
 
210
 
209
 
211
 
-
 
212
        function getWarehouseWiseBrandPartnerSale(brand) {
210
        function getWarehouseWiseBrandPartnerSale(brand) {
213
 
211
 
214
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand=" + brand,
212
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand=" + brand,
215
                    function (response) {
213
                    function (response) {
216
                        $('#' + "main-content").html(response);
214
                        $('#' + "main-content").html(response);
Line 259... Line 257...
259
                        }
257
                        }
260
                    });
258
                    });
261
        }
259
        }
262
 
260
 
263
 
261
 
264
 
-
 
265
 
-
 
266
    </script>
262
    </script>
267
 
263
 
268
 
264
 
269
</head>
265
</head>
270
 
266
 
Line 300... Line 296...
300
                        ##                                class="icon_key_alt" id="logout"></i> Log Out</a></li>
296
                        ##                                class="icon_key_alt" id="logout"></i> Log Out</a></li>
301
                        <script src="https://apis.google.com/js/platform.js?onload=onLoad" async defer></script>
297
                        <script src="https://apis.google.com/js/platform.js?onload=onLoad" async defer></script>
302
 
298
 
303
                        <li><a href="javascript:void(0);" onclick="signOut();"><i
299
                        <li><a href="javascript:void(0);" onclick="signOut();"><i
304
                                class="icon_key_alt" id="logout"></i> Log Out</a></li>
300
                                class="icon_key_alt" id="logout"></i> Log Out</a></li>
305
                             <!--  <li> <a href="#" language='english' class="active">English</a>
301
                        <!--  <li> <a href="#" language='english' class="active">English</a>
306
                                            <a href="#" language='hindi'>Hindi</a></li>-->
302
                                       <a href="#" language='hindi'>Hindi</a></li>-->
307
                                            <li>
303
                        <li>
308
                                           <!-- <li> <a href"@{?lang=en}" class="active">English</a>-->
304
                            <!-- <li> <a href"@{?lang=en}" class="active">English</a>-->
309
                                           <!-- <a href='javascript:;' onclick='changelanguage("en");'>English ></a>
305
                            <!-- <a href='javascript:;' onclick='changelanguage("en");'>English ></a>
310
                                            <a href='javascript:;' onclick='changelanguage("hi");'>Hindi ></a>
306
                             <a href='javascript:;' onclick='changelanguage("hi");'>Hindi ></a>
311
                                                    <!-- <a href="ref"@{?lang=hi}">Hindi</a>-->
307
                                    <a href="ref"@{?lang=hi}">Hindi</a>
312
                                                     </li>-->
308
                                      </li>-->
313
                    </ul>
309
                    </ul>
314
                </li>
310
                </li>
315
                <!-- user login dropdown end -->
311
                <!-- user login dropdown end -->
316
            </ul>
312
            </ul>
317
            <!-- notificatoin dropdown end-->
313
            <!-- notificatoin dropdown end-->
Line 355... Line 351...
355
                        <i class="fa fa-laptop"></i>
351
                        <i class="fa fa-laptop"></i>
356
                        #springMessage("app.title")
352
                        #springMessage("app.title")
357
                    </h3>
353
                    </h3>
358
                    <ol class="breadcrumb">
354
                    <ol class="breadcrumb">
359
                        <li>
355
                        <li>
360
                       <!-- <i class="fa fa-home"></i><a
356
                            <!-- <i class="fa fa-home"></i><a
361
                                href="${rc.contextPath}/dashboard">Home</a></li>-->
357
                                href="${rc.contextPath}/dashboard">Home</a></li>-->
362
                               <i class="fa fa-home"></i><a
358
                            <i class="fa fa-home"></i><a
363
                                                               href="${rc.contextPath}/dashboard">#springMessage("home.home")</a></li>
359
                                href="${rc.contextPath}/dashboard">#springMessage("home.home")</a></li>
364
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
360
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
365
                    </ol>
361
                    </ol>
366
                </div>
362
                </div>
367
            </div>
363
            </div>
368
            <!-- overview end -->
364
            <!-- overview end -->
Line 375... Line 371...
375
                        <div class="row col-lg-4">
371
                        <div class="row col-lg-4">
376
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
372
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
377
                                <strong>Partner Wise Report</strong>
373
                                <strong>Partner Wise Report</strong>
378
                            </h3>
374
                            </h3>
379
                        </div>
375
                        </div>
380
                         <div style="float: right">
376
                        <div style="float: right">
381
							<span style="margin-right: 10px">Last Fetch :-
377
							<span style="margin-right: 10px">Last Fetch :-
382
                                $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
378
                                $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
383
                            <!--   <button class="btn btn-primary fetchPartnersData"
379
                            <!--   <button class="btn btn-primary fetchPartnersData"
384
                                       onclick="getPartnersStat()" type="button">Fetch
380
                                       onclick="getPartnersStat()" type="button">Fetch
385
                               </button> -->
381
                               </button> -->
Line 436... Line 432...
436
                                <th>Pending Indent</th>
432
                                <th>Pending Indent</th>
437
                                <th>Tertiary</th>
433
                                <th>Tertiary</th>
438
                            </tr>
434
                            </tr>
439
                                #foreach($key in $warehouseStockMap.keySet())
435
                                #foreach($key in $warehouseStockMap.keySet())
440
                                <tr
436
                                <tr
441
                                   onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
437
                                        onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
442
                                    <td>$warehouseMap.get($key)</td>
438
                                    <td>$warehouseMap.get($key)</td>
443
                                    #if($warehouseStockMap.get($key).getStockQty())
439
                                    #if($warehouseStockMap.get($key).getStockQty())
444
                                        <td>$warehouseStockMap.get($key).getStockQty()</td>
440
                                        <td>$warehouseStockMap.get($key).getStockQty()</td>
445
                                        <td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
441
                                        <td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
446
                                    #else
442
                                    #else
Line 506... Line 502...
506
 
502
 
507
                #end
503
                #end
508
 
504
 
509
            </div>
505
            </div>
510
 
506
 
511
              <div class="row">
507
            <div class="row">
512
 
508
 
513
 
509
 
514
                  <div class="col-lg-6">
510
                <div class="col-lg-6">
515
 
511
 
516
 
512
 
517
                        <div class="row" style="margin-left:5px">
513
                    <div class="row" style="margin-left:5px">
518
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
514
                        <h3 style="margin-top: -2px; margin-bottom: 24px">
519
                                <strong>Sale MileStone</strong>
515
                            <strong>Sale MileStone</strong>
520
                            </h3>
516
                        </h3>
521
                        </div>
517
                    </div>
522
 
518
 
523
                      <div class="row saleMilestoneContainer" style="margin: 5px"></div>
519
                    <div class="row saleMilestoneContainer" style="margin: 5px"></div>
524
 
520
 
525
 
521
 
526
                  </div>
522
                </div>
527
 
523
 
528
 
524
 
529
                  <div class="col-lg-6">
525
                <div class="col-lg-6">
530
 
526
 
531
 
527
 
532
                      <div class="row" style="margin-left:5px">
528
                    <div class="row" style="margin-left:5px">
533
                          <h3 style="margin-top: -2px; margin-bottom: 24px">
529
                        <h3 style="margin-top: -2px; margin-bottom: 24px">
534
                              <strong>Purchase MileStone</strong>
530
                            <strong>Purchase MileStone</strong>
535
                          </h3>
531
                        </h3>
536
                      </div>
532
                    </div>
537
 
533
 
538
                      <div class="row purchaseMilestoneContainer" style="margin: 5px"></div>
534
                    <div class="row purchaseMilestoneContainer" style="margin: 5px"></div>
539
 
535
 
540
 
536
 
541
                  </div>
537
                </div>
542
 
538
 
543
 
539
 
544
              </div>
540
            </div>
545
 
541
 
546
 
542
 
547
            <div class="row">
543
            <div class="row">
548
                #if($authUserTicketCount)
544
                #if($authUserTicketCount)
549
 
545
 
Line 571... Line 567...
571
                        </table>
567
                        </table>
572
 
568
 
573
                    </div>
569
                    </div>
574
                #end
570
                #end
575
                <div class="col-lg-6">
571
                <div class="col-lg-6">
576
                <h3 style="margin-top: -2px; margin-bottom: 24px">
572
                    <h3 style="margin-top: -2px; margin-bottom: 24px">
577
                                                <strong>Loan Summary</strong>
573
                        <strong>Loan Summary</strong>
578
                                            </h3>
574
                    </h3>
579
 
575
 
580
                                 <table class="table table-striped table-advance table-hover loan-summary-table"
576
                    <table class="table table-striped table-advance table-hover loan-summary-table"
581
                                                                style="width: 50%">
577
                           style="width: 50%">
582
                                  <tbody>
578
                        <tbody>
583
                                  <thead>
579
                        <thead>
584
                                 <tr>
580
                        <tr>
585
                                     <th>   </th>
581
                            <th></th>
586
                                     <th>Loan Count</th>
582
                            <th>Loan Count</th>
587
                                     <th>Loan Value</th>
583
                            <th>Loan Value</th>
588
                                   </tr>
584
                        </tr>
589
 
585
 
590
                                   </thead>
586
                        </thead>
591
                                   <tr>
587
                        <tr>
592
 
588
 
593
                                     <th>Total Loan</th>
589
                            <th>Total Loan</th>
-
 
590
                            <td class="loan" data-type="TOTAL_LOAN" data-toggle="modal"
594
                                    <td   class= "loan" data-type="TOTAL_LOAN" data-toggle="modal" data-target="#loanSummaryModal">$loanSummary.getPendingLoansLoanAggregation().getPartnerCount()</td>
591
                                data-target="#loanSummaryModal">$loanSummary.getPendingLoansLoanAggregation().getPartnerCount()</td>
595
                                     <td class="currency">$loanSummary.getPendingLoansLoanAggregation().getTotalValue()</td>
592
                            <td class="currency">$loanSummary.getPendingLoansLoanAggregation().getTotalValue()</td>
596
 
593
 
597
                                   </tr>
594
                        </tr>
598
 
595
 
599
                                       <tr>
596
                        <tr>
600
                                     <th>Default Loan</th>
597
                            <th>Default Loan</th>
-
 
598
                            <td class="loan" data-type="DEFAULT_LOAN" data-toggle="modal"
601
                                     <td class= "loan" data-type="DEFAULT_LOAN" data-toggle="modal" data-target="#loanSummaryModal">$loanSummary.getDefaultLoansAggregation().getPartnerCount()</td>
599
                                data-target="#loanSummaryModal">$loanSummary.getDefaultLoansAggregation().getPartnerCount()</td>
602
                                     <td class="currency">$loanSummary.getDefaultLoansAggregation().getTotalValue()</td>
600
                            <td class="currency">$loanSummary.getDefaultLoansAggregation().getTotalValue()</td>
603
                                        </tr>
601
                        </tr>
604
                                     <tr>
602
                        <tr>
605
                                     <th>Due Loan</th>
603
                            <th>Due Loan</th>
-
 
604
                            <td class="loan" data-type="DUE_LOAN" data-toggle="modal"
606
                                      <td class= "loan" data-type="DUE_LOAN" data-toggle="modal" data-target="#loanSummaryModal">$loanSummary.getDueLoansAggregation().getPartnerCount()</td>
605
                                data-target="#loanSummaryModal">$loanSummary.getDueLoansAggregation().getPartnerCount()</td>
607
                                      <td class="currency">$loanSummary.getDueLoansAggregation().getTotalValue()</td>
606
                            <td class="currency">$loanSummary.getDueLoansAggregation().getTotalValue()</td>
608
                                     </tr>
607
                        </tr>
609
 
608
 
610
                                  </tbody>
609
                        </tbody>
611
                                 </table>
610
                    </table>
612
                                 </div>
611
                </div>
613
            </div>
612
            </div>
614
            #if($authUserTicketCount)
613
            #if($authUserTicketCount)
615
                <div class="row">
614
                <div class="row">
616
                    <div class="col-lg-6">
615
                    <div class="col-lg-6">
617
 
616
 
Line 911... Line 910...
911
 
910
 
912
 
911
 
913
        doGetAjaxRequestHandler(context + "/getSaleCountByMilestone", function (response) {
912
        doGetAjaxRequestHandler(context + "/getSaleCountByMilestone", function (response) {
914
            $('.saleMilestoneContainer').html(response);
913
            $('.saleMilestoneContainer').html(response);
915
        });
914
        });
916
        
915
 
917
         doGetAjaxRequestHandler(context + "/getPurchaseCountByMileStone", function (response) {
916
        doGetAjaxRequestHandler(context + "/getPurchaseCountByMileStone", function (response) {
918
            $('.purchaseMilestoneContainer').html(response);
917
            $('.purchaseMilestoneContainer').html(response);
919
        });
918
        });
920
             doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
919
        doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
921
            $('.chartfilterlmsContainer').html(response);
920
            $('.chartfilterlmsContainer').html(response);
922
        });
921
        });
923
 
922
 
924
 
923
 
925
        $('.loan-summary-table').on('click', '.loan', function () {
924
        $('.loan-summary-table').on('click', '.loan', function () {
Line 960... Line 959...
960
            allSelectedText: 'All Users Selected',
959
            allSelectedText: 'All Users Selected',
961
            enableFiltering: true,
960
            enableFiltering: true,
962
            enableCaseInsensitiveFiltering: true
961
            enableCaseInsensitiveFiltering: true
963
        });
962
        });
964
 
963
 
965
        function changelanguage(val){
964
        function changelanguage(val) {
966
        console.log(val);
965
            console.log(val);
967
       document.documentElement.setAttribute('lang', val)
966
            document.documentElement.setAttribute('lang', val)
968
       var url      = window.location.host;
967
            var url = window.location.host;
969
       alert(url);
968
            alert(url);
970
       //var path = window.location.path;
969
            //var path = window.location.path;
971
       alert(path);
970
            alert(path);
972
       //window.location.href =url+"/dashboard?lang="+val;
971
            //window.location.href =url+"/dashboard?lang="+val;
973
       window.open(url+"/dashboard?lang="+val,"_self");
972
            window.open(url + "/dashboard?lang=" + val, "_self");
974
        }
973
        }
975
 
974
 
976
    </script>
975
    </script>
977
    <div id="report-modal" class="modal" role="dialog"
976
    <div id="report-modal" class="modal" role="dialog"
978
         data-backdrop="static" data-keyboard="false">
977
         data-backdrop="static" data-keyboard="false">
Line 993... Line 992...
993
            </div>
992
            </div>
994
        </div>
993
        </div>
995
    </div>
994
    </div>
996
</section>
995
</section>
997
 
996
 
998
    <div id="loanSummaryModal" class="modal" role="dialog">
997
<div id="loanSummaryModal" class="modal" role="dialog">
999
        <div class="modal-dialog modal-lg">
998
    <div class="modal-dialog modal-lg">
1000
            <div class="modal-content"></div>
999
        <div class="modal-content"></div>
1001
 
1000
 
1002
        </div>
-
 
1003
    </div>
1001
    </div>
-
 
1002
</div>
1004
</body>
1003
</body>
1005
 
1004
 
1006
 
1005
 
1007
</html>
1006
</html>
1008
1007