Subversion Repositories SmartDukaan

Rev

Rev 31259 | Rev 31273 | 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"
31189 tejbeer 45
          href="resources/css/datatables.bootstrap.min.css"/>
30017 amit.gupta 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>
31259 tejbeer 479
 
480
              <div class="row">
481
 
482
 
483
                    <div class="col-lg-6">
484
 
485
 
31268 tejbeer 486
 
487
 
31259 tejbeer 488
                        <div class="row saleMilestoneContainer" style="margin: 5px"></div>
489
 
490
 
491
 
492
                        </div>
493
 
494
 
495
             </div>
496
 
497
 
30017 amit.gupta 498
            <div class="row">
499
                #if($authUserTicketCount)
29137 manish 500
 
30017 amit.gupta 501
                    <div class="col-lg-6">
502
                        <div class="row col-lg-8">
503
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
504
                                <strong>Auth User Tickets</strong>
505
                            </h3>
506
                        </div>
28451 tejbeer 507
 
30017 amit.gupta 508
                        <table class="table table-striped table-advance table-hover"
509
                               style="width: 65%">
510
                            <tbody>
511
                            <tr>
512
                                <th>Auth User</th>
513
                                <th>Tickets</th>
28451 tejbeer 514
 
30017 amit.gupta 515
                            </tr>
516
                                #foreach($authUserTicket in $authUserTicketCount.entrySet())
28451 tejbeer 517
 
30017 amit.gupta 518
                                <tr>
519
                                    <td>$authUserTicket.getKey().getName()</td>
520
                                    <td>$authUserTicket.getValue()</td>
28461 tejbeer 521
 
30017 amit.gupta 522
                                </tr>
28461 tejbeer 523
 
30017 amit.gupta 524
                                #end
28461 tejbeer 525
 
526
 
30017 amit.gupta 527
                            </tbody>
528
                        </table>
28451 tejbeer 529
 
30017 amit.gupta 530
                    </div>
531
                #end
532
            </div>
533
            #if($authUserTicketCount)
534
                <div class="row">
535
                    <div class="col-lg-6">
28451 tejbeer 536
 
537
 
30017 amit.gupta 538
                        <div class="row col-lg-4">
539
                            <h3 style="margin-top: -2px; margin-bottom: 24px">
540
                                <strong>Reports</strong>
541
                            </h3>
542
                        </div>
543
                        <div class="row col-lg-12 info-box white-bg">
544
                            <table class="table table-striped reports-table"
545
                                   style="display: none">
546
                                <tbody>
547
                                <div class="list-group">
548
                                    #foreach($reporticoProjectEntry in
549
                                        $reporticoProjectMap.entrySet()) #foreach($reporticoUrlInfo in
550
                                        $reporticoProjectEntry.getValue()) <a
551
                                            href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}"
552
                                            class="list-group-item"
553
                                        #if($reporticoUrlInfo.getParamsList())
554
                                            data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
555
                                        #end>
556
                                        <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
557
                                        <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
558
                                    </a> #end #end
559
                                </div>
560
                                </tbody>
561
                            </table>
28461 tejbeer 562
 
30017 amit.gupta 563
                        </div>
564
                    </div>
565
                    <div class="col-lg-6">
28451 tejbeer 566
 
567
 
30017 amit.gupta 568
                        <div class="row col-lg-12 info-box white-bg">
569
                            <div class="col-lg-4">
570
                                <h3 style="margin-top: -2px; margin-bottom: 24px">
571
                                    <strong>My Messages</strong>
572
                                </h3>
573
                            </div>
574
                            <div class="col-lg-4">
575
                                <div class="btn-group message-filter">
576
                                    <button data-messagetype="notification" type="button"
577
                                            class="btn btn-default" aria-label="Notifications"
578
                                            title="Notifications">
579
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
580
                                    </button>
581
                                    <button data-messagetype="announcement" type="button"
582
                                            class="btn btn-default" aria-label="Announcements"
583
                                            title="Announcements">
584
                                        <span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span>
