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