Subversion Repositories SmartDukaan

Rev

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