585
                                    </button>
586
                                    <button data-messagetype="scheme" type="button"
587
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
588
                                            title="SmartDukaan Schemes">
589
                                        <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
590
                                    </button>
591
                                    <button data-messagetype="marketing" type="button"
592
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
593
                                            title="SmartDukaan Schemes">
594
                                        <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
595
                                    </button>
596
                                </div>
597
                            </div>
598
                            <div class="col-lg-12 row notification-container"
599
                                 style="max-height: 500px; overflow-y: scroll;"></div>
600
                        </div>
601
                    </div>
28461 tejbeer 602
 
30017 amit.gupta 603
                </div>
28461 tejbeer 604
 
605
 
30017 amit.gupta 606
            #end #if(!$authUserTicketCount)
28461 tejbeer 607
 
30017 amit.gupta 608
            <div class="row">
609
                <div class="col-lg-6">
610
                    <div class="row col-lg-4">
611
                        <h3 style="margin-top: -2px; margin-bottom: 24px">
612
                            <strong>Reports</strong>
613
                        </h3>
614
                    </div>
615
                    <div class="row col-lg-12 info-box white-bg">
616
                        <table class="table table-striped reports-table"
617
                               style="display: none">
618
                            <tbody>
619
                            <div class="list-group">
620
                                #foreach($reporticoProjectEntry in
621
                                    $reporticoProjectMap.entrySet()) #foreach($reporticoUrlInfo in
622
                                    $reporticoProjectEntry.getValue()) <a
623
                                        href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}"
624
                                        class="list-group-item"
625
                                    #if($reporticoUrlInfo.getParamsList())
626
                                        data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
627
                                    #end>
628
                                    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
629
                                    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
630
                                </a> #end #end
631
                            </div>
632
                            </tbody>
633
                        </table>
28461 tejbeer 634
 
30017 amit.gupta 635
                    </div>
28461 tejbeer 636
 
30017 amit.gupta 637
                </div>
638
                <div class="col-lg-6">
639
                    <div class="col-lg-12">
640
                        <div class="row col-lg-12 info-box white-bg">
641
                            <div class="col-lg-4">
642
                                <h3 style="margin-top: -2px; margin-bottom: 24px">
643
                                    <strong>My Messages</strong>
644
                                </h3>
645
                            </div>
646
                            <div class="col-lg-4">
647
                                <div class="btn-group message-filter">
648
                                    <button data-messagetype="notification" type="button"
649
                                            class="btn btn-default" aria-label="Notifications"
650
                                            title="Notifications">
651
                                        <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
652
                                    </button>
653
                                    <button data-messagetype="announcement" type="button"
654
                                            class="btn btn-default" aria-label="Announcements"
655
                                            title="Announcements">
656
                                        <span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span>
657
                                    </button>
658
                                    <button data-messagetype="scheme" type="button"
659
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
660
                                            title="SmartDukaan Schemes">
661
                                        <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
662
                                    </button>
663
                                    <button data-messagetype="marketing" type="button"
664
                                            class="btn btn-default" aria-label="SmartDukaan Schemes"
665
                                            title="SmartDukaan Schemes">
666
                                        <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
667
                                    </button>
668
                                </div>
669
                            </div>
670
                            <div class="col-lg-12 row notification-container"
671
                                 style="max-height: 500px; overflow-y: scroll;"></div>
672
                        </div>
673
                    </div>
674
                </div>
675
            </div>
28461 tejbeer 676
 
30017 amit.gupta 677
        #end
678
        </section>
679
        <div class="text-center">
680
            <div class="credits">
681
                <p>All rights reserved.&copy;2017, Smart Dukaan</p>
682
            </div>
683
        </div>
684
    </section>
26010 amit.gupta 685
 
30017 amit.gupta 686
    <script type="text/javascript">
687
        context = "${rc.contextPath}";
688
        webApiScheme = "$webApiScheme";
689
        webApiRoot = "$webApiRoot";
690
        webApiHost = "$webApiHost";
