Subversion Repositories SmartDukaan

Rev

Rev 27661 | Rev 27894 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26418 tejbeer 1
<section>
2
 
3
 
26475 amit.gupta 4
<!--<style>
26418 tejbeer 5
	.table-striped > tbody > tr:nth-child(odd) > td{
6
  		background: white;
7
  		background-color: white;
8
	}
9
	.table-striped > tbody > tr:nth-child(even) > td{
10
  		background: white;
11
  		background-color:white;
12
	}
13
	.table-striped > tbody > tr:hover > td,
14
	.table-striped > tbody > tr:hover {
15
		background-color: #e98c8f;
16
	  	color:white;
17
	}
18
	.btn:hover{
19
  		color: grey;
20
  		text-decoration: none;
21
	}
22
	.btn-primary:hover{
23
  		color: grey;
24
  		text-decoration: none;
25
	}
26
	.sale-details{
27
		cursor:pointer;
28
	}
27549 tejbeer 29
 
30
	thead input {
31
        width: 50%;
32
    }
26475 amit.gupta 33
</style>-->
26418 tejbeer 34
 
35
<section class="wrapper">
36
	<div class="row">
37
		<div class="col-lg-12">
38
			<h3 class="page-header"><i class="icon_document_alt"></i>Details</h3>
39
			<ol class="breadcrumb">
40
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
41
				<li><i class="icon_document_alt"></i>Auth User Detail</li>					  	
42
			</ol>
43
		</div>
44
	</div>
45
 
46
 
47
<div class="row">
48
 
27549 tejbeer 49
				<div class="col-lg-12">
50
				 <table id="authretailerstats" class="table table-striped table-advance table-hover" style="width:100%">
26477 amit.gupta 51
				 <thead>
26418 tejbeer 52
	    				<tr>
27545 tejbeer 53
	    				<th>Stores</th>
27548 tejbeer 54
	    				<th>Category</th>
55
	    				<th>Manager</th>
27661 tejbeer 56
	    			    <th>LMS</th>
57
	    				<th>LMTD</th>
58
	    				<th>MTD</th>
27893 tejbeer 59
	    				<th>Sec.LMS</th>
60
	    				<th>Sec.LMTD</th>
61
	    				<th>Sec.MTD</th>
27661 tejbeer 62
	    				<th>Sale Diff</th>
63
	    			    <th>Unbilled Activated Stock</th>
27545 tejbeer 64
	    			    <th>Wallet Amount</th>
26418 tejbeer 65
	    				<th>In Stock Investment</th>
66
	    				<th>Total Investment</th>
27548 tejbeer 67
	    				<th>Short Investment</th>
27661 tejbeer 68
	    			    <th>Pending Indent</th>
27545 tejbeer 69
	    				<th>Today Tertiary</th>
70
	    				<th>last 3 days Tertiary</th>
26418 tejbeer 71
	    				<th>Ticket</th>
72
	    				</tr>
26477 amit.gupta 73
				 </thead>
74
	    			<tbody>
26418 tejbeer 75
	    			    #foreach($name in $fofoIdAndallValues.keySet())
76
	    				<tr>
27548 tejbeer 77
	    	 		     <td>$fofoIdAndPartnerMap.get($name).getBusinessName()  ($fofoIdAndPartnerMap.get($name).getAddress().getCity())</td>
78
	    	 		     <td>$fofoIdAndallValues.get($name).getPartnerType()</td>
27545 tejbeer 79
	    	 		     <td>$fofoIdAndallValues.get($name).getAuthUser()</td>
27660 tejbeer 80
	    	 		     <td class="currency lmsSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandLMSSale">$fofoIdAndallValues.get($name).getLms()</td>    
27637 tejbeer 81
	    	 		     <td class="currency  lmtdSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandLMtdSale">$fofoIdAndallValues.get($name).getLmtd()</td>
27636 tejbeer 82
	    	 		     <td class="currency mtdSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandMtdSale">$fofoIdAndallValues.get($name).getMtd()</td>
27893 tejbeer 83
 
84
	    	 		     <td class="currency lmsSecSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandSecSale">$fofoIdAndallValues.get($name).getSecondarylms()</td>    
85
	    	 		     <td class="currency  lmtdSecSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandSecSale">$fofoIdAndallValues.get($name).getSecondarylmtd()</td>
86
	    	 		     <td class="currency mtdSecSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandSecSale">$fofoIdAndallValues.get($name).getSecondarymtd()</td>
87
 
27550 tejbeer 88
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getSaleDiff()</td>
27661 tejbeer 89
	    	 		     <td class="currency" id="activatedStock" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#activateStock">$fofoIdAndallValues.get($name).getInvestment().getActivatedStockAmount()</td> 
27545 tejbeer 90
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getWalletAmount()</td>
27640 tejbeer 91
	    	 		     <td class="currency instock" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#inStockItem" >$fofoIdAndallValues.get($name).getInvestment().getInStockAmount()</td>
