Subversion Repositories SmartDukaan

Rev

Rev 27550 | Rev 27586 | 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>
26418 tejbeer 56
	    				<th>lmtd</th>
57
	    				<th>mtd</th>
27548 tejbeer 58
	    				<th>sale diff</th>
27545 tejbeer 59
	    			    <th>Wallet Amount</th>
26418 tejbeer 60
	    				<th>In Stock Investment</th>
61
	    				<th>Total Investment</th>
27548 tejbeer 62
	    				<th>Short Investment</th>
27545 tejbeer 63
	    				<th>Indent Value</th>
64
	    				<th>Today Tertiary</th>
65
	    				<th>last 3 days Tertiary</th>
26418 tejbeer 66
	    				<th>Ticket</th>
67
	    				</tr>
26477 amit.gupta 68
				 </thead>
69
	    			<tbody>
26418 tejbeer 70
	    			    #foreach($name in $fofoIdAndallValues.keySet())
71
	    				<tr>
27548 tejbeer 72
	    	 		     <td>$fofoIdAndPartnerMap.get($name).getBusinessName()  ($fofoIdAndPartnerMap.get($name).getAddress().getCity())</td>
73
	    	 		     <td>$fofoIdAndallValues.get($name).getPartnerType()</td>
27545 tejbeer 74
	    	 		     <td>$fofoIdAndallValues.get($name).getAuthUser()</td>
26418 tejbeer 75
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getLmtd()</td>
76
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getMtd()</td>
27550 tejbeer 77
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getSaleDiff()</td>
27545 tejbeer 78
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getWalletAmount()</td>
26478 amit.gupta 79
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getInvestment().getInStockAmount()</td>
80
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getInvestment().getTotalInvestment()</td>
27548 tejbeer 81
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getInvestment().getShortInvestment()</td>
27545 tejbeer 82
	    	 		     <td class="currency">$fofoIdAndallValues.get($name).getInvestment().getUnbilledAmount()</td>
27579 tejbeer 83
		                 <td class="tertiary"  data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#itemWiseTertiary">$fofoIdAndallValues.get($name).getTodayTertiary()</td>
27549 tejbeer 84
		                 <td>$fofoIdAndallValues.get($name).getLastThreeDaytertiary()</td>  
26418 tejbeer 85
		                 <td>$fofoIdAndallValues.get($name).getTicket()</td>
86
	    				</tr>
27579 tejbeer 87
	    				#end
26418 tejbeer 88
	    		    </tbody>
89
	    		</table>
90
						</div>
91
 
92
 
93
			</div>
27579 tejbeer 94
 
95
 
96
 <div id="itemWiseTertiary" class="modal" role="dialog">
97
	  <div class="modal-dialog">
98
	    <div class="modal-content">
99
 
100
    </div>
101
   </div>
102
 </div>
26418 tejbeer 103
 
104
 
26475 amit.gupta 105
</section>
106
<script type="text/javascript">
27549 tejbeer 107
 
108
 
26475 amit.gupta 109
$(document).ready(function() {
27549 tejbeer 110
 
111
    $('#authretailerstats thead tr').clone(true).appendTo( '#authretailerstats thead' );
112
    $('#authretailerstats thead tr:eq(1) th').each( function (i) {
113
        var title = $(this).text();
114
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
115
 
116
        $( 'input', this ).on( 'keyup change', function () {
117
            if ( table.column(i).search() !== this.value ) {
118
                table
119
                    .column(i)
120
                    .search( this.value )
121
                    .draw();
122
            }
123
        } );
124
    } )
125
  var table = $('#authretailerstats').DataTable( {
126
        orderCellsTop: true,
127
        fixedHeader: true
128
    } );
26476 amit.gupta 129
});
27579 tejbeer 130
</script>
131
 
132
 
133
<script type="text/javascript">
134
 
135
$('#authretailerstats').on('click', '.tertiary', function(){
136
 	var fofoId = $(this).data('fofoid');
137
 
138
 
139
				doGetAjaxRequestHandler(context + "/getItemWiseTertiary?fofoId="
140
						+ fofoId, function(response) {
141
 
142
					$('#itemWiseTertiary .modal-content').html(response);
143
 
144
				});
145
});
146
 
26475 amit.gupta 147
</script>