691
        webApiPort = "$webApiPort";
692
            #if($authId)
693
            retailers = $retailers;
694
            warehouses = $warehouses;
695
            authId = $authId;
696
            #end
28451 tejbeer 697
 
26010 amit.gupta 698
 
30017 amit.gupta 699
    </script>
700
    #parse("include-scripts.vm")
28451 tejbeer 701
 
30017 amit.gupta 702
    <script>
26010 amit.gupta 703
 
30017 amit.gupta 704
        //knob
705
        $(function () {
706
            /*$(".knob").knob({
707
              'draw' : function () {
708
                $(this.i).val(this.cv + '%')
709
              }
710
            });*/
711
            $.fn.dataTable.moment('DD/MM/YYYY');
712
            $.fn.dataTable.moment('DD/MM/YYYY hh:mm');
713
            $('.currency').each(function (index, ele) {
714
                if (!isNaN(parseInt($(ele).html()))) {
715
                    $(ele).html(numberToComma($(ele).html()));
716
                }
717
            });
718
        });
28461 tejbeer 719
 
30017 amit.gupta 720
        $(function () {
721
            var profile = localStorage.getItem('profile');
722
            if (profile) {
723
                $("#photo").attr("src", JSON.parse(profile).image_url);
724
                $("#fofo_name").text(JSON.parse(profile).name);
725
            } else {
726
                $("#photo").attr("src", "");
727
                $("#fofo_name").text("Welcome, User");
728
            }
729
        });
28461 tejbeer 730
 
731
 
30017 amit.gupta 732
        $(function () {
733
            loaderDialogObj = bootbox.dialog({
734
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
735
                show: false
736
            });
737
        });
29137 manish 738
 
30017 amit.gupta 739
        $(document).ready(function () {
29137 manish 740
 
30017 amit.gupta 741
            $(".clickshwograph").click();
29137 manish 742
 
30017 amit.gupta 743
            $(".mobile_based").click();
29137 manish 744
 
30017 amit.gupta 745
            $('div.message-filter').on('click', 'button', function () {
746
                messageType = $(this).data("messagetype");
747
                if ($(this).hasClass('btn-pressed')) {
748
                    messageType = "";
749
                    $('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
750
                } else {
751
                    $('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
752
                    $(this).addClass('btn-pressed').removeClass('btn-default');
753
                }
754
                notifyTypeChange(messageType);
755
            });
756
            notifyTypeChange("");
757
        });
28451 tejbeer 758
 
30017 amit.gupta 759
 
760
        $(document).on("click", ".mobile_based",
761
                function () {
762
 
763
                    $(".ba").css("color", "blue");
764
                    $(".ba").css("background-color", "white");
765
                    $(".la").css("color", "white");
766
                    $(".la").css("background-color", "#C0C0C0");
767
                    $(".as").css("color", "white");
768
                    $(".as").css("background-color", "#C0C0C0");
769
 
770
                    $(".au").css("color", "white");
771
                    $(".au").css("background-color", "#C0C0C0");
772
 
773
                    doGetAjaxRequestHandler(context + "/getMobileBrandWise", function (response) {
774
                        $('.reportContainer').html(response);
775
                    });
776
                });
777
 
778
        $(document).on("click", ".accessories_based",
779
                function () {
780
 
781
                    $(".ba").css("color", "white");
782
                    $(".ba").css("background-color", "#C0C0C0");
783
                    $(".la").css("color", "blue");
784
                    $(".la").css("background-color", "white");
785
                    $(".as").css("color", "white");
786
                    $(".as").css("background-color", "#C0C0C0");
787
 
788
                    $(".au").css("color", "white");
789
                    $(".au").css("background-color", "#C0C0C0");
790
                    doGetAjaxRequestHandler(context + "/getAccessoriesBrandWise", function (response) {
791
                        $('.reportContainer').html(response);
792
                    });
793
                });
794
 
795
 
796
        $(document).on("click", ".activation_summary",
797
                function () {
798
 
799
                    $(".as").css("color", "blue");
800
                    $(".as").css("background-color", "white");
801
                    $(".ba").css("color", "white");
802
                    $(".ba").css("background-color", "#C0C0C0");
803
                    $(".la").css("color", "white");
804
                    $(".la").css("background-color", "#C0C0C0");
805
 
806
                    $(".au").css("color", "white");
807
                    $(".au").css("background-color", "#C0C0C0");
808
                    doGetAjaxRequestHandler(context + "/getActivatedModelByBrand", function (response) {
809
                        $('.reportContainer').html(response);
810
                    });
811
                });
812
 
813
 
814
        $(document).on("click", ".activation_updation",
815
                function () {
816
 
817
                    $(".as").css("color", "white");
818
                    $(".as").css("background-color", "#C0C0C0");
819
                    $(".au").css("color", "blue");
820
                    $(".au").css("background-color", "white");
821
                    $(".ba").css("color", "white");
822
                    $(".ba").css("background-color", "#C0C0C0");
823
 
824
                    $(".la").css("color", "white");
825
                    $(".la").css("background-color", "#C0C0C0");
826
                    doGetAjaxRequestHandler(context + "/getActivatedImeiUpdationDate", function (response) {
827
                        $('.reportContainer').html(response);
828
                    });
829
                });
830
 
831
 
31259 tejbeer 832
        doGetAjaxRequestHandler(context + "/getCountByCategory", function (response) {
833
            $('.saleMilestoneContainer').html(response);
834
        });
835
 
836
             doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
30601 amit.gupta 837
            $('.chartfilterlmsContainer').html(response);
838
        });
