Subversion Repositories SmartDukaan

Rev

Rev 32172 | Rev 32197 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26010 amit.gupta 1
<!DOCTYPE html>
2
<html lang="en">
28451 tejbeer 3
<head>
30017 amit.gupta 4
    <meta charset="utf-8">
5
    <meta name="viewport"
6
          content="width=device-width, initial-scale=1, maximum-scale=1">
7
    <meta name="description" content="Smart Dukaan FOCO Dashboard">
8
    <meta name="author" content="smartdukaan">
31786 tejbeer 9
 
10
    <meta name="referer" content="no-referer">
11
    <meta name="referrer" content="no-referrer">
30017 amit.gupta 12
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
13
    <link rel="shortcut icon" href="assets/images/icons/favicon.png">
26010 amit.gupta 14
 
30017 amit.gupta 15
    <title>Smart Dukaan - FOCO Dashboard</title>
26010 amit.gupta 16
 
30017 amit.gupta 17
    <!-- Bootstrap CSS -->
18
    <!-- bootstrap theme -->
19
    <!--external css-->
20
    <!-- font icon -->
21
    <link href="resources/css/elegant-icons-style.css" rel="stylesheet"/>
22
    <link href="resources/css/font-awesome.min.css" rel="stylesheet"/>
23
    <!-- full calendar css-->
24
    <!-- owl carousel -->
25
    <link rel="stylesheet" href="resources/css/owl.carousel.css"
26
          type="text/css">
27
    <link href="resources/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
28
    <!-- Custom styles -->
29
    <link href="resources/css/widgets.css" rel="stylesheet">
30
    <link href="resources/css/multi.min.css?v=${cssVersion}" type="text/css"
31
          rel="stylesheet">
32
    <link href="resources/css/style.css?v=${cssVersion}" rel="stylesheet">
33
    <link href="resources/css/card.css?v=${cssVersion}" rel="stylesheet">
34
    <link href="resources/css/style-responsive.css" rel="stylesheet"/>
35
    <link href="resources/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
36
    <link type="text/css" href="resources/css/bootstrap.css"
37
          rel="stylesheet">
38
    <!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" />-->
39
    <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet">
40
    <link rel="stylesheet" type="text/css"
41
          href="resources/js/daterangepicker/daterangepicker.css"/>
42
    <link rel="stylesheet" type="text/css"
43
          href="resources/js/chosen.min.css"/>
44
    <link href="resources/css/bootstrap-duallistbox.css" rel="stylesheet"/>
45
    <link rel="stylesheet" type="text/css"
46
          href="resources/css/bootstrap-multiselect.css"/>
47
    <link rel="stylesheet" type="text/css"
31189 tejbeer 48
          href="resources/css/datatables.bootstrap.min.css"/>
30017 amit.gupta 49
    <link rel='stylesheet'
50
          href='https://use.fontawesome.com/releases/v5.7.0/css/all.css'
51
          integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ'
52
          crossorigin='anonymous'>
28451 tejbeer 53
 
30017 amit.gupta 54
    <style type="text/css">
55
        .loading {
56
            display: none;
57
        }
28451 tejbeer 58
 
30017 amit.gupta 59
        .breadcrumb {
60
            padding: 0 15px;
61
        }
28451 tejbeer 62
 
30017 amit.gupta 63
        .stars-outer {
64
            display: inline-block;
65
            position: relative;
66
            font-family: FontAwesome;
67
        }
28451 tejbeer 68
 
30017 amit.gupta 69
        .stars-outer::before {
70
            content: "\f006 \f006 \f006 \f006 \f006";
71
        }
28451 tejbeer 72
 
30017 amit.gupta 73
        .stars-inner {
74
            position: absolute;
75
            top: 0;
76
            left: 0;
77
            white-space: nowrap;
78
            overflow: hidden;
79
            width: 0;
80
        }
28451 tejbeer 81
 
30017 amit.gupta 82
        .stars-inner::before {
83
            content: "\f005 \f005 \f005 \f005 \f005";
84
            color: #f8ce0b;
85
        }
28451 tejbeer 86
 
30017 amit.gupta 87
        .table-striped > tbody > tr:nth-child(odd) > td {
88
            background: white;
89
            background-color: #dae5f4;
90
        }
28451 tejbeer 91
 
30017 amit.gupta 92
        .table-striped > tbody > tr:nth-child(even) > td {
93
            background: #f2f2f2;
94
            background-color: #b8d1f3;
95
        }
28451 tejbeer 96
 
30017 amit.gupta 97
        .btn:hover {
98
            color: grey;
99
            text-decoration: none;
100
        }
28451 tejbeer 101
 
30017 amit.gupta 102
        .btn-primary:hover {
103
            color: grey;
104
            text-decoration: none;
105
        }
