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