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