28451 tejbeer 106
 
30017 amit.gupta 107
        .sale-details {
108
            cursor: pointer;
109
        }
28451 tejbeer 110
 
30017 amit.gupta 111
        .popover {
112
            min-width: 18%;
113
        }
28451 tejbeer 114
 
30017 amit.gupta 115
        .fa-2x {
116
            font-size: 1.4em;
117
        }
28451 tejbeer 118
 
30017 amit.gupta 119
        .cover {
120
            object-fit: cover;
121
            width: 100%;
122
            height: 90px;
123
            padding: 8px;
124
        }
28451 tejbeer 125
 
30017 amit.gupta 126
        .info-box .notifications i {
127
            display: inline-block;
128
            margin-top: 0px;
129
            height: 25px;
130
            font-size: 16px;
131
            line-height: 25px;
132
            width: 25px;
133
            float: none;
134
            text-align: center;
135
            padding-right: 0px;
136
            color: #768399;
137
        }
28451 tejbeer 138
 
30017 amit.gupta 139
        #preview {
140
            position: relative;
141
            color: #fff;
142
            float: left;
143
            width: 100%;
144
            -webkit-border-radius: 10px;
145
            -moz-border-radius: 10px;
146
            border-radius: 10px;
147
            clear: both;
148
        }
28451 tejbeer 149
 
30017 amit.gupta 150
        #canvas-preview {
151
            width: 100%;
152
            position: relative;
153
            top: -15px;
154
        }
28451 tejbeer 155
 
30017 amit.gupta 156
        #preview-textfield {
157
            position: absolute;
158
            top: -10px;
159
            left: 0;
160
            right: 0;
161
            text-align: center;
162
            font-size: 2em;
163
            font-weight: bold;
164
            color: white;
165
            font-family: 'Amaranth', sans-serif;
166
        }
167
    </style>
28451 tejbeer 168
 
30017 amit.gupta 169
    <script type="text/javascript">
170
        isAdmin = true;
28451 tejbeer 171
 
30017 amit.gupta 172
        function getWarehousePartners(warehouseId) {
28451 tejbeer 173
 
30017 amit.gupta 174
            doGetAjaxRequestHandler(context + "/getWarehousePartners?warehouseId=" + warehouseId,
175
                    function (response) {
176
                        $('#' + "main-content").html(response);
177
                        console.log(response)
178
                    });
179
        }
26418 tejbeer 180
 
30017 amit.gupta 181
        function getWarehouseBrandStock(warehouseId) {
27529 tejbeer 182
 
32177 amit.gupta 183
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId=" + warehouseId,
30017 amit.gupta 184
                    function (response) {
185
                        $('#' + "main-content").html(response);
186
                        console.log(response)
187
                    });
188
        }
27529 tejbeer 189
 
26010 amit.gupta 190
 
30017 amit.gupta 191
        function getWarehouseWiseBrandPartnerSale(brand) {
192
 
193
            doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand=" + brand,
194
                    function (response) {
195
                        $('#' + "main-content").html(response);
196
                        console.log(response)
197
                    });
198
        }
199
 
200
        function getWarehouseWiseBrandActivatedModel(brand) {
201
 
202
            doGetAjaxRequestHandler(context + "/getActivatedModelWarehouseWise?brand=" + brand,
203
                    function (response) {
204
                        $('#' + "main-content").html(response);
205
                        console.log(response)
206
                    });
207
        }
208
 
209
        function getWarehouseWiseAccessoriesBrandPartnerSale(brand) {
210
            doGetAjaxRequestHandler(context + "/getWarehouseWiseAccesoriesBrandPartnerSale?brand=" + brand,
211
                    function (response) {
212
                        $('#' + "main-content").html(response);
213
                        console.log(response)
214
                    });
215
        }
216
 
217
 
218
    </script>
219
 
220
 
221
    <script type="text/javascript">
222
        function getWarehouseWiseData() {
223
            doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
224
                    function (response) {
225
                        $('#' + "main-content").html(response);
226
                        console.log(response)
227
                        if (response == 'true') {
228
 
229
                            window.location.href = $('.dashboardload').attr('href');
230
                        }
231
                    });
232
        }
233
 
234
        function getPartnersStat() {
235
            doGetAjaxRequestHandler(context + "/getPartnersStatData",
236
                    function (response) {
237
                        if (response == 'true') {
238
                            window.location.href = $('.dashboardload').attr('href');
239
                        }
240
                    });
241
        }
242
 
243
 
244
    </script>
245
 
246
 
28451 tejbeer 247
</head>
26010 amit.gupta 248
 
28451 tejbeer 249
<body style="background-color: #f7f7f7">
30017 amit.gupta 250
<!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
251
<!-- container section start -->
252
<section id="container">
28451 tejbeer 253
 
