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