diff --git a/.DS_Store b/.DS_Store index 7c63999..93e87c1 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/pom.xml b/pom.xml index 4cdee00..36099c4 100644 --- a/pom.xml +++ b/pom.xml @@ -130,7 +130,7 @@ - -
- -
- -
- -
-
- - -
- - - - -
-
-

Agent Assign

-
-
- - -
-
- - -
- - -
- - -
- - -
- - - -
-
- -
-
- - - - - - - - - - - - - - - - - - -
- - - - -
- - -
- - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/templates/modules/callcenter/campaignreport.html b/src/main/resources/templates/modules/callcenter/campaignreport.html index b4b3eeb..b36ffd5 100644 --- a/src/main/resources/templates/modules/callcenter/campaignreport.html +++ b/src/main/resources/templates/modules/callcenter/campaignreport.html @@ -20,10 +20,6 @@ } - - - - /* #questionDatatable { table-layout: fixed !important; width: 100% !important; @@ -178,6 +174,18 @@ + + + + @@ -365,15 +373,12 @@ ], scrollY: '30vh', scrollX: true, // Enable horizontal scrolling - fixedColumns: { - left: 1, - right: 1 - }, + buttons: buttons, fixedHeader: false, - autoWidth: false, - responsive: true, - searching: true, + autoWidth: true, + responsive: false, + searching: true, select: false, processing: false, }); @@ -393,10 +398,7 @@ ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', - fixedColumns: { - left: 1, - right: 1 - }, + scrollX: true, buttons: [ { extend: 'pageLength', @@ -429,8 +431,8 @@ } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching:true, select: false, processing: false @@ -517,6 +519,7 @@ // Fetch and Populate Table Data Function const fetchTableData = async (startDate = "", endDate = "") => { + $('#pageLoader').show(); try { const params = new URLSearchParams(); if (startDate) params.append("startDate", startDate); @@ -558,6 +561,8 @@ } catch (error) { console.error("Error fetching table data:", error); + }finally { + $('#pageLoader').hide(); // Hide loader in both success or error } }; @@ -575,10 +580,26 @@ window.location.href = `/gcc/api/campaignreport/download-excel?categoryId=${categoryId}&campaignId=${campaignId}`; }); - + let today = new Date(); + + // Get the first day of the current month (this should give 2024-11-01 for November) + let firstDayOfMonth = new Date(today.getFullYear(), today.getMonth(), 1); + + // Manually format the date as yyyy-mm-dd without relying on toISOString + let formattedFirstDay = firstDayOfMonth.getFullYear() + '-' + + (firstDayOfMonth.getMonth() + 1).toString().padStart(2, '0') + '-' + + firstDayOfMonth.getDate().toString().padStart(2, '0'); + + let formattedToday = today.getFullYear() + '-' + + (today.getMonth() + 1).toString().padStart(2, '0') + '-' + + today.getDate().toString().padStart(2, '0'); + + // Set the date input values + $('#startDate').val(formattedFirstDay); + $('#endDate').val(formattedToday); // Example: Fetch Data initially without filters - fetchTableData(); + fetchTableData(formattedFirstDay,formattedToday); // Function to Download Campaign Excel @@ -634,7 +655,7 @@ // Initial Load //fetchData(); // Load overall data initially - fetchTableData(); + //fetchTableData(); }); @@ -685,6 +706,9 @@ keyboard: false }); $('#agentperformance').modal('show'); + + // Set default active tab + $('#performance-tab').tab('show'); $.ajax({ url: '/gcc/api/campaignreport/getReportCampaignid?campaign_id='+CampaignId, @@ -697,10 +721,7 @@ // Populate form fields with response data $('#campaign_id').val(campaign.campaign_id); $('#category_id').val(campaign.category_id); - /* $('#start_date').val(campaign.start_date); - $('#end_date').val(campaign.end_date); - $('#description_modal').val(campaign.description); - $('#category').val(campaign.category_name); */ + $('#start_date').text(campaign.start_date || 'N/A'); $('#end_date').text(campaign.end_date || 'N/A'); @@ -713,8 +734,6 @@ Created Date: ${campaign.created_date}` ); - - /* Category: ${campaign.category_name} | */ // Open modal $('#agentperformance').modal('show'); @@ -931,7 +950,7 @@ scrollY: '30vh', scrollX: true, // Enable horizontal scrolling buttons: buttons, - fixedHeader: false, + fixedHeader: true, autoWidth: false, responsive: false, searching: true, diff --git a/src/main/resources/templates/modules/callcenterqaqc/.DS_Store b/src/main/resources/templates/modules/callcenterqaqc/.DS_Store index 2708302..2dd4572 100644 Binary files a/src/main/resources/templates/modules/callcenterqaqc/.DS_Store and b/src/main/resources/templates/modules/callcenterqaqc/.DS_Store differ diff --git a/src/main/resources/templates/modules/callcenterqaqc/agentqaqccalls.html b/src/main/resources/templates/modules/callcenterqaqc/agentqaqccalls.html index fe0c2ce..9c147fe 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/agentqaqccalls.html +++ b/src/main/resources/templates/modules/callcenterqaqc/agentqaqccalls.html @@ -315,7 +315,7 @@ - + @@ -352,6 +352,17 @@ + + + @@ -411,6 +422,7 @@ // Toggle functionality for Primary and Secondary buttons $('#primaryButton').click(function () { + //location.reload(); $('#primaryTable').show(); $('#secondaryTable').hide(); @@ -420,13 +432,115 @@ }); $('#secondaryButton').click(function () { + //location.reload(); $('#primaryTable').hide(); $('#secondaryTable').show(); $(this).addClass('btn-success').removeClass('btn-secondary'); $('#primaryButton').addClass('btn-secondary').removeClass('btn-success'); - $('#SecondaryDatatable').DataTable().columns.adjust().draw(); + //$('#SecondaryDatatable').DataTable().columns.adjust().draw(); + + let userId = document.getElementById('userIdSpan').textContent; + + + // Destroy previous instance if exists + if ($.fn.DataTable.isDataTable('#SecondaryDatatable')) { + $('#SecondaryDatatable').DataTable().clear().destroy(); + } + $('#pageLoader').show(); + // AJAX call to get data + $.ajax({ + url: '/gcc/api/callcenterqaqc/agent/qaqccalls/getqcsubmittedcalls', // Replace with your controller URL + type: 'GET', + data: { userId: userId }, + success: function (response) { + $('#pageLoader').hide(); + // Initialize DataTable with new data + $('#SecondaryDatatable').DataTable({ + data: response, // This should be an array of objects + columns: [ + { data: null, render: function (data, type, row, meta) { return meta.row + 1; }, className: "text-center" }, + { data: 'complaint_number', className: "text-center" }, + { data: 'complaint_date', className: "text-center" }, + { data: 'complaint_person_name', className: "text-center" }, + { data: 'complaint_mobilenumber', className: "text-center" }, + { data: 'complaint_type', className: "text-center" }, + { + data: 'complaint_number', + className: "text-center", + render: function (data, type, row) { + return ``; + } + }, + { + data: 'call_status', + className: "text-center" + + }, + { + data: 'remarks', + className: "text-center" + + } + ], + dom: 'Bftip', + columnDefs: [ + { targets: 'no-sort', orderable: false } + ], + lengthMenu: [ + [50, 100, 200, 500, -1], + ['50 rows', '100 rows', '200 rows', 'Show all'] + ], + scrollY: '50vh', + scrollX:true, + buttons: [ + { + extend: 'pageLength', + className: 'btn btn-warning' + }, + { + title: 'Data export', + extend: 'copyHtml5', + text: 'Copy', + className: 'btn btn-secondary', + id: 'copyBtn' + }, + { + extend: 'excelHtml5', + text: 'Excel', + className: 'btn btn-secondary', + id: 'excelBtn' + }, + { + extend: 'csvHtml5', + text: 'CSV', + className: 'btn btn-secondary', + id: 'csvBtn' + }, + { + extend: 'pdfHtml5', + text: 'PDF', + className: 'btn btn-secondary', + id: 'pdfBtn' + } + ], + fixedHeader: true, + autoWidth: false, + responsive: false, + searching: true, + select: false, + processing: false + }); + }, + error: function () { + $('#pageLoader').hide(); + Swal.fire("Error", "Failed to get Finished complaints.", "error"); + } + }); + + + }); var table = $('#QaqcDatatable').DataTable({ @@ -439,10 +553,7 @@ ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', - fixedColumns: { - left: 1, - right: 1 - }, + scrollX:true, buttons: [ { extend: 'pageLength', @@ -475,8 +586,8 @@ } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching: true, select: false, processing: false @@ -492,10 +603,7 @@ ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', - fixedColumns: { - left: 1, - right: 1 - }, + scrollX:true, buttons: [ { extend: 'pageLength', @@ -528,8 +636,8 @@ } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching: true, select: false, processing: false @@ -594,6 +702,8 @@ function submitComplaint(button) { + + // Access the userId from the hidden span var userId = document.getElementById('userIdSpan').textContent; @@ -641,7 +751,7 @@ return; } - + $('#pageLoader').show(); //console.log("outside ajax"); // AJAX Request $.ajax({ @@ -656,6 +766,7 @@ userId:userId }, success: function (response) { + $('#pageLoader').hide(); if (response === "Success") { //console.log("Success"); @@ -718,6 +829,7 @@ } }, error: function (xhr, status, error) { + $('#pageLoader').hide(); $('.submitid').prop('disabled', false).text('Submit'); Swal.fire("Error", `An error occurred: ${xhr.responseText || error}`, "error"); } @@ -1008,6 +1120,18 @@ return detailsHtml; } + + + \ No newline at end of file diff --git a/src/main/resources/templates/modules/callcenterqaqc/agentqaqcinprogresscalls.html b/src/main/resources/templates/modules/callcenterqaqc/agentqaqcinprogresscalls.html index 74bdc4a..cfe4761 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/agentqaqcinprogresscalls.html +++ b/src/main/resources/templates/modules/callcenterqaqc/agentqaqcinprogresscalls.html @@ -327,7 +327,7 @@ - + @@ -364,6 +364,17 @@ + + + @@ -433,7 +444,106 @@ $(this).addClass('btn-success').removeClass('btn-secondary'); $('#primaryButton').addClass('btn-secondary').removeClass('btn-success'); - $('#SecondaryDatatable').DataTable().columns.adjust().draw(); + //$('#SecondaryDatatable').DataTable().columns.adjust().draw(); + + + let userId = document.getElementById('userIdSpan').textContent; + + + // Destroy previous instance if exists + if ($.fn.DataTable.isDataTable('#SecondaryDatatable')) { + $('#SecondaryDatatable').DataTable().clear().destroy(); + } + $('#pageLoader').show(); + // AJAX call to get data + $.ajax({ + url: '/gcc/api/callcenterqaqc/agent/inprogresscalls/getinprogresssubmittedcalls', // Replace with your controller URL + type: 'GET', + data: { userId: userId }, + success: function (response) { + $('#pageLoader').hide(); + // Initialize DataTable with new data + $('#SecondaryDatatable').DataTable({ + data: response, // This should be an array of objects + columns: [ + { data: null, render: function (data, type, row, meta) { return meta.row + 1; }, className: "text-center" }, + { data: 'complaint_number', className: "text-center" }, + { data: 'complaint_date', className: "text-center" }, + { data: 'complaint_person_name', className: "text-center" }, + { data: 'complaint_mobilenumber', className: "text-center" }, + { data: 'complaint_type', className: "text-center" }, + { + data: 'complaint_number', + className: "text-center", + render: function (data, type, row) { + return ``; + } + }, + { + data: 'call_status', + className: "text-center" + + }, + { + data: 'remarks', + className: "text-center" + + } + ], + dom: 'Bftip', + columnDefs: [ + { targets: 'no-sort', orderable: false } + ], + lengthMenu: [ + [50, 100, 200, 500, -1], + ['50 rows', '100 rows', '200 rows', 'Show all'] + ], + scrollY: '50vh', + scrollX:true, + buttons: [ + { + extend: 'pageLength', + className: 'btn btn-warning' + }, + { + title: 'Data export', + extend: 'copyHtml5', + text: 'Copy', + className: 'btn btn-secondary', + id: 'copyBtn' + }, + { + extend: 'excelHtml5', + text: 'Excel', + className: 'btn btn-secondary', + id: 'excelBtn' + }, + { + extend: 'csvHtml5', + text: 'CSV', + className: 'btn btn-secondary', + id: 'csvBtn' + }, + { + extend: 'pdfHtml5', + text: 'PDF', + className: 'btn btn-secondary', + id: 'pdfBtn' + } + ], + fixedHeader: true, + autoWidth: false, + responsive: false, + searching: true, + select: false, + processing: false + }); + }, + error: function () { + $('#pageLoader').hide(); + Swal.fire("Error", "Failed to get Finished complaints.", "error"); + } + }); }); @@ -447,10 +557,7 @@ ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', - fixedColumns: { - left: 1, - right: 1 - }, + scrollX:true, buttons: [ { extend: 'pageLength', @@ -483,8 +590,8 @@ } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching: true, select: false, processing: true @@ -500,10 +607,7 @@ ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', - fixedColumns: { - left: 1, - right: 1 - }, + scrollX:true, buttons: [ { extend: 'pageLength', @@ -536,8 +640,8 @@ } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching: true, select: false, processing: false @@ -644,6 +748,7 @@ return; } + $('#pageLoader').show(); // AJAX Request $.ajax({ url: '/gcc/api/callcenterqaqc/agent/inprogresscalls/update', @@ -657,6 +762,7 @@ userId:userId }, success: function (response) { + $('#pageLoader').hide(); if (response === "Success") { //console.log("inside ajax success"); Swal.fire({ @@ -697,6 +803,7 @@ } }, error: function (xhr, status, error) { + $('#pageLoader').hide(); $('.submitid').prop('disabled', false).text('Submit'); Swal.fire("Error", `An error occurred: ${xhr.responseText || error}`, "error"); } @@ -898,6 +1005,18 @@ return detailsHtml; + + \ No newline at end of file diff --git a/src/main/resources/templates/modules/callcenterqaqc/agentqaqcpublicfollowupcalls.html b/src/main/resources/templates/modules/callcenterqaqc/agentqaqcpublicfollowupcalls.html index 36c3e72..b8090ab 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/agentqaqcpublicfollowupcalls.html +++ b/src/main/resources/templates/modules/callcenterqaqc/agentqaqcpublicfollowupcalls.html @@ -331,7 +331,7 @@ - + @@ -366,6 +366,17 @@ + + + @@ -440,8 +451,106 @@ $(document).ready(function() { $('#secondaryTable').show(); $(this).addClass('btn-success').removeClass('btn-secondary'); - $('#primaryButton').addClass('btn-secondary').removeClass('btn-success'); - $('#SecondaryDatatable').DataTable().columns.adjust().draw(); + $('#primaryButton').addClass('btn-secondary').removeClass('btn-success'); + //$('#SecondaryDatatable').DataTable().columns.adjust().draw(); + + let userId = document.getElementById('userIdSpan').textContent; + + + // Destroy previous instance if exists + if ($.fn.DataTable.isDataTable('#SecondaryDatatable')) { + $('#SecondaryDatatable').DataTable().clear().destroy(); + } + $('#pageLoader').show(); + // AJAX call to get data + $.ajax({ + url: '/gcc/api/callcenterqaqc/agent/publicfollowupcalls/getpubsubmittedcalls', + type: 'GET', + data: { userId: userId }, + success: function (response) { + $('#pageLoader').hide(); + + $('#SecondaryDatatable').DataTable({ + data: response, + columns: [ + { data: null, render: function (data, type, row, meta) { return meta.row + 1; }, className: "text-center" }, + { data: 'complaint_number', className: "text-center" }, + { data: 'complaint_date', className: "text-center" }, + { data: 'complaint_person_name', className: "text-center" }, + { data: 'complaint_mobilenumber', className: "text-center" }, + { data: 'complaint_type', className: "text-center" }, + { + data: 'complaint_number', + className: "text-center", + render: function (data, type, row) { + return ``; + } + }, + { + data: 'call_status', + className: "text-center" + + }, + { + data: 'remarks', + className: "text-center" + + } + ], + dom: 'Bftip', + columnDefs: [ + { targets: 'no-sort', orderable: false } + ], + lengthMenu: [ + [50, 100, 200, 500, -1], + ['50 rows', '100 rows', '200 rows', 'Show all'] + ], + scrollY: '50vh', + scrollX:true, + buttons: [ + { + extend: 'pageLength', + className: 'btn btn-warning' + }, + { + title: 'Data export', + extend: 'copyHtml5', + text: 'Copy', + className: 'btn btn-secondary', + id: 'copyBtn' + }, + { + extend: 'excelHtml5', + text: 'Excel', + className: 'btn btn-secondary', + id: 'excelBtn' + }, + { + extend: 'csvHtml5', + text: 'CSV', + className: 'btn btn-secondary', + id: 'csvBtn' + }, + { + extend: 'pdfHtml5', + text: 'PDF', + className: 'btn btn-secondary', + id: 'pdfBtn' + } + ], + fixedHeader: true, + autoWidth: false, + responsive: false, + searching: true, + select: false, + processing: false + }); + }, + error: function () { + $('#pageLoader').hide(); + Swal.fire("Error", "Failed to get Finished complaints.", "error"); + } + }); }); @@ -456,10 +565,7 @@ $(document).ready(function() { ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', - fixedColumns: { - left: 1, - right: 1 - }, + scrollX:true, buttons: [ { extend: 'pageLength', @@ -492,8 +598,8 @@ $(document).ready(function() { } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching: true, // Enable default search functionality select: false, processing: false @@ -510,10 +616,7 @@ $(document).ready(function() { ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', - fixedColumns: { - left: 1, - right: 1 - }, + scrollX:true, buttons: [ { extend: 'pageLength', @@ -546,8 +649,8 @@ $(document).ready(function() { } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching: true, select: false, processing: false @@ -650,6 +753,8 @@ function submitComplaint(button) { $('.submitid').prop('disabled', false).text('Submit'); return; } + + $('#pageLoader').show(); // AJAX Request $.ajax({ @@ -664,6 +769,7 @@ function submitComplaint(button) { userId:userId }, success: function (response) { + $('#pageLoader').hide(); if (response === "Success") { //Validate cellnumber @@ -719,6 +825,7 @@ function submitComplaint(button) { } }, error: function (xhr, status, error) { + $('#pageLoader').hide(); $('.submitid').prop('disabled', false).text('Submit'); Swal.fire("Error", `An error occurred: ${xhr.responseText || error}`, "error"); } @@ -963,6 +1070,18 @@ function sendWhatsAppMessageReopened(name,complaintNumber,cellnumber,complaintTy + + diff --git a/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html b/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html index 07d36fb..137c342 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html +++ b/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html @@ -128,6 +128,15 @@ background-color: white; border-radius: 4px; } + + + /* Media query for mobile devices */ + @media (max-width: 576px) { + #pac-input { + top: 55px; + z-index: 5; + } + } #search-container { position: absolute; @@ -210,19 +219,19 @@ /* Initially hidden */ } -.row { + .row { display: flex; flex-wrap: wrap; margin-bottom: 15px; - gap: 15px; - } + + } - .col-md-6 { + .col-md-6 { flex: 0 0 48%; max-width: 48%; display: flex; flex-direction: column; - } + } .col-md-6 label { font-weight: 600; @@ -311,6 +320,10 @@ to { } } +.input-error { + border: 1px solid red !important; +} + /*for snack bar*/ @@ -357,39 +370,47 @@ to {
-
+
- +
+

's Complaints Registration

+
+
- +
- +
1. Complaining Person's Details:
- -
+ -
+ required>
-
+
+ placeholder="Enter your name" required > +
+ + +
+
-
-
@@ -222,6 +222,17 @@
+ + +
@@ -339,10 +350,8 @@ [ '200 rows','500 rows', 'Show all'] ], scrollY: '80vh', - fixedColumns: { - left: 1, - right: 1 - }, + + scrollX: true, buttons: [ { extend: 'pageLength', @@ -375,8 +384,8 @@ } ], fixedHeader: true, - autoWidth: true, - responsive: true, + autoWidth: false, + responsive: false, searching: true, select: false, processing: false @@ -488,6 +497,7 @@ return; // Stop further execution } + $('#pageLoader').show(); // Send the selected agents and their calling types to the API $.ajax({ type: "POST", @@ -495,6 +505,7 @@ data: JSON.stringify(selectedAgents), contentType: "application/json", success: function (response) { + $('#pageLoader').hide(); // Success: Show success message with Swal Swal.fire({ icon: 'success', @@ -506,6 +517,7 @@ }); }, error: function (error) { + $('#pageLoader').hide(); // Error: Show error message with Swal Swal.fire({ icon: 'error', @@ -542,6 +554,7 @@ // Prepare the data to send const data = { productivity_count: productivityCount }; + $('#pageLoader').show(); // Send the data to the API using AJAX $.ajax({ type: "POST", @@ -549,6 +562,7 @@ data: JSON.stringify(data), contentType: "application/json", success: function (response) { + $('#pageLoader').hide(); // Show a success message using Swal Swal.fire({ icon: 'success', @@ -561,6 +575,7 @@ }); }, error: function (error) { + $('#pageLoader').hide(); // Show an error message using Swal Swal.fire({ icon: 'error', diff --git a/src/main/resources/templates/modules/callcenterqaqc/qaqcgrievancedashboard.html b/src/main/resources/templates/modules/callcenterqaqc/qaqcgrievancedashboard.html index fe1d792..36b4969 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/qaqcgrievancedashboard.html +++ b/src/main/resources/templates/modules/callcenterqaqc/qaqcgrievancedashboard.html @@ -37,61 +37,61 @@ } #closedCard { - transition: transform 0.2s ease; /* Smooth scaling transition */ - cursor: pointer; /* Default cursor change */ + transition: transform 0.2s ease; + cursor: pointer; } #closedCard:hover { - transform: scale(1.05); /* Slightly scale up on hover */ - cursor: pointer; /* Change cursor to hand symbol */ + transform: scale(1.05); + cursor: pointer; } -#inProgressCard { - transition: transform 0.2s ease; /* Smooth scaling transition */ - cursor: pointer; /* Default cursor change */ +/* #inProgressCard { + transition: transform 0.2s ease; + cursor: pointer; } #inProgressCard:hover { - transform: scale(1.05); /* Slightly scale up on hover */ - cursor: pointer; /* Change cursor to hand symbol */ -} + transform: scale(1.05); + cursor: pointer; +} */ #redressedCard { - transition: transform 0.2s ease; /* Smooth scaling transition */ - cursor: pointer; /* Default cursor change */ + transition: transform 0.2s ease; + cursor: pointer; } #redressedCard:hover { - transform: scale(1.05); /* Slightly scale up on hover */ - cursor: pointer; /* Change cursor to hand symbol */ + transform: scale(1.05); + cursor: pointer; } - #reopenedCard { - transition: transform 0.2s ease; /* Smooth scaling transition */ - cursor: pointer; /* Default cursor change */ +/* #reopenedCard { + transition: transform 0.2s ease; + cursor: pointer; } #reopenedCard:hover { - transform: scale(1.05); /* Slightly scale up on hover */ - cursor: pointer; /* Change cursor to hand symbol */ -} + transform: scale(1.05); + cursor: pointer; +} */ -#withdrawCard{ - transition: transform 0.2s ease; /* Smooth scaling transition */ - cursor: pointer; /* Default cursor change */ +/* #withdrawCard{ + transition: transform 0.2s ease; + cursor: pointer; } #withdrawCard:hover { - transform: scale(1.05); /* Slightly scale up on hover */ - cursor: pointer; /* Change cursor to hand symbol */ -} + transform: scale(1.05); + cursor: pointer; +} */ #closedCard { - transition: transform 0.2s ease; /* Smooth scaling transition */ - cursor: pointer; /* Default cursor change */ + transition: transform 0.2s ease; + cursor: pointer; } #closedCard:hover { - transform: scale(1.05); /* Slightly scale up on hover */ - cursor: pointer; /* Change cursor to hand symbol */ + transform: scale(1.05); + cursor: pointer; } @@ -784,23 +784,23 @@ function loadDashboardData(startDate, endDate) { document.getElementById('closedCard').addEventListener('click', function () { handleCardClick(sessionStorage.getItem('closedcount'), 'Closed', '/gcc/callcenterqaqc/admin/qaqcassigntaskagents'); }); - + /* document.getElementById('reopenedCard').addEventListener('click', function () { handleCardClick(sessionStorage.getItem('reopenedcount'), 'Reopened', '/gcc/callcenterqaqc/admin/qaqcassigntaskagents'); }); - + document.getElementById('inProgressCard').addEventListener('click', function () { handleCardClick(sessionStorage.getItem('inProgressCount'), 'In Progress', '/gcc/callcenterqaqc/admin/qaqcassigntaskagents'); }); - + */ document.getElementById('redressedCard').addEventListener('click', function () { handleCardClick(sessionStorage.getItem('redressedCount'), 'Redressed', '/gcc/callcenterqaqc/admin/qaqcassigntaskagents'); }); - + /* document.getElementById('withdrawCard').addEventListener('click', function () { handleCardClick(sessionStorage.getItem('withdrawCount'), 'withdraw', '/gcc/callcenterqaqc/admin/qaqcassigntaskagents'); }); - + */ // Update UI with fetched data document.getElementById('totalComplaints').textContent = data["Total Complaints"] || "0"; document.getElementById('inProgressCount').textContent = data["In Progress"] || "0"; diff --git a/src/main/resources/templates/modules/callcenterqaqc/socialmediacomplaints.html b/src/main/resources/templates/modules/callcenterqaqc/socialmediacomplaints.html index ac87387..86cc3d6 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/socialmediacomplaints.html +++ b/src/main/resources/templates/modules/callcenterqaqc/socialmediacomplaints.html @@ -124,6 +124,17 @@
+
+ + +
+
+
+
+ + +
+
- + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ +
+ `; + $("#cduserinfoHTML").html(userinfo); + $("#modal_register_id").html(userData.register_id); + + console.log(userData.adhaarurl); + + // Display the files (Adhaar, User Photo, Vehicle Document) + if (userData.adhaarurl!=null) { + displayFile('modal_adhaar_container', userData.adhaarurl); + } + if (userData.user_photourl) { + displayFile('modal_user_photo_container', userData.user_photourl); + } + if (userData.rcbookurl) { + displayFile('modal_vehicle_doc_container', userData.rcbookurl); + } + if (userData.leasedocurl) { + displayFile('modal_leasevehicle_doc_container', userData.leasedocurl); + } + + // Hide rejection section initially + /* document.getElementById('rejectionSection').style.display = 'none'; + document.getElementById('rejectionReason').value = ''; // Clear previous input */ + // Show the modal + $('#detailModal').modal({ + backdrop: 'static', + keyboard: false + }); + } else { + // Handle case where no data is returned + alert('No data found for this registration ID.'); + } + }, + error: function(err) { + console.error(err); + alert('Failed to fetch data'); + } + }); + } + + //display file function + + function displayFile(containerId, filePath) { + const container = document.getElementById(containerId); + + // Ensure the container exists before proceeding + if (!container) { + console.error(`Element with ID '${containerId}' not found.`); + return; + } + + // Ensure filePath is valid before attempting to display + if (!filePath) { + container.innerHTML = '

No document available

'; + return; + } + + const fileExtension = filePath.split('.').pop().toLowerCase(); + console.log('Full Path:', filePath); + + if (fileExtension === 'pdf') { + container.innerHTML = ``; + } else { + container.innerHTML = `Document`; + } + } - \ No newline at end of file + diff --git a/src/main/resources/templates/modules/cdwaste/pending.html b/src/main/resources/templates/modules/cdwaste/pending.html index 74c7203..40c4d20 100644 --- a/src/main/resources/templates/modules/cdwaste/pending.html +++ b/src/main/resources/templates/modules/cdwaste/pending.html @@ -1,6 +1,57 @@ + +
@@ -41,22 +92,20 @@
- +
Pending List
- -
- - - - - + + + + + @@ -64,10 +113,10 @@ - - - - + + + + - - - - - - - - - +
S.NO NameMobile NoAddressActionsS.NO NameMobile NoAddressActions
1 NameMobile NoAddress1 NameMobile NoAddress
S.NONameMobile NoAddressActions
@@ -99,7 +140,7 @@