Subversion Repositories SmartDukaan

Rev

Rev 29137 | Rev 30257 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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