Subversion Repositories SmartDukaan

Rev

Rev 31917 | Rev 33974 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31917 Rev 32130
Line 11... Line 11...
11
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
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>
12
                <li><i class="icon_document_alt"></i>PARTNER HEALTH</li>
13
            </ol>
13
            </ol>
14
        </div>
14
        </div>
15
    </div>
15
    </div>
-
 
16
 
-
 
17
 
-
 
18
    <div class="row">
-
 
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)
-
 
24
 
-
 
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>
16
    
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>
17
    
65
    </div>
-
 
66
 
18
    <div class="row">
67
    <div class="row">
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) 
-
 
24
				
-
 
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">
68
        <div class="col-lg-12">
69
			<button class="btn btn-primary" onclick="ExportToExcel(this, 'xlsx', 'Partner Health', )"
69
            <button class="btn btn-primary" onclick="ExportToExcel(this, 'Partner Health')"
70
					data-tableid="partner-health">Export
70
                    data-tableid="partner-health">Export
71
				table to excel
71
                table to excel
72
			</button>
72
            </button>
73
		</div>
73
        </div>
74
	</div>
74
    </div>
75
	<div class="row">
75
    <div class="row">
76
		<div class="col-lg-12">
76
        <div class="col-lg-12">
77
			<table class="table table-border table-condensed table-bordered"
77
            <table class="table table-border table-condensed table-bordered"
78
				   id="partner-health">
78
                   id="partner-health">
79
				<thead>
79
                <thead>
80
				<tr>
80
                <tr>
81
                    <th>Partner Name</th>
81
                    <th>Partner Name</th>
82
                    <th>Code</th>
82
                    <th>Code</th>
83
                    <th>Wallet Amount</th>
83
                    <th>Wallet Amount</th>
84
                    <th>Short Investment</th>
84
                    <th>Short Investment</th>
85
							<th>Auth User</th>
85
                    <th>Auth User</th>
86
							<th>Remark</th>
86
                    <th>Remark</th>
87
						    #foreach( $request in $partnerCollectionPlanMap.keySet() )
87
                    #foreach( $request in $partnerCollectionPlanMap.keySet() )
88
							<th>$request</th>
88
                        <th>$request</th>
89
							#end
89
                    #end
90
							
90
 
91
						</tr>
91
                </tr>
92
					</thead>
92
                </thead>
93
					<tbody>
93
                <tbody>
94
				      #foreach($request in  $customRetailers.entrySet() )
94
                    #foreach($request in  $customRetailers.entrySet() )
95
					 <tr>
95
                    <tr>
96
				       <td>$request.getValue().getBusinessName()</td>
96
                        <td>$request.getValue().getBusinessName()</td>
97
				       <td>$request.getValue().getCode()</td>
97
                        <td>$request.getValue().getCode()</td>
98
				       #if($partnerDailyInvestmentMap.get($request.getKey()).getWalletAmount())
98
                        #if($partnerDailyInvestmentMap.get($request.getKey()).getWalletAmount())
99
				       <td class="currency">$partnerDailyInvestmentMap.get($request.getKey()).getWalletAmount()</td>
99
                            <td class="currency">$partnerDailyInvestmentMap.get($request.getKey()).getWalletAmount()</td>
100
				       #else
100
                        #else
101
				       <td> - </td>
101
                            <td> -</td>
102
				       #end
102
                        #end
103
				       #if($partnerDailyInvestmentMap.get($request.getKey()).getShortInvestment())
103
                        #if($partnerDailyInvestmentMap.get($request.getKey()).getShortInvestment())
104
	
104
 
105
					   <td class="currency">$partnerDailyInvestmentMap.get($request.getKey()).getShortInvestment()</td>
105
                            <td class="currency">$partnerDailyInvestmentMap.get($request.getKey()).getShortInvestment()</td>
106
					   #else
106
                        #else
107
					     <td> - </td>
107
                            <td> -</td>
108
					   #end
108
                        #end
109
					 
109
 
110
					   
110
 
111
					   #if($todayPcpmMap.get($request.getKey()).getRemark())  
111
                        #if($todayPcpmMap.get($request.getKey()).getRemark())
112
					   
112
 
113
					   <td>$authUserMap.get($todayPcpmMap.get($request.getKey()).getRemarkAuthId()).getFullName() </td>
113
                            <td>$authUserMap.get($todayPcpmMap.get($request.getKey()).getRemarkAuthId()).getFullName() </td>
114
					   #else
114
                        #else
115
					   <td>-</td>
115
                            <td>-</td>
116
					   #end
116
                        #end
117
					   
117
 
118
					   #if($todayPcpmMap.get($request.getKey()).getRemark())
118
                        #if($todayPcpmMap.get($request.getKey()).getRemark())
119
					   <td title = "$todayPcpmMap.get($request.getKey()).getMessage()">$todayPcpmMap.get($request.getKey()).getRemark()  ($todayPcpmMap.get($request.getKey()).getRemarkTimestamp().format($dateMonthFormatter))</td>
119
                            <td title="$todayPcpmMap.get($request.getKey()).getMessage()">$todayPcpmMap.get($request.getKey()).getRemark()
-
 
120
                                ($todayPcpmMap.get($request.getKey()).getRemarkTimestamp().format($dateMonthFormatter))
-
 
121
                            </td>
120
					   #else
122
                        #else
121
					   <td>-</td>
123
                            <td>-</td>
122
					   #end
124
                        #end
123
					     #foreach($ldate in $partnerCollectionPlanMap.entrySet())
125
                        #foreach($ldate in $partnerCollectionPlanMap.entrySet())
124
					       #set($rank = $ldate.getValue().get($request.getKey()).getRank())
126
                            #set($rank = $ldate.getValue().get($request.getKey()).getRank())
125
					     #if($ldate.getValue().get($request.getKey()).getTargetPlan())
127
                            #if($ldate.getValue().get($request.getKey()).getTargetPlan())
126
							<td style= "background-color : $rankColorMap.get($rank)">$ldate.getValue().get($request.getKey()).getTargetPlan() 
128
                                <td style="background-color : $rankColorMap.get($rank)">$ldate.getValue().get($request.getKey()).getTargetPlan()
127
							
129
 
128
							 #if($ldate.getValue().get($request.getKey()).getCommittedDate())
130
                                    #if($ldate.getValue().get($request.getKey()).getCommittedDate())
129
							 ($ldate.getValue().get($request.getKey()).getCommittedDate().format($dateMonthFormatter))
131
                                        ($ldate.getValue().get($request.getKey()).getCommittedDate().format($dateMonthFormatter)
-
 
132
                                        )
130
							   #end</td>
133
                                    #end</td>
131
							#else
134
                            #else
132
							  <td style= "background-color : $rankColorMap.get($rank)"> 0
135
                                <td style="background-color : $rankColorMap.get($rank)"> 0
133
							  	 #if($ldate.getValue().get($request.getKey()).getCommittedDate())
136
                                    #if($ldate.getValue().get($request.getKey()).getCommittedDate())
134
							 ($ldate.getValue().get($request.getKey()).getCommittedDate().format($dateMonthFormatter))
137
                                        ($ldate.getValue().get($request.getKey()).getCommittedDate().format($dateMonthFormatter)
-
 
138
                                        )
135
							   #end
139
                                    #end
136
							   </td>
140
                                </td>
137
						  #end
141
                            #end
138
						#end
142
                        #end
139
				 	 </tr>
143
                    </tr>
140
					 #end
144
                    #end
141
					
145
 
142
						
-
 
143
					</tbody>
146
                </tbody>
144
				</table>
147
            </table>
145
			</div>
148
        </div>
146
		</div>
149
    </div>
147
 
150
 
148
				
-
 
149
 
151
 
150
  </section>
152
</section>
151
  
153
 
152
  <script type="text/javascript">
154
<script type="text/javascript">
153
    
155
 
154
        var config = $chartPartnerHealth;
156
    var config = $chartPartnerHealth;
155
      
157
 
156
        var ctx = document.getElementById('chart-area').getContext('2d');
158
    var ctx = document.getElementById('chart-area').getContext('2d');
157
        window.bar = new Chart(ctx, config);
159
    window.bar = new Chart(ctx, config);
158
        
160
 
159
      
161
 
160
	$(document).ready(function() {
162
    $(document).ready(function () {
161
		var table = $('#partner-health').DataTable({
163
        var table = $('#partner-health').DataTable({
162
			"scrollX": true,
164
            "scrollX": true,
163
			"bPaginate" : true,
165
            "bPaginate": true,
164
			"bLengthChange" : true,
166
            "bLengthChange": true,
165
			"bFilter" : true,
167
            "bFilter": true,
166
			"bInfo" : false,
168
            "bInfo": false,
167
			"bAutoWidth" : false,
169
            "bAutoWidth": false,
168
			"pageLength": 100
170
            "pageLength": 100
169
			
-
 
170
 
-
 
171
		});
171
        });
172
		
-
 
173
		
-
 
174
		});
172
    });
175
</script>
173
</script>
176
174