Subversion Repositories SmartDukaan

Rev

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