Rev 27640 | Rev 27661 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<section><!--<style>.table-striped > tbody > tr:nth-child(odd) > td{background: white;background-color: white;}.table-striped > tbody > tr:nth-child(even) > td{background: white;background-color:white;}.table-striped > tbody > tr:hover > td,.table-striped > tbody > tr:hover {background-color: #e98c8f;color:white;}.btn:hover{color: grey;text-decoration: none;}.btn-primary:hover{color: grey;text-decoration: none;}.sale-details{cursor:pointer;}thead input {width: 50%;}</style>--><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Details</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_document_alt"></i>Auth User Detail</li></ol></div></div><div class="row"><div class="col-lg-12"><table id="authretailerstats" class="table table-striped table-advance table-hover" style="width:100%"><thead><tr><th>Stores</th><th>Category</th><th>Manager</th><th>lmtd</th><th>mtd</th><th>sale diff</th><th>Wallet Amount</th><th>In Stock Investment</th><th>Total Investment</th><th>Short Investment</th><th>Unbilled Activated Stock</th><th>Pending Indent</th><th>Today Tertiary</th><th>last 3 days Tertiary</th><th>Ticket</th></tr></thead><tbody>#foreach($name in $fofoIdAndallValues.keySet())<tr><td>$fofoIdAndPartnerMap.get($name).getBusinessName() ($fofoIdAndPartnerMap.get($name).getAddress().getCity())</td><td>$fofoIdAndallValues.get($name).getPartnerType()</td><td>$fofoIdAndallValues.get($name).getAuthUser()</td><td class="currency lmtdSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandLMtdSale">$fofoIdAndallValues.get($name).getLmtd()</td><td class="currency mtdSale" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#brandMtdSale">$fofoIdAndallValues.get($name).getMtd()</td><td class="currency">$fofoIdAndallValues.get($name).getSaleDiff()</td><td class="currency">$fofoIdAndallValues.get($name).getWalletAmount()</td><td class="currency instock" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#inStockItem" >$fofoIdAndallValues.get($name).getInvestment().getInStockAmount()</td><td class="currency" id="investment" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#partnerInvestment">$fofoIdAndallValues.get($name).getInvestment().getTotalInvestment()</td><td class="currency">$fofoIdAndallValues.get($name).getInvestment().getShortInvestment()</td><td class="currency" id="activatedStock" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#activateStock">$fofoIdAndallValues.get($name).getInvestment().getActivatedStockAmount()</td><td class="currency" id="indent" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#itemWiseIndent">$fofoIdAndallValues.get($name).getInvestment().getUnbilledAmount()</td><td class="tertiary" data-fofoid="$fofoIdAndPartnerMap.get($name).getPartnerId()" data-toggle="modal" data-target="#itemWiseTertiary">$fofoIdAndallValues.get($name).getTodayTertiary()</td><td>$fofoIdAndallValues.get($name).getLastThreeDaytertiary()</td><td>$fofoIdAndallValues.get($name).getTicket()</td></tr>#end</tbody></table></div></div><div id="itemWiseTertiary" class="modal" role="dialog"><div class="modal-dialog"><div class="modal-content"></div></div></div><div id="itemWiseIndent" class="modal" role="dialog"><div class="modal-dialog"><div class="modal-content"></div></div></div><div id="inStockItem" class="modal" role="dialog"><div class="modal-dialog"><div class="modal-content"></div></div></div><div id="partnerInvestment" class="modal" role="dialog"><div class="modal-dialog"><div class="modal-content"></div></div></div><div id="activateStock" class="modal" role="dialog"><div class="modal-dialog"><div class="modal-content" ></div></div></div><div id="brandMtdSale" class="modal" role="dialog"><div class="modal-dialog"><div class="modal-content"></div></div></div><div id="brandLMtdSale" class="modal" role="dialog"><div class="modal-dialog"><div class="modal-content"></div></div></div></section><script type="text/javascript">$(document).ready(function() {$('#authretailerstats thead tr').clone(true).appendTo( '#authretailerstats thead' );$('#authretailerstats thead tr:eq(1) th').each( function (i) {var title = $(this).text();$(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );$( 'input', this ).on( 'keyup change', function () {if ( table.column(i).search() !== this.value ) {table.column(i).search( this.value ).draw();}} );} )var table = $('#authretailerstats').DataTable( {orderCellsTop: true,fixedHeader: true} );});</script><script type="text/javascript">$('#authretailerstats').on('click', '.tertiary', function(){var fofoId = $(this).data('fofoid');doGetAjaxRequestHandler(context + "/getItemWiseTertiary?fofoId="+ fofoId, function(response) {$('#itemWiseTertiary .modal-content').html(response);});});$('#authretailerstats').on('click', '#indent', function(){var fofoId = $(this).data('fofoid');doGetAjaxRequestHandler(context + "/getItemWiseIndent?fofoId="+ fofoId, function(response) {$('#itemWiseIndent .modal-content').html(response);});});$('#authretailerstats').on('click', '#investment', function(){var fofoId = $(this).data('fofoid');doGetAjaxRequestHandler(context + "/getPartnerInvestment?fofoId="+ fofoId, function(response) {$('#partnerInvestment .modal-content').html(response);});});$('#authretailerstats').on('click', '#activatedStock', function(){var fofoId = $(this).data('fofoid');doGetAjaxRequestHandler(context + "/getPatnerActivateStock?fofoId="+ fofoId, function(response) {$('#activateStock .modal-content').html(response);});});$('#authretailerstats').on('click', '.mtdSale', function(){var fofoId = $(this).data('fofoid');doGetAjaxRequestHandler(context + "/getPatnerBrandWiseMTDSale?fofoId="+ fofoId, function(response) {$('#brandMtdSale .modal-content').html(response);});});$('#authretailerstats').on('click', '.lmtdSale', function(){var fofoId = $(this).data('fofoid');doGetAjaxRequestHandler(context + "/getPatnerBrandWiseLMTDSale?fofoId="+ fofoId, function(response) {$('#brandLMtdSale .modal-content').html(response);});});$('#authretailerstats').on('click', '.instock', function(){var fofoId = $(this).data('fofoid');doGetAjaxRequestHandler(context + "/getPatnerInStock?fofoId="+ fofoId, function(response) {console.log(response)$('#inStockItem .modal-content').html(response);});});</script>