254
 
30017 amit.gupta 255
    <header class="header dark-bg">
256
        <div class="toggle-nav">
257
            <div class="icon-reorder tooltips"
258
                 data-original-title="Toggle Navigation" data-placement="bottom">
259
                <i class="icon_menu"></i>
260
            </div>
261
        </div>
262
        <div class="top-nav notification-row">
263
            <!-- notificatoin dropdown start-->
264
            <ul class="nav pull-right top-menu">
265
                <!-- user login dropdown start-->
266
                <li class="dropdown"><a data-toggle="dropdown"
267
                                        class="dropdown-toggle" href="#"> <span class="profile-ava">
28451 tejbeer 268
								<img class="avatar-custom" id="photo" alt="" src="">
269
						</span> <span class="username" id="fofo_name"></span> <b class="caret"></b>
30017 amit.gupta 270
                </a>
271
                    <ul class="dropdown-menu extended logout">
272
                        <div class="log-arrow-up"></div>
273
                        <li class="eborder-top"><a class="change-auth-user-password"
274
                                                   href="javascript:void(0);"><i class=""></i>Change Password</a></li>
30298 amit.gupta 275
                        <li><a href="${rc.contextPath}/mobileapp"><i class="icon_key_alt" id="logout"></i>SD Mobile App</a>
276
                        </li>
30017 amit.gupta 277
                        <li><a href="${rc.contextPath}/logout"><i
278
                                class="icon_key_alt" id="logout"></i> Log Out</a></li>
279
                    </ul>
280
                </li>
281
                <!-- user login dropdown end -->
282
            </ul>
283
            <!-- notificatoin dropdown end-->
284
        </div>
285
    </header>
286
    <!--header end-->
28451 tejbeer 287
 
30017 amit.gupta 288
    <!--sidebar start-->
289
    <aside>
290
        <div id="sidebar" class="nav-collapse ">
291
            <!-- sidebar menu start-->
292
            <ul class="sidebar-menu">
293
                <li class="active"><a class="dashboardload"
294
                                      href="${rc.contextPath}/dashboard"> <i class="icon_house_alt"></i>
295
                    <span>Dashboard</span>
296
                </a></li>
297
                #foreach($menuItem in $menu)
298
                    <li class="sub-menu"><a href="javascript:;" class=""> <i
299
                            class="icon_document_alt"></i> <span>$menuItem.getDisplayText()</span>
300
                        <span class="menu-arrow arrow_carrot-right"></span>
301
                    </a>
302
                        <ul class="sub">
303
                            #foreach($subMenu in $menuItem.getSubMenus())
304
                                <li><a class="$subMenu.getActionClass()"
305
                                       href="javascript:void(0);">$subMenu.getDisplayText()</a></li> #end
306
                        </ul>
307
                    </li> #end
308
            </ul>
309
            <!-- sidebar menu end-->
310
        </div>
311
    </aside>
312
    <!--sidebar end-->
26010 amit.gupta 313
 
30017 amit.gupta 314
    <!--main content start-->
315
    <section id="main-content">
316
        <section class="wrapper">
317
            <!--overview start-->
318
            <div class="row">
319
                <div class="col-lg-12">
320
                    <h3 class="page-header">
321
                        <i class="fa fa-laptop"></i> Dashboard
322
                    </h3>
323
                    <ol class="breadcrumb">
324
                        <li><i class="fa fa-home"></i><a
325
                                href="${rc.contextPath}/dashboard">Home</a></li>
326
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
327
                    </ol>
328
                </div>
329
            </div>
330
            <!-- overview end -->
28451 tejbeer 331
 
30017 amit.gupta 332
            #if($warehousePartnerDetailMap)
333
                <div class="row">
28451 tejbeer 334
 
30017 amit.gupta 335
                    <div class="col-lg-6">
28451 tejbeer 336
 
30017 amit.gupta 337
                        <div class="row col-lg-4">
338
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
339
                                <strong>Partner Wise Report</strong>
340
                            </h3>
341
                        </div>
28451 tejbeer 342
 
30017 amit.gupta 343
                        <div style="float: right">
28451 tejbeer 344
							<span style="margin-right: 10px">Last Fetch :-
30017 amit.gupta 345
                                $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
30601 amit.gupta 346
                            <!--   <button class="btn btn-primary fetchPartnersData"
347
                                       onclick="getPartnersStat()" type="button">Fetch
348
                               </button> -->
30017 amit.gupta 349
                        </div>
350
                        <table class="table table-striped table-advance table-hover">
351
                            <tbody>
352
                            <tr>
353
                                <th>W/H Location</th>
354
                                <th>Partners</th>
355
                                <th>LMS</th>
356
                                <th>LMTD</th>
357
                                <th>MTD</th>
358
                                <th>Today Tertiary</th>
