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