31259 tejbeer 839
 
30017 amit.gupta 840
 
841
 
30601 amit.gupta 842
        $(document).on('click', ".brand_month_sales", function () {
843
            $(".bms").css("color", "blue");
844
            $(".bms").css("background-color", "white");
845
            $(".bmp").css("color", "white");
846
            $(".bmp").css("background-color", "#C0C0C0");
847
            var warehouseId = $('#warehouseMap').val();
848
            var filterType = $('#monthDateFilter').val();
30017 amit.gupta 849
 
30601 amit.gupta 850
            var fofoIds = $('#fofo-users').val();
30017 amit.gupta 851
 
30601 amit.gupta 852
            doGetAjaxRequestHandler(context
853
                    + "/getMobileLMSGraph?warehouseId=" + warehouseId
854
                    + "&date=" + getDatesFromPicker($('input[name="dateRange"]')).startDate
855
                    + "&endDate=" + getDatesFromPicker($('input[name="dateRange"]')).endDate
856
                    + "&fofoIds=" + fofoIds + "&filterType=" + filterType, function (response) {
857
                $('.chartLmsContainer').html(response);
858
            });
859
        });
30017 amit.gupta 860
 
861
        $('#fofo-users').multiselect({
862
            includeSelectAllOption: true,
863
            multiple: true,
864
            maxHeight: 200,
865
            buttonWidth: '180px',
866
            numberDisplayed: 1,
867
            nonSelectedText: 'Users',
868
            nSelectedText: ' - Users Selected',
869
            allSelectedText: 'All Users Selected',
870
            enableFiltering: true,
871
            enableCaseInsensitiveFiltering: true
872
        });
873
 
874
    </script>
875
    <div id="report-modal" class="modal" role="dialog"
876
         data-backdrop="static" data-keyboard="false">
877
        <div class="modal-dialog">
878
 
879
            <!-- Modal content-->
880
            <div class="modal-content">
881
                <div class="modal-header">
882
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
883
                    <h4 class="modal-title"></h4>
884
                </div>
885
                <div class="modal-body"></div>
886
                <div class="modal-footer">
887
                    <button type="button" data-dismiss="modal"
888
                            class="btn btn-default download-report">Download
889
                    </button>
890
                </div>
891
            </div>
892
        </div>
893
    </div>
30601 amit.gupta 894
</section>
28451 tejbeer 895
</body>
26010 amit.gupta 896
</html>