359
                                <th>Tickets</th>
360
                            </tr>
361
                                #foreach($name in $warehousePartnerDetailMap.keySet())
362
                                <tr onclick="getWarehousePartners($name)">
363
                                    <td>$warehouseMap.get($name)</td>
364
                                    <td>$warehousePartnerDetailMap.get($name).getCount()</td>
365
                                    <td class="currency">$warehousePartnerDetailMap.get($name).getLms()</td>
366
                                    <td class="currency">$warehousePartnerDetailMap.get($name).getLmtd()</td>
367
                                    <td class="currency">$warehousePartnerDetailMap.get($name).getMtd()</td>
368
                                    <td class="currency">$warehousePartnerDetailMap.get($name).getTodayTertiary()</td>
28451 tejbeer 369
 
30017 amit.gupta 370
                                    <td>$warehousePartnerDetailMap.get($name).getTicket()</td>
28451 tejbeer 371
 
30017 amit.gupta 372
                                </tr>
373
                                #end
28451 tejbeer 374
 
30017 amit.gupta 375
                            </tbody>
376
                        </table>
377
                    </div>
28451 tejbeer 378
 
30017 amit.gupta 379
                    <div class="col-lg-4">
380
                        <div class="row col-lg-8">
381
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
382
                                <strong>Warehouse Wise Report</strong>
383
                            </h3>
384
                        </div>
28451 tejbeer 385
 
30017 amit.gupta 386
                        <div style="float: right">
28451 tejbeer 387
							<span style="margin-right: 10px">Last Fetch :-
30017 amit.gupta 388
                                $reporticoDate.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
389
                            <button class="btn btn-primary fetchWarehouseData"
390
                                    onclick="getWarehouseWiseData()" type="button">Fetch
391
                            </button>
392
                        </div>
393
                        <table class="table table-striped table-advance table-hover">
394
                            <tbody>
395
                            <tr>
396
                                <th>W/H Location</th>
397
                                <th>Total Stock</th>
398
                                <th>Total Value</th>
399
                                <th>Pending Indent</th>
400
                                <th>Tertiary</th>
401
                            </tr>
402
                                #foreach($key in $warehouseStockMap.keySet())
28451 tejbeer 403
 
30017 amit.gupta 404
                                <tr
405
                                        onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
406
                                    <td>$warehouseMap.get($key)</td>
407
                                    #if($warehouseStockMap.get($key).getStockQty())
408
                                        <td>$warehouseStockMap.get($key).getStockQty()</td>
409
                                        <td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
410
                                    #else
411
                                        <td>0</td>
412
                                        <td>0</td> #end
413
                                    #if($warehouseStockMap.get($key).getPendingIndent())
414
                                        <td>$warehouseStockMap.get($key).getPendingIndent()</td> #else
415
                                        <td>0</td> #end
28451 tejbeer 416
 
30017 amit.gupta 417
                                    <td>$warehouseStockMap.get($key).getTertiary()</td>
28451 tejbeer 418
 
30017 amit.gupta 419
                                </tr>
28451 tejbeer 420
 
30017 amit.gupta 421
                                #end
28451 tejbeer 422
 
423
 
30017 amit.gupta 424
                            </tbody>
425
                        </table>
28451 tejbeer 426
 
427
 
30017 amit.gupta 428
                    </div>
429
                </div>
28451 tejbeer 430
 
30017 amit.gupta 431
            #end
432
            <button class="btn btn-primary  clickshwograph"
433
                    style="display: none" type="button">Submit
434
            </button>
28451 tejbeer 435
 
30017 amit.gupta 436
            <div class="row">
437
                #if($warehousePartnerDetailMap)
28451 tejbeer 438
 
439
 
440
 
30017 amit.gupta 441
                    <div class="col-lg-6">
28451 tejbeer 442
 
443
 
30017 amit.gupta 444
                        <div class="row chartfilterlmsContainer" style="margin: 5px"></div>
28451 tejbeer 445
 
30017 amit.gupta 446
                        <div class="row col-lg-12">
447
                            <ul class="nav nav-tabs">
448
                                <li class="brand_month_sales"><a class="bms">BWMS</a></li>
449
                                <li class="brand_month_purchase"><a class="bmp">BWMP</a></li>
450
                            </ul>
451
                            <div class="row chartLmsContainer" style="margin:5px"></div>
28451 tejbeer 452
 
453
 
30017 amit.gupta 454
                        </div>
455
 
456
 
29137 manish 457
                    </div>
30017 amit.gupta 458
                #end
28451 tejbeer 459
 
460
 
30017 amit.gupta 461
                #if($warehousePartnerDetailMap)
462
                    <div class="col-lg-6">
463
                        <ul class="nav nav-tabs" style="margin: 5px">
