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