27636 tejbeer 92
	    	 		     <td class="currency"  id="investment" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#partnerInvestment">$fofoIdAndallValues.get($name).getInvestment().getTotalInvestment()</td>
27661 tejbeer 93
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getInvestment().getShortInvestment()</td>   
27586 tejbeer 94
	    	 		     <td class="currency" id="indent"  data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#itemWiseIndent">$fofoIdAndallValues.get($name).getInvestment().getUnbilledAmount()</td>
27579 tejbeer 95
		                 <td class="tertiary"  data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#itemWiseTertiary">$fofoIdAndallValues.get($name).getTodayTertiary()</td>
27549 tejbeer 96
		                 <td>$fofoIdAndallValues.get($name).getLastThreeDaytertiary()</td>  
27660 tejbeer 97
		                 <td class="openticket" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#openTicketModel">$fofoIdAndallValues.get($name).getTicket()</td>
26418 tejbeer 98
	    				</tr>
27579 tejbeer 99
	    				#end
26418 tejbeer 100
	    		    </tbody>
101
	    		</table>
102
						</div>
103
 
104
 
105
			</div>
27579 tejbeer 106
 
107
 
108
 <div id="itemWiseTertiary" class="modal" role="dialog">
109
	  <div class="modal-dialog">
110
	    <div class="modal-content">
111
 
112
    </div>
113
   </div>
114
 </div>
27586 tejbeer 115
 
116
 
117
  <div id="itemWiseIndent" class="modal" role="dialog">
118
	  <div class="modal-dialog">
119
	    <div class="modal-content">
120
 
121
    </div>
122
   </div>
123
 </div>
27636 tejbeer 124
 
27640 tejbeer 125
<div id="inStockItem" class="modal" role="dialog">
126
	  <div class="modal-dialog">
127
	    <div class="modal-content">
128
 
129
    </div>
130
   </div>
131
 </div>
26418 tejbeer 132
 
27636 tejbeer 133
 
134
  <div id="partnerInvestment" class="modal" role="dialog">
135
	  <div class="modal-dialog">
136
	    <div class="modal-content">
137
 
138
    </div>
139
   </div>
140
 </div>		
141
 
142
 
143
 
144
  <div id="activateStock" class="modal" role="dialog">
145
	  <div class="modal-dialog">
27660 tejbeer 146
	    <div class="modal-content">
27636 tejbeer 147
 
148
    </div>
149
   </div>
150
 </div>	
151
 
152
   <div id="brandMtdSale" class="modal" role="dialog">
153
	  <div class="modal-dialog">
154
	    <div class="modal-content">
155
 
156
    </div>
157
   </div>
158
 </div>	
27637 tejbeer 159
 
160
  <div id="brandLMtdSale" class="modal" role="dialog">
161
	  <div class="modal-dialog">
162
	    <div class="modal-content">
163
 
164
    </div>
165
   </div>
166
 </div>	
27660 tejbeer 167
 
168
   <div id="brandLMSSale" class="modal" role="dialog">
169
	  <div class="modal-dialog">
170
	    <div class="modal-content">
171
 
172
    </div>
173
   </div>
174
 </div>	
175
 
176
   <div id="openTicketModel" class="modal" role="dialog">
177
	  <div class="modal-dialog">
178
	    <div class="modal-content">
179
 
180
    </div>
181
   </div>
182
 </div>	
183
 
27893 tejbeer 184
    <div id="brandSecSale" class="modal" role="dialog">
185
	  <div class="modal-dialog">
186
	    <div class="modal-content">
187
 
188
    </div>
189
   </div>
190
 </div>	
26475 amit.gupta 191
</section>
192
<script type="text/javascript">
27549 tejbeer 193
 
194
 
26475 amit.gupta 195
$(document).ready(function() {
27549 tejbeer 196
 
197
    $('#authretailerstats thead tr').clone(true).appendTo( '#authretailerstats thead' );
198
    $('#authretailerstats thead tr:eq(1) th').each( function (i) {
199
        var title = $(this).text();
200
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
201
 
202
        $( 'input', this ).on( 'keyup change', function () {
203
            if ( table.column(i).search() !== this.value ) {
204
                table
205
                    .column(i)
206
                    .search( this.value )
207
                    .draw();
208
            }
209
        } );
210
    } )
211
  var table = $('#authretailerstats').DataTable( {
27893 tejbeer 212
   "scrollX": true,
27549 tejbeer 213
        orderCellsTop: true,
214
        fixedHeader: true
215
    } );
26476 amit.gupta 216
});
27579 tejbeer 217
</script>
218
 
219
 
220
<script type="text/javascript">
221
 
222
$('#authretailerstats').on('click', '.tertiary', function(){
223
 	var fofoId = $(this).data('fofoid');
224
 
225
 
226
				doGetAjaxRequestHandler(context + "/getItemWiseTertiary?fofoId="
227
						+ fofoId, function(response) {
228
 
229
					$('#itemWiseTertiary .modal-content').html(response);
230
 
231
				});
232
});
233
 