464
                            <li class="mobile_based"><a class="ba">Mobile</a></li>
465
                            <li class="accessories_based"><a class="la">Accessories</a></li>
466
                            <li class="activation_summary"><a class="as">Activation Summary</a></li>
467
                            <li class="activation_updation"><a class="au">Activation Updation</a></li>
28461 tejbeer 468
 
469
 
30017 amit.gupta 470
                        </ul>
28461 tejbeer 471
 
472
 
30017 amit.gupta 473
                        <div class="row reportContainer" style="margin: 5px"></div>
28451 tejbeer 474
 
30017 amit.gupta 475
                    </div>
28451 tejbeer 476
 
477
 
478
 
30017 amit.gupta 479
                #end
28451 tejbeer 480
 
30017 amit.gupta 481
            </div>
32177 amit.gupta 482
 
31259 tejbeer 483
              <div class="row">
484
 
485
 
32177 amit.gupta 486
                  <div class="col-lg-6">
31259 tejbeer 487
 
32177 amit.gupta 488
 
31273 tejbeer 489
                        <div class="row" style="margin-left:5px">
490
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
491
                                <strong>Sale MileStone</strong>
492
                            </h3>
493
                        </div>
31268 tejbeer 494
 
32177 amit.gupta 495
                      <div class="row saleMilestoneContainer" style="margin: 5px"></div>
31259 tejbeer 496
 
497
 
32177 amit.gupta 498
                  </div>
31273 tejbeer 499
 
500
 
32177 amit.gupta 501
                  <div class="col-lg-6">
31259 tejbeer 502
 
503
 
32177 amit.gupta 504
                      <div class="row" style="margin-left:5px">
505
                          <h3 style="margin-top: -2px; margin-bottom: 24px">
506
                              <strong>Purchase MileStone</strong>
507
                          </h3>
508
                      </div>
31273 tejbeer 509
 
32177 amit.gupta 510
                      <div class="row purchaseMilestoneContainer" style="margin: 5px"></div>
511
 
512
 
31273 tejbeer 513
                  </div>
514
 
515
 
32177 amit.gupta 516
              </div>
517
 
518
 
30017 amit.gupta 519
            <div class="row">
520
                #if($authUserTicketCount)
29137 manish 521
 
30017 amit.gupta 522
                    <div class="col-lg-6">
523
                        <div class="row col-lg-8">
524
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
525
                                <strong>Auth User Tickets</strong>
526
                            </h3>
527
                        </div>
28451 tejbeer 528
 
30017 amit.gupta 529
                        <table class="table table-striped table-advance table-hover"
530
                               style="width: 65%">
531
                            <tbody>
532
                            <tr>
533
                                <th>Auth User</th>
534
                                <th>Tickets</th>
28451 tejbeer 535
 
30017 amit.gupta 536
                            </tr>
537
                                #foreach($authUserTicket in $authUserTicketCount.entrySet())
28451 tejbeer 538
 
30017 amit.gupta 539
                                <tr>
540
                                    <td>$authUserTicket.getKey().getName()</td>
541
                                    <td>$authUserTicket.getValue()</td>
28461 tejbeer 542
 
30017 amit.gupta 543
                                </tr>
28461 tejbeer 544
 
30017 amit.gupta 545
                                #end
28461 tejbeer 546
 
547
 
30017 amit.gupta 548
                            </tbody>
549
                        </table>
28451 tejbeer 550
 
30017 amit.gupta 551
                    </div>
552
                #end
32172 jai.hind 553
                <div class="col-lg-6">
554
                <h3 style="margin-top: -2px; margin-bottom: 24px">
555
                                                <strong>Loan Summary</strong>
556
                                            </h3>
557
 
558
                                 <table class="table table-striped table-advance table-hover"
559
                                                                style="width: 50%">
560
                                  <tbody>
561
                                 <tr>
562
                                     <th>   </th>
563
                                     <th>Loan Count</th>
564
                                     <th>Loan Value</th>
565
                                   </tr>
566
                                   </thead>
567
                                   <tr>
568
                                     <th>Total Loan</th>
569
                                     <td>$loanSummary.getPendingLoansLoanAggregation().getPartnerCount()</td>
570
                                     <td>$loanSummary.getPendingLoansLoanAggregation().getTotalValue()</td>
571
                                   </tr>
572
                                   <tr>
573
                                     <th>Default Loan</th>
574
                                     <td>$loanSummary.getDefaultLoansAggregation().getPartnerCount()</td>
575
                                     <td>$loanSummary.getDefaultLoansAggregation().getTotalValue()</td>
576
                                   </tr>
577
                                   <tr>
578
                                     <th>Due Loan</th>
579
                                      <td>$loanSummary.getDueLoansAggregation().getPartnerCount()</td>
