Subversion Repositories SmartDukaan

Rev

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