27586 tejbeer 234
 
235
$('#authretailerstats').on('click', '#indent', function(){
236
 	var fofoId = $(this).data('fofoid');
237
 
238
 
239
				doGetAjaxRequestHandler(context + "/getItemWiseIndent?fofoId="
240
						+ fofoId, function(response) {
241
 
242
					$('#itemWiseIndent .modal-content').html(response);
243
 
244
				});
245
});
246
 
27636 tejbeer 247
 
248
 
249
$('#authretailerstats').on('click', '#investment', function(){
250
 	var fofoId = $(this).data('fofoid');
251
 				doGetAjaxRequestHandler(context + "/getPartnerInvestment?fofoId="
252
						+ fofoId, function(response) {
253
 
254
					$('#partnerInvestment .modal-content').html(response);
255
 
256
				});
257
});
258
 
259
$('#authretailerstats').on('click', '#activatedStock', function(){
260
 	var fofoId = $(this).data('fofoid');
261
 				doGetAjaxRequestHandler(context + "/getPatnerActivateStock?fofoId="
262
						+ fofoId, function(response) {
263
 
264
					$('#activateStock .modal-content').html(response);
265
 
266
				});
267
});
268
 
269
 
270
$('#authretailerstats').on('click', '.mtdSale', function(){
271
 	var fofoId = $(this).data('fofoid');
272
 				doGetAjaxRequestHandler(context + "/getPatnerBrandWiseMTDSale?fofoId="
273
						+ fofoId, function(response) {
274
 
275
					$('#brandMtdSale .modal-content').html(response);
276
 
277
				});
278
});
27637 tejbeer 279
 
280
$('#authretailerstats').on('click', '.lmtdSale', function(){
281
 	var fofoId = $(this).data('fofoid');
282
 				doGetAjaxRequestHandler(context + "/getPatnerBrandWiseLMTDSale?fofoId="
283
						+ fofoId, function(response) {
284
 
285
					$('#brandLMtdSale .modal-content').html(response);
286
 
287
				});
288
});
27640 tejbeer 289
 
290
 
291
$('#authretailerstats').on('click', '.instock', function(){
292
 	var fofoId = $(this).data('fofoid');
293
 				doGetAjaxRequestHandler(context + "/getPatnerInStock?fofoId="
294
						+ fofoId, function(response) {
295
					$('#inStockItem .modal-content').html(response);
296
 
297
				});
298
});
27660 tejbeer 299
 
300
$('#authretailerstats').on('click', '.lmsSale', function(){
301
 	var fofoId = $(this).data('fofoid');
27893 tejbeer 302
 
27660 tejbeer 303
 				doGetAjaxRequestHandler(context + "/getPatnerBrandWiseLMSSale?fofoId="
304
						+ fofoId, function(response) {
305
					$('#brandLMSSale .modal-content').html(response);
306
 
307
				});
308
});
309
 
27893 tejbeer 310
$('#authretailerstats').on('click', '.lmsSecSale', function(){
311
 	var fofoId = $(this).data('fofoid');
312
 		$("#brand-secondary-model .modal-body").empty();
313
 				doGetAjaxRequestHandler(context + "/getPartnerSecondarySale?fofoId="
314
						+ fofoId+"&timeValue=lms" , function(response) {
315
					$('#brandSecSale .modal-content').html(response);
27660 tejbeer 316
 
27893 tejbeer 317
				});
318
});
319
 
320
$('#authretailerstats').on('click', '.mtdSecSale', function(){
321
 	var fofoId = $(this).data('fofoid');
322
 		$("#brand-secondary-model .modal-body").empty();
323
 				doGetAjaxRequestHandler(context + "/getPartnerSecondarySale?fofoId="
324
						+ fofoId+"&timeValue=mtd" , function(response) {
325
					$('#brandSecSale .modal-content').html(response);
326
 
327
				});
328
});
329
 
330
$('#authretailerstats').on('click', '.lmtdSecSale', function(){
331
 	var fofoId = $(this).data('fofoid');
332
 		$("#brand-secondary-model .modal-body").empty();
333
 				doGetAjaxRequestHandler(context + "/getPartnerSecondarySale?fofoId="
334
						+ fofoId+"&timeValue=lmtd" , function(response) {
335
					$('#brandSecSale .modal-content').html(response);
336
 
337
				});
338
});
339
 
27660 tejbeer 340
$('#authretailerstats').on('click', '.openticket', function(){
341
 	var fofoId = $(this).data('fofoid');
342
 				doGetAjaxRequestHandler(context + "/getOpenTicketByFofoId?fofoId="
343
						+ fofoId, function(response) {
344
					$('#openTicketModel .modal-content').html(response);
345
 
346
				});
347
});
26475 amit.gupta 348
</script>