580
                                      <td>$loanSummary.getDueLoansAggregation().getTotalValue()</td>
581
                                   </tr>
582
                                  </tbody>
583
                                 </table>
584
 
585
                                 </div>
586
 
587
 
30017 amit.gupta 588
            </div>
589
            #if($authUserTicketCount)
590
                <div class="row">
591
                    <div class="col-lg-6">
28451 tejbeer 592
 
593
 
30017 amit.gupta 594
                        <div class="row col-lg-4">
595
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
596
                                <strong>Reports</strong>
597
                            </h3>
598
                        </div>
599
                        <div class="row col-lg-12 info-box white-bg">
600
                            <table class="table table-striped reports-table"
601
                                   style="display: none">
602
                                <tbody>
603
                                <div class="list-group">
604
                                    #foreach($reporticoProjectEntry in
605
                                        $reporticoProjectMap.entrySet()) #foreach($reporticoUrlInfo in
606
                                        $reporticoProjectEntry.getValue()) <a
607
                                            href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}"
608
                                            class="list-group-item"
609
                                        #if($reporticoUrlInfo.getParamsList())
610
                                            data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
611
                                        #end>
612
                                        <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
613
                                        <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
614
                                    </a> #end #end
615
                                </div>
616
                                </tbody>
617
                            </table>
28461 tejbeer 618
 
30017 amit.gupta 619
                        </div>
620
                    </div>
621
                    <div class="col-lg-6">
28451 tejbeer 622
 
623
 
30017 amit.gupta 624
                        <div class="row col-lg-12 info-box white-bg">
625
                            <div class="col-lg-4">
626
                                <h3 style="margin-top: -2px; margin-bottom: 24px">
627
                                    <strong>My Messages</strong>
628
                                </h3>
629
                            </div>
630
                            <div class="col-lg-4">
631
                                <div class="btn-group message-filter">
632
                                    <button data-messagetype="notification" type="button"
633
                                            class="btn btn-default" aria-label="Notifications"
634
                                            title="Notifications">
635
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
636
                                    </button>
637
                                    <button data-messagetype="announcement" type="button"
638
                                            class="btn btn-default" aria-label="Announcements"
639
                                            title="Announcements">
640
                                        <span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span>
641
                                    </button>
642
                                    <button data-messagetype="scheme" type="button"
643
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
644
                                            title="SmartDukaan Schemes">
645
                                        <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
646
                                    </button>
647
                                    <button data-messagetype="marketing" type="button"
648
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
649
                                            title="SmartDukaan Schemes">
650
                                        <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
651
                                    </button>
652
                                </div>
653
                            </div>
654
                            <div class="col-lg-12 row notification-container"
655
                                 style="max-height: 500px; overflow-y: scroll;"></div>
656
                        </div>
657
                    </div>
28461 tejbeer 658
 
30017 amit.gupta 659
                </div>
28461 tejbeer 660
 
661
 
30017 amit.gupta 662
            #end #if(!$authUserTicketCount)
28461 tejbeer 663
 
30017 amit.gupta 664
            <div class="row">
665
                <div class="col-lg-6">
666
                    <div class="row col-lg-4">
667
                        <h3 style="margin-top: -2px; margin-bottom: 24px">
668
                            <strong>Reports</strong>
669
                        </h3>
670
                    </div>
671
                    <div class="row col-lg-12 info-box white-bg">
672
                        <table class="table table-striped reports-table"
673
                               style="display: none">
674
                            <tbody>
675
                            <div class="list-group">
676
                                #foreach($reporticoProjectEntry in
677
                                    $reporticoProjectMap.entrySet()) #foreach($reporticoUrlInfo in
678
                                    $reporticoProjectEntry.getValue()) <a
679
                                        href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}"
680
                                        class="list-group-item"
681
                                    #if($reporticoUrlInfo.getParamsList())
682
                                        data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
683
                                    #end>
684
                                    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
685
                                    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
686
                                </a> #end #end
687
                            </div>
688
                            </tbody>
689
                        </table>
28461 tejbeer 690
 
30017 amit.gupta 691
                    </div>
28461 tejbeer 692
 
30017 amit.gupta 693
                </div>
694
                <div class="col-lg-6">
695
                    <div class="col-lg-12">
696
                        <div class="row col-lg-12 info-box white-bg">
697
                            <div class="col-lg-4">
698
                                <h3 style="margin-top: -2px; margin-bottom: 24px">
699
                                    <strong>My Messages</strong>
700
                                </h3>
701
                            </div>
702
                            <div class="col-lg-4">
703
                                <div class="btn-group message-filter">
704
                                    <button data-messagetype="notification" type="button"
705
                                            class="btn btn-default" aria-label="Notifications"
706
                                            title="Notifications">
707
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
708
                                    </button>
709
                                    <button data-messagetype="announcement" type="button"
