| 30445 |
tejbeer |
1 |
<style>
|
|
|
2 |
|
|
|
3 |
</style>
|
|
|
4 |
|
|
|
5 |
|
| 30416 |
tejbeer |
6 |
<section class="wrapper">
|
|
|
7 |
<div class="row">
|
|
|
8 |
<div class="col-lg-12">
|
|
|
9 |
<h3 class="page-header"><i class="icon_document_alt"></i>PARTNER HEALTH</h3>
|
|
|
10 |
<ol class="breadcrumb">
|
|
|
11 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
12 |
<li><i class="icon_document_alt"></i>PARTNER HEALTH</li>
|
|
|
13 |
</ol>
|
|
|
14 |
</div>
|
|
|
15 |
</div>
|
| 32130 |
amit.gupta |
16 |
|
|
|
17 |
|
| 30416 |
tejbeer |
18 |
<div class="row">
|
| 32130 |
amit.gupta |
19 |
<div class="col-lg-2 form-group" style="width: 12%;">
|
|
|
20 |
<select id="authUserFilter" name="authUserFilter" placeholder="Auth User"
|
|
|
21 |
class="form-control input-sm">
|
|
|
22 |
<option value="" disabled selected>Auth User</option>
|
|
|
23 |
#foreach($authUser in $authUsers)
|
| 31687 |
amit.gupta |
24 |
|
| 32130 |
amit.gupta |
25 |
#if($selectedUser == $authUser)
|
|
|
26 |
<option value="$authUser.getEmailId()" selected>$authUser.getFullName()</option>
|
|
|
27 |
#else
|
|
|
28 |
<option value="$authUser.getEmailId()">$authUser.getFullName()</option>
|
|
|
29 |
#end
|
|
|
30 |
|
|
|
31 |
#end
|
|
|
32 |
|
|
|
33 |
</select>
|
|
|
34 |
</div>
|
|
|
35 |
|
|
|
36 |
<div class="col-lg-2">
|
|
|
37 |
<button class="btn btn-primary show-partner-health" type="button">Submit</button>
|
|
|
38 |
</div>
|
|
|
39 |
</div>
|
|
|
40 |
|
|
|
41 |
<div class="row">
|
|
|
42 |
<div class="row col-lg-5">
|
|
|
43 |
<canvas id="chart-area" width="50%"></canvas>
|
|
|
44 |
</div>
|
|
|
45 |
|
|
|
46 |
<div class="row col-lg-5">
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
<table class="table table-border table-condensed table-bordered">
|
|
|
50 |
<tr>
|
|
|
51 |
<th>Today Overall Call Count</th>
|
|
|
52 |
<td>$todayOverallCall</td>
|
|
|
53 |
</tr>
|
|
|
54 |
<tr>
|
|
|
55 |
<th>Today Total Target</th>
|
|
|
56 |
<td class="currency">$totalPartnerTargetCollection</td>
|
|
|
57 |
</tr>
|
|
|
58 |
|
|
|
59 |
<tr>
|
|
|
60 |
<th>Today Total Achievement</th>
|
|
|
61 |
<td class="currency">$totalPartnerAchievement</td>
|
|
|
62 |
</tr>
|
|
|
63 |
</table>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
|
|
|
67 |
<div class="row">
|
|
|
68 |
<div class="col-lg-12">
|
|
|
69 |
<button class="btn btn-primary" onclick="ExportToExcel(this, 'Partner Health')"
|
|
|
70 |
data-tableid="partner-health">Export
|
|
|
71 |
table to excel
|
|
|
72 |
</button>
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
|
|
75 |
<div class="row">
|
|
|
76 |
<div class="col-lg-12">
|
|
|
77 |
<table class="table table-border table-condensed table-bordered"
|
|
|
78 |
id="partner-health">
|
|
|
79 |
<thead>
|
|
|
80 |
<tr>
|
| 31687 |
amit.gupta |
81 |
<th>Partner Name</th>
|
|
|
82 |
<th>Code</th>
|
|
|
83 |
<th>Wallet Amount</th>
|
|
|
84 |
<th>Short Investment</th>
|
| 32130 |
amit.gupta |
85 |
<th>Auth User</th>
|
|
|
86 |
<th>Remark</th>
|
|
|
87 |
#foreach( $request in $partnerCollectionPlanMap.keySet() )
|
|
|
88 |
<th>$request</th>
|
|
|
89 |
#end
|
| 30416 |
tejbeer |
90 |
|
| 32130 |
amit.gupta |
91 |
</tr>
|
|
|
92 |
</thead>
|
|
|
93 |
<tbody>
|
|
|
94 |
#foreach($request in $customRetailers.entrySet() )
|
|
|
95 |
<tr>
|
|
|
96 |
<td>$request.getValue().getBusinessName()</td>
|
|
|
97 |
<td>$request.getValue().getCode()</td>
|
|
|
98 |
#if($partnerDailyInvestmentMap.get($request.getKey()).getWalletAmount())
|
|
|
99 |
<td class="currency">$partnerDailyInvestmentMap.get($request.getKey()).getWalletAmount()</td>
|
|
|
100 |
#else
|
|
|
101 |
<td> -</td>
|
|
|
102 |
#end
|
|
|
103 |
#if($partnerDailyInvestmentMap.get($request.getKey()).getShortInvestment())
|
| 30416 |
tejbeer |
104 |
|
| 32130 |
amit.gupta |
105 |
<td class="currency">$partnerDailyInvestmentMap.get($request.getKey()).getShortInvestment()</td>
|
|
|
106 |
#else
|
|
|
107 |
<td> -</td>
|
|
|
108 |
#end
|
| 30416 |
tejbeer |
109 |
|
| 32130 |
amit.gupta |
110 |
|
|
|
111 |
#if($todayPcpmMap.get($request.getKey()).getRemark())
|
|
|
112 |
|
|
|
113 |
<td>$authUserMap.get($todayPcpmMap.get($request.getKey()).getRemarkAuthId()).getFullName() </td>
|
|
|
114 |
#else
|
|
|
115 |
<td>-</td>
|
|
|
116 |
#end
|
|
|
117 |
|
|
|
118 |
#if($todayPcpmMap.get($request.getKey()).getRemark())
|
|
|
119 |
<td title="$todayPcpmMap.get($request.getKey()).getMessage()">$todayPcpmMap.get($request.getKey()).getRemark()
|
|
|
120 |
($todayPcpmMap.get($request.getKey()).getRemarkTimestamp().format($dateMonthFormatter))
|
|
|
121 |
</td>
|
|
|
122 |
#else
|
|
|
123 |
<td>-</td>
|
|
|
124 |
#end
|
|
|
125 |
#foreach($ldate in $partnerCollectionPlanMap.entrySet())
|
|
|
126 |
#set($rank = $ldate.getValue().get($request.getKey()).getRank())
|
|
|
127 |
#if($ldate.getValue().get($request.getKey()).getTargetPlan())
|
|
|
128 |
<td style="background-color : $rankColorMap.get($rank)">$ldate.getValue().get($request.getKey()).getTargetPlan()
|
|
|
129 |
|
|
|
130 |
#if($ldate.getValue().get($request.getKey()).getCommittedDate())
|
|
|
131 |
($ldate.getValue().get($request.getKey()).getCommittedDate().format($dateMonthFormatter)
|
|
|
132 |
)
|
|
|
133 |
#end</td>
|
|
|
134 |
#else
|
|
|
135 |
<td style="background-color : $rankColorMap.get($rank)"> 0
|
|
|
136 |
#if($ldate.getValue().get($request.getKey()).getCommittedDate())
|
|
|
137 |
($ldate.getValue().get($request.getKey()).getCommittedDate().format($dateMonthFormatter)
|
|
|
138 |
)
|
|
|
139 |
#end
|
|
|
140 |
</td>
|
|
|
141 |
#end
|
|
|
142 |
#end
|
|
|
143 |
</tr>
|
|
|
144 |
#end
|
|
|
145 |
|
|
|
146 |
</tbody>
|
|
|
147 |
</table>
|
|
|
148 |
</div>
|
|
|
149 |
</div>
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
</section>
|
|
|
153 |
|
|
|
154 |
<script type="text/javascript">
|
|
|
155 |
|
|
|
156 |
var config = $chartPartnerHealth;
|
|
|
157 |
|
|
|
158 |
var ctx = document.getElementById('chart-area').getContext('2d');
|
|
|
159 |
window.bar = new Chart(ctx, config);
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
$(document).ready(function () {
|
|
|
163 |
var table = $('#partner-health').DataTable({
|
|
|
164 |
"scrollX": true,
|
|
|
165 |
"bPaginate": true,
|
|
|
166 |
"bLengthChange": true,
|
|
|
167 |
"bFilter": true,
|
|
|
168 |
"bInfo": false,
|
|
|
169 |
"bAutoWidth": false,
|
|
|
170 |
"pageLength": 100
|
|
|
171 |
});
|
|
|
172 |
});
|
| 30416 |
tejbeer |
173 |
</script>
|