Subversion Repositories SmartDukaan

Rev

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