710
                                            class="btn btn-default" aria-label="Announcements"
711
                                            title="Announcements">
712
                                        <span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span>
713
                                    </button>
714
                                    <button data-messagetype="scheme" type="button"
715
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
716
                                            title="SmartDukaan Schemes">
717
                                        <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
718
                                    </button>
719
                                    <button data-messagetype="marketing" type="button"
720
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
721
                                            title="SmartDukaan Schemes">
722
                                        <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
723
                                    </button>
724
                                </div>
725
                            </div>
726
                            <div class="col-lg-12 row notification-container"
727
                                 style="max-height: 500px; overflow-y: scroll;"></div>
728
                        </div>
729
                    </div>
730
                </div>
731
            </div>
28461 tejbeer 732
 
30017 amit.gupta 733
        #end
734
        </section>
735
        <div class="text-center">
736
            <div class="credits">
737
                <p>All rights reserved.&copy;2017, Smart Dukaan</p>
738
            </div>
739
        </div>
740
    </section>
26010 amit.gupta 741
 
30017 amit.gupta 742
    <script type="text/javascript">
743
        context = "${rc.contextPath}";
744
        webApiScheme = "$webApiScheme";
745
        webApiRoot = "$webApiRoot";
746
        webApiHost = "$webApiHost";
747
        webApiPort = "$webApiPort";
748
            #if($authId)
749
            retailers = $retailers;
750
            warehouses = $warehouses;
751
            authId = $authId;
752
            #end
28451 tejbeer 753
 
26010 amit.gupta 754
 
30017 amit.gupta 755
    </script>
756
    #parse("include-scripts.vm")
28451 tejbeer 757
 
30017 amit.gupta 758
    <script>
26010 amit.gupta 759
 
30017 amit.gupta 760
        //knob
761
        $(function () {
762
            /*$(".knob").knob({
763
              'draw' : function () {
764
                $(this.i).val(this.cv + '%')
765
              }
766
            });*/
767
            $.fn.dataTable.moment('DD/MM/YYYY');
768
            $.fn.dataTable.moment('DD/MM/YYYY hh:mm');
769
            $('.currency').each(function (index, ele) {
770
                if (!isNaN(parseInt($(ele).html()))) {
771
                    $(ele).html(numberToComma($(ele).html()));
772
                }
773
            });
774
        });
28461 tejbeer 775
 
30017 amit.gupta 776
        $(function () {
777
            var profile = localStorage.getItem('profile');
778
            if (profile) {
779
                $("#photo").attr("src", JSON.parse(profile).image_url);
780
                $("#fofo_name").text(JSON.parse(profile).name);
781
            } else {
782
                $("#photo").attr("src", "");
783
                $("#fofo_name").text("Welcome, User");
784
            }
785
        });
28461 tejbeer 786
 
787
 
30017 amit.gupta 788
        $(function () {
789
            loaderDialogObj = bootbox.dialog({
790
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
791
                show: false
792
            });
793
        });
29137 manish 794
 
