Subversion Repositories SmartDukaan

Rev

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

Rev 24148 Rev 24171
Line 1... Line -...
1
<style>
-
 
2
 
-
 
3
</style>
-
 
4
<script>
1
<script>
5
$(document).ready(function() {
2
$(document).ready(function() {
6
  $('#targetSlabForAdmin').DataTable(
3
  $('#targetSlabForAdmin').DataTable(
7
  {
4
  {
8
    "bPaginate": true,
5
    "bPaginate": true,
9
    "bLengthChange": false,
6
    "bLengthChange": false,
10
    "bFilter": false,
7
    "bFilter": false,
11
    "bInfo": false,
8
    "bInfo": false,
12
    "order": [[ 5, "desc" ]],
9
    "order": [[ 5, "desc" ]],
13
    "bAutoWidth": false }
10
    "bAutoWidth": true }
14
  );
11
  );  
15
   
-
 
16
} );
12
});
17
</script>
-
 
18
<section class="wrapper">            
13
</script>            
19
	<div class="row">
-
 
20
		<div class="col-lg-12">
-
 
21
			<h3 class="page-header"><i class="icon_document_alt"></i>SALE</h3>
-
 
22
			<ol class="breadcrumb">
-
 
23
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
-
 
24
				<li><i class="icon_document_alt"></i>PARTNER TARGET</li>						  	
-
 
25
			</ol>
-
 
26
		</div>
-
 
27
	</div>
-
 
28
	
-
 
29
	<div id="partner-target-history-search">
-
 
30
    	<div class="row">					
-
 
31
        	<div class="col-lg-3">
-
 
32
				 <select class="form-control input-sm" id="partnerTargetDatetime" name="partnerTargetDatetime" placeholder="Month" style="width:70%" onchange="getSlabTarget()">
-
 
33
								#foreach($monthYear in $monthYears.keySet())
-
 
34
								#if($startDate ==$monthYear)
-
 
35
								<option value="$monthYear" selected>$monthYears.get($monthYear)</option>
-
 
36
								#else
-
 
37
								<option value="$monthYear">$monthYears.get($monthYear)</option>
-
 
38
								#end
-
 
39
								#end
-
 
40
                			</select>
-
 
41
			</div>	
-
 
42
       	</div>
-
 
43
   	</div><br><br>
-
 
44
   	<div class="col-lg-3">
-
 
45
   	 <div id="slab-table">
14
   	 <div id="slab-table">
46
		<div class="row">
15
		<div class="row">
47
	    	<div class="col-lg-1">
16
	    	<div class="col-lg-5">
48
	    		<table class="table table-bordered">
17
	    		<table class="table table-bordered">
49
	    		<thead>
18
	    		<thead>
50
	    				<tr>
19
	    				<tr>
51
	    					<th>Slab</th>
20
	    					<th>Slab</th>
52
	    					<th>Target%</th>
21
	    					<th>Target%</th>
Line 96... Line 65...
96
		</div>
65
		</div>
97
	</div>
66
	</div>
98
</div>
67
</div>
99
</div>
68
</div>
100
</div>
69
</div>
101
 
-
 
102
	<div class="col-lg-8">
-
 
103
  	<div id="target-history-table">
70
  	<div id="target-history-table">
104
		<div class="row">
71
		<div class="row">
105
	    	<div class="col-lg-12">
72
	    	<div class="col-lg-7">
106
	    	#if($roleType == "true")
73
	    	#if($roleType == "true")
107
	    		<table class="table table-bordered" id="targetSlabForAdmin">
74
	    		<table class="table table-bordered" id="targetSlabForAdmin">
108
	    		#else
75
	    		#else
109
	    		<table class="table table-bordered">
76
	    		<table class="table table-bordered">
110
	    		#end
77
	    		#end
Line 112... Line 79...
112
	    				<tr>
79
	    				<tr>
113
	    					#if($roleType == "true")
80
	    					#if($roleType == "true")
114
	    					<th>Partner</th>
81
	    					<th>Partner</th>
115
	    					#end
82
	    					#end
116
	    					<th>Target Value</th>
83
	    					<th>Target Value</th>
117
	    					#if($today == "true")
-
 
118
	    					<th>MTD Achievement</th>
84
	    					<th>Total Sale</th>
119
	    					#else
-
 
120
	    					<th>Monthly Achievement</th>
