Subversion Repositories SmartDukaan

Rev

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