30017 amit.gupta 795
        $(document).ready(function () {
29137 manish 796
 
30017 amit.gupta 797
            $(".clickshwograph").click();
29137 manish 798
 
30017 amit.gupta 799
            $(".mobile_based").click();
29137 manish 800
 
30017 amit.gupta 801
            $('div.message-filter').on('click', 'button', function () {
802
                messageType = $(this).data("messagetype");
803
                if ($(this).hasClass('btn-pressed')) {
804
                    messageType = "";
805
                    $('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
806
                } else {
807
                    $('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
808
                    $(this).addClass('btn-pressed').removeClass('btn-default');
809
                }
810
                notifyTypeChange(messageType);
811
            });
812
            notifyTypeChange("");
813
        });
28451 tejbeer 814
 
30017 amit.gupta 815
 
816
        $(document).on("click", ".mobile_based",
817
                function () {
818
 
819
                    $(".ba").css("color", "blue");
820
                    $(".ba").css("background-color", "white");
821
                    $(".la").css("color", "white");
822
                    $(".la").css("background-color", "#C0C0C0");
823
                    $(".as").css("color", "white");
824
                    $(".as").css("background-color", "#C0C0C0");
825
 
826
                    $(".au").css("color", "white");
827
                    $(".au").css("background-color", "#C0C0C0");
828
 
829
                    doGetAjaxRequestHandler(context + "/getMobileBrandWise", function (response) {
830
                        $('.reportContainer').html(response);
831
                    });
832
                });
833
 
834
        $(document).on("click", ".accessories_based",
835
                function () {
836
 
837
                    $(".ba").css("color", "white");
838
                    $(".ba").css("background-color", "#C0C0C0");
839
                    $(".la").css("color", "blue");
840
                    $(".la").css("background-color", "white");
841
                    $(".as").css("color", "white");
842
                    $(".as").css("background-color", "#C0C0C0");
843
 
844
                    $(".au").css("color", "white");
845
                    $(".au").css("background-color", "#C0C0C0");
846
                    doGetAjaxRequestHandler(context + "/getAccessoriesBrandWise", function (response) {
847
                        $('.reportContainer').html(response);
848
                    });
849
                });
850
 
851
 
852
        $(document).on("click", ".activation_summary",
853
                function () {
854
 
855
                    $(".as").css("color", "blue");
856
                    $(".as").css("background-color", "white");
857
                    $(".ba").css("color", "white");
858
                    $(".ba").css("background-color", "#C0C0C0");
859
                    $(".la").css("color", "white");
860
                    $(".la").css("background-color", "#C0C0C0");
861
 
862
                    $(".au").css("color", "white");
863
                    $(".au").css("background-color", "#C0C0C0");
864
                    doGetAjaxRequestHandler(context + "/getActivatedModelByBrand", function (response) {
865
                        $('.reportContainer').html(response);
866
                    });
867
                });
868
 
869
 
870
        $(document).on("click", ".activation_updation",
871
                function () {
872
 
873
                    $(".as").css("color", "white");
874
                    $(".as").css("background-color", "#C0C0C0");
875
                    $(".au").css("color", "blue");
876
                    $(".au").css("background-color", "white");
877
                    $(".ba").css("color", "white");
878
                    $(".ba").css("background-color", "#C0C0C0");
879
 
880
                    $(".la").css("color", "white");
881
                    $(".la").css("background-color", "#C0C0C0");
882
                    doGetAjaxRequestHandler(context + "/getActivatedImeiUpdationDate", function (response) {
883
                        $('.reportContainer').html(response);
884
                    });
885
                });
886
 
887
 
31273 tejbeer 888
        doGetAjaxRequestHandler(context + "/getSaleCountByMilestone", function (response) {
31259 tejbeer 889
            $('.saleMilestoneContainer').html(response);
890
        });
891
 
31273 tejbeer 892
         doGetAjaxRequestHandler(context + "/getPurchaseCountByMileStone", function (response) {
893
            $('.purchaseMilestoneContainer').html(response);
894
        });
31259 tejbeer 895
             doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
30601 amit.gupta 896
            $('.chartfilterlmsContainer').html(response);
897
        });
31259 tejbeer 898
 
30017 amit.gupta 899
 
900
 
30601 amit.gupta 901
        $(document).on('click', ".brand_month_sales", function () {
902
            $(".bms").css("color", "blue");
903
            $(".bms").css("background-color", "white");
904
            $(".bmp").css("color", "white");
905
            $(".bmp").css("background-color", "#C0C0C0");
906
            var warehouseId = $('#warehouseMap').val();
907
            var filterType = $('#monthDateFilter').val();
30017 amit.gupta 908
 
30601 amit.gupta 909
            var fofoIds = $('#fofo-users').val();
30017 amit.gupta 910
 
30601 amit.gupta 911
            doGetAjaxRequestHandler(context
912
                    + "/getMobileLMSGraph?warehouseId=" + warehouseId
913
                    + "&date=" + getDatesFromPicker($('input[name="dateRange"]')).startDate
914
                    + "&endDate=" + getDatesFromPicker($('input[name="dateRange"]')).endDate
915
                    + "&fofoIds=" + fofoIds + "&filterType=" + filterType, function (response) {
916
                $('.chartLmsContainer').html(response);
917
            });
918
        });
30017 amit.gupta 919
 
920
        $('#fofo-users').multiselect({
921
            includeSelectAllOption: true,
922
            multiple: true,
923
            maxHeight: 200,
924
            buttonWidth: '180px',
925
            numberDisplayed: 1,
926
            nonSelectedText: 'Users',
927
            nSelectedText: ' - Users Selected',
928
            allSelectedText: 'All Users Selected',
929
            enableFiltering: true,
930
            enableCaseInsensitiveFiltering: true
931
        });
932
 
933
    </script>
934
    <div id="report-modal" class="modal" role="dialog"
935
         data-backdrop="static" data-keyboard="false">
936
        <div class="modal-dialog">
937
 
938
            <!-- Modal content-->
939
            <div class="modal-content">
940
                <div class="modal-header">
941
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
942
                    <h4 class="modal-title"></h4>
943
                </div>
944
                <div class="modal-body"></div>
945
                <div class="modal-footer">
946
                    <button type="button" data-dismiss="modal"
947
                            class="btn btn-default download-report">Download
948
                    </button>
949
                </div>
950
            </div>
951
        </div>
952
    </div>
30601 amit.gupta 953
</section>
28451 tejbeer 954
</body>
26010 amit.gupta 955
</html>