-
 
121
	    					#end
-
 
122
	    					<th>Achievement%</th>
85
	    					<th>Total Sale%</th>
123
	    					<th>Daily Target</th>
86
	    					<th>Daily Target</th>
124
	    					#if($today == "true")
87
	    					#if($today == "true")
125
	    					<th>Today's Achievement</th>
88
	    					<th>Today's Sale</th>
126
	    					#end 
89
	    					#end 
127
	    					<th>Eligibility</th>
90
	    					<th>Eligibility</th>
128
	    					<th>Remaining</th>
91
	    					<th>Remaining</th>
129
	    				</tr>
92
	    				</tr>
130
	    				</thead>
93
	    				</thead>
131
	    				<tbody>
94
	    				<tbody>
132
	    				#if(!$saleValues.isEmpty())
-
 
133
			    			#foreach( $fofoId in $fofoIds)
95
			    			#foreach( $fofoId in $fofoIds)
134
			    				<tr>
96
			    				<tr>
135
			    					#if($roleType == "true")
97
			    					#if($roleType == "true")
136
			    					<td>$fofoIdsAndCustomRetailer.get($fofoId).getBusinessName()</td>
98
			    					<td>$fofoIdsAndCustomRetailer.get($fofoId).getBusinessName()</td>
137
			    					#end
99
			    					#end
Line 143... Line 105...
143
			    					#if($saleValues.get($fofoId))
105
			    					#if($saleValues.get($fofoId))
144
			    					<td>$saleValues.get($fofoId)</td>
106
			    					<td>$saleValues.get($fofoId)</td>
145
			    					#else
107
			    					#else
146
			    					<td>0</td>
108
			    					<td>0</td>
147
			    					#end
109
			    					#end
148
			    					#if($monthlyTargetAchievementPercentage.get($fofoId))
110
			    					#if($targetAchievementPercentageMap.get($fofoId))
149
			    						<td>$monthlyTargetAchievementPercentage.get($fofoId)%</td>
111
			    						<td>$targetAchievementPercentageMap.get($fofoId)%</td>
150
			    					#else
112
			    					#else
151
			    					<td>0%</td>
113
			    					<td>0%</td>
152
			    					#end
114
			    					#end
153
			    					#if($dailyAverageSale.get($fofoId))
115
			    					#if($dailyAverageSale.get($fofoId) && $dailyAverageSale.get($fofoId)>0)
154
			    					<td>$dailyAverageSale.get($fofoId)</td>
116
			    					<td>$dailyAverageSale.get($fofoId)</td>
155
			    					#else
117
			    					#else
156
			    					<td>0</td>
118
			    					<td>0</td>
157
			    					#end
119
			    					#end
158
			    					#if($today == "true")
120
			    					#if($today == "true")
Line 165... Line 127...
165
			    					#if($fofoIdsAndSlabNames.get($fofoId))
127
			    					#if($fofoIdsAndSlabNames.get($fofoId))
166
			    					<td>$fofoIdsAndSlabNames.get($fofoId)</td>
128
			    					<td>$fofoIdsAndSlabNames.get($fofoId)</td>
167
			    					#else
129
			    					#else
168
			    					<td>-</td>
130
			    					<td>-</td>
169
			    					#end
131
			    					#end
170
			    					#if($remainingMonthlyTargets.get($fofoId))
132
			    					#if($remainingTarget.get($fofoId) && $remainingTarget.get($fofoId)>0)
171
			    					<td>$remainingMonthlyTargets.get($fofoId)</td>
133
			    					<td>$remainingTarget.get($fofoId)</td>
172
			    					#else
134
			    					#else
173
			    					<td>0</td>
135
			    					<td>0</td>
174
			    					#end
136
			    					#end
175
			    					
137
			    					
176
			    				</tr>
138
			    				</tr>
177
			    			#end
139
			    			#end
178
		    			#else
-
 
179
		    				<tr>
-
 
180
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
181
		    				</tr>
-
 
182
		    			#end
-
 
183
	    			</tbody>
140
	    			</tbody>
184
	    		</table>
141
	    		</table>
185
	    	</div>
142
	    	</div>
186
	    </div>
143
	    </div>
187
    </div>
144
    </div>
188
    </div>
-
 
189
</section>
-
 
190
145
    </div>
-
 
146
191
147