|
|
@ -123,33 +123,33 @@ function LoadChartData() { |
|
|
|
$('#mobileCustomerCount').text(Response.CustomerData.MobileCustomers); |
|
|
|
|
|
|
|
//Agent wise transaction show
|
|
|
|
let html = ''; |
|
|
|
if (AgentWiseTxn.length > 0) { |
|
|
|
$('#tableAgentWise tbody').empty(); |
|
|
|
$('#tableAgentWisePopup tbody').empty(); |
|
|
|
} |
|
|
|
for (var i = 0; i < 4; i++) { |
|
|
|
html += '<tr>'; |
|
|
|
html += '<td>' + (i + 1).toString() + '</td>'; |
|
|
|
html += '<td>' + AgentWiseTxn[i].BranchName + '</td>'; |
|
|
|
html += '<td>' + AgentWiseTxn[i].CurrentMonth + '</td>'; |
|
|
|
html += '<td>' + AgentWiseTxn[i].PreviousMonth + '</td>'; |
|
|
|
html += '</tr>'; |
|
|
|
} |
|
|
|
|
|
|
|
$('#tableAgentWise tbody').append(html); |
|
|
|
//let html = '';
|
|
|
|
//if (AgentWiseTxn.length > 0) {
|
|
|
|
// $('#tableAgentWise tbody').empty();
|
|
|
|
// $('#tableAgentWisePopup tbody').empty();
|
|
|
|
//}
|
|
|
|
//for (var i = 0; i < 4; i++) {
|
|
|
|
// html += '<tr>';
|
|
|
|
// html += '<td>' + (i + 1).toString() + '</td>';
|
|
|
|
// //html += '<td>' + AgentWiseTxn[i].BranchName + '</td>';
|
|
|
|
// html += '<td>' + AgentWiseTxn[i].CurrentMonth + '</td>';
|
|
|
|
// html += '<td>' + AgentWiseTxn[i].PreviousMonth + '</td>';
|
|
|
|
// html += '</tr>';
|
|
|
|
//}
|
|
|
|
|
|
|
|
//$('#tableAgentWise tbody').append(html);
|
|
|
|
|
|
|
|
//populate popup for all agent list
|
|
|
|
html = ''; |
|
|
|
for (var j = 0; j < AgentWiseTxn.length; j++) { |
|
|
|
html += '<tr>'; |
|
|
|
html += '<td>' + (j + 1).toString() + '</td>'; |
|
|
|
html += '<td>' + AgentWiseTxn[j].BranchName + '</td>'; |
|
|
|
html += '<td>' + AgentWiseTxn[j].CurrentMonth + '</td>'; |
|
|
|
html += '<td>' + AgentWiseTxn[j].PreviousMonth + '</td>'; |
|
|
|
html += '</tr>'; |
|
|
|
} |
|
|
|
$('#tableAgentWisePopup tbody').append(html); |
|
|
|
//html = '';
|
|
|
|
//for (var j = 0; j < AgentWiseTxn.length; j++) {
|
|
|
|
// html += '<tr>';
|
|
|
|
// html += '<td>' + (j + 1).toString() + '</td>';
|
|
|
|
// // html += '<td>' + AgentWiseTxn[j].BranchName + '</td>';
|
|
|
|
// html += '<td>' + AgentWiseTxn[j].CurrentMonth + '</td>';
|
|
|
|
// html += '<td>' + AgentWiseTxn[j].PreviousMonth + '</td>';
|
|
|
|
// html += '</tr>';
|
|
|
|
//}
|
|
|
|
//$('#tableAgentWisePopup tbody').append(html);
|
|
|
|
|
|
|
|
//user wise txn
|
|
|
|
html = ''; |
|
|
|