From 3f8518fd021bebd25cb9fcf6c9f9ee71d59e23ad Mon Sep 17 00:00:00 2001 From: Balaji <104271023+tbalaji0001@users.noreply.github.com> Date: Wed, 3 Sep 2025 10:33:51 +0530 Subject: [PATCH] New Modules & Update scripts --- .DS_Store | Bin 10244 -> 10244 bytes pom.xml | 2 +- src/.DS_Store | Bin 6148 -> 6148 bytes src/main/.DS_Store | Bin 6148 -> 8196 bytes src/main/java/.DS_Store | Bin 6148 -> 6148 bytes src/main/java/in/.DS_Store | Bin 6148 -> 6148 bytes src/main/java/in/gov/.DS_Store | Bin 6148 -> 6148 bytes .../java/in/gov/chennaicorporation/.DS_Store | Bin 6148 -> 6148 bytes .../chennaicorporation/gccoffice/.DS_Store | Bin 10244 -> 18436 bytes .../service/CampaignReportService.java | 7 +- .../gccoffice/callcenterqaqc/.DS_Store | Bin 6148 -> 6148 bytes .../controller/ComplaintController.java | 3 +- .../controller/FollowUpController.java | 8 + .../controller/InprogresscallController.java | 6 + .../controller/PublicFollowUpController.java | 7 + .../controller/QaqcAPIController.java | 4 +- .../QaqcAdminSettingsController.java | 160 - .../controller/QaqcCallsController.java | 13 +- .../QaqcPgrComplaintsMainController.java | 12 + .../controller/SocialMediaApiController.java | 11 +- .../controller/SocialMediaController.java | 346 -- .../service/ComplaintService.java | 30 +- .../service/FollowUpService.java | 54 +- .../service/QaqcAgentAssignService.java | 517 ++- .../callcenterqaqc/service/QaqcService.java | 19 +- .../service/StatusCountService.java | 4 +- .../gccoffice/configuration/AppConfig.java | 3 +- .../configuration/DataSourceConfig.java | 21 +- .../m_petition/service/Petition.java | 5 +- .../gccoffice/nulm/.DS_Store | Bin 6148 -> 6148 bytes .../gccoffice/pensioner/.DS_Store | Bin 0 -> 6148 bytes .../gccoffice/pensioner/controller/.DS_Store | Bin 0 -> 8196 bytes .../controller/DashboardApiController.java | 390 +- .../service/DepartmentReceivedService.java | 43 +- .../service/ReturnFromAuditService.java | 2 +- .../gccoffice/school/.DS_Store | Bin 6148 -> 8196 bytes .../gccoffice/school/Controller/.DS_Store | Bin 0 -> 6148 bytes .../Controller/BuildingAssetController.java | 1077 +++-- .../Controller/DropdownsController.java | 919 ++-- .../school/Controller/MainController.java | 99 +- .../Controller/SchoolPropertyController.java | 474 ++- .../Controller/SchoolReportController.java | 20 + .../Controller/StudentInfoController.java | 127 + .../gccoffice/school/Service/.DS_Store | Bin 0 -> 6148 bytes .../school/Service/BuildingAssetService.java | 260 +- .../school/Service/DropdownsService.java | 6 + .../school/Service/SchoolPropertyService.java | 784 +++- .../school/Service/SchoolReportService.java | 302 +- .../school/Service/StudentInfoService.java | 857 ++++ .../vendor/controller/ApiController.java | 480 +++ .../controller/CreateEventAPIController.java | 126 + .../vendor/controller/MainController.java | 147 + .../vendor/service/DateTimeUtil.java | 37 + .../vendor/service/StreetVendorService.java | 484 +++ .../vendor/service/createventService.java | 167 + .../vtrack/service/VehicleService.java | 46 + .../works/service/ERPEstimateService.java | 9 +- .../works/service/EstimateService.java | 8 +- src/main/resources/.DS_Store | Bin 8196 -> 8196 bytes src/main/resources/application.properties | 6 + src/main/resources/static/.DS_Store | Bin 8196 -> 8196 bytes .../static/assets/node_modules/.DS_Store | Bin 14340 -> 14340 bytes .../assets/node_modules/ammap3/.DS_Store | Bin 0 -> 6148 bytes .../node_modules/ammap3/ammap/.DS_Store | Bin 0 -> 6148 bytes src/main/resources/templates/.DS_Store | Bin 6148 -> 8196 bytes .../resources/templates/fragments/.DS_Store | Bin 6148 -> 6148 bytes .../templates/fragments/modules/.DS_Store | Bin 6148 -> 8196 bytes .../com_petition/petition_view_script.html | 1 + .../resources/templates/modules/.DS_Store | Bin 10244 -> 16388 bytes .../modules/callcenter/assignagents.html | 692 --- .../modules/callcenter/campaignreport.html | 73 +- .../modules/callcenterqaqc/.DS_Store | Bin 8196 -> 8196 bytes .../callcenterqaqc/agentqaqccalls.html | 156 +- .../agentqaqcfollowupcalls.html | 148 +- .../agentqaqcinprogresscalls.html | 149 +- .../agentqaqcpublicfollowupcalls.html | 151 +- .../modules/callcenterqaqc/pgrcomplaints.html | 499 ++- .../callcenterqaqc/qaqcadminsettings.html | 29 +- .../qaqcgrievancedashboard.html | 70 +- .../callcenterqaqc/socialmediacomplaints.html | 59 +- .../templates/modules/cdwaste/approval.html | 298 +- .../templates/modules/cdwaste/pending.html | 171 +- .../templates/modules/cdwaste/rejected.html | 307 +- .../modules/com_petition/petition_list.html | 4 + .../petition_view_modal_page.html | 8 + .../modules/m_petition/petition_list.html | 6 +- .../templates/modules/pensioner/.DS_Store | Bin 0 -> 8196 bytes .../modules/pensioner/department/.DS_Store | Bin 0 -> 10244 bytes .../pensioner/department/dashboard.html | 1954 +++++---- .../pensioner/department/newentry/.DS_Store | Bin 0 -> 6148 bytes .../pensioner/department/newentry/gis.html | 80 +- .../received/provisionalretirement.html | 2 +- .../modules/pensioner/pensioner/.DS_Store | Bin 0 -> 8196 bytes .../pensioner/pensioner/dashboard.html | 1932 ++++----- .../templates/modules/school/.DS_Store | Bin 0 -> 8196 bytes .../modules/school/addelectricalasset.html | 42 +- .../modules/school/addfurnitureasset.html | 30 +- .../modules/school/assetmanagement.html | 168 +- .../templates/modules/school/building.html | 68 +- .../templates/modules/school/dashboard.html | 1 + .../modules/school/drinkingwater.html | 224 +- .../templates/modules/school/kitchen.html | 717 +++- .../modules/school/otherdetails.html | 101 +- .../templates/modules/school/playground.html | 33 +- .../school/reportfolder/aeoallschools.html | 646 +++ .../modules/school/reportfolder/aeolist.html | 316 ++ .../templates/modules/school/reports.html | 37 +- .../templates/modules/school/room.html | 295 +- .../templates/modules/school/roomassets.html | 17 +- .../modules/school/staffdetails.html | 822 +++- .../modules/school/studentdetails.html | 132 +- .../modules/school/studentregister.html | 3704 +++++++++++++++++ .../templates/modules/school/toilets.html | 287 +- .../templates/modules/vendors/EventList.html | 649 +++ .../modules/vendors/RequestList.html | 806 ++++ .../templates/modules/vendors/addevent.html | 219 + .../vendors/streetVendorRequestForm.html | 1196 ++++++ .../vendors/streetVendorRequestList.html | 1520 +++++++ .../templates/modules/works/request-list.html | 813 ---- 119 files changed, 20936 insertions(+), 6798 deletions(-) delete mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/callcenterqaqc/controller/QaqcAdminSettingsController.java delete mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/callcenterqaqc/controller/SocialMediaController.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/pensioner/.DS_Store create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/pensioner/controller/.DS_Store create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/school/Controller/.DS_Store create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/school/Controller/StudentInfoController.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/school/Service/.DS_Store create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/school/Service/StudentInfoService.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/vendor/controller/ApiController.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/vendor/controller/CreateEventAPIController.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/vendor/controller/MainController.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/vendor/service/DateTimeUtil.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/vendor/service/StreetVendorService.java create mode 100644 src/main/java/in/gov/chennaicorporation/gccoffice/vendor/service/createventService.java create mode 100644 src/main/resources/static/assets/node_modules/ammap3/.DS_Store create mode 100644 src/main/resources/static/assets/node_modules/ammap3/ammap/.DS_Store delete mode 100644 src/main/resources/templates/modules/callcenter/assignagents.html create mode 100644 src/main/resources/templates/modules/pensioner/.DS_Store create mode 100644 src/main/resources/templates/modules/pensioner/department/.DS_Store create mode 100644 src/main/resources/templates/modules/pensioner/department/newentry/.DS_Store create mode 100644 src/main/resources/templates/modules/pensioner/pensioner/.DS_Store create mode 100644 src/main/resources/templates/modules/school/.DS_Store create mode 100644 src/main/resources/templates/modules/school/reportfolder/aeoallschools.html create mode 100644 src/main/resources/templates/modules/school/reportfolder/aeolist.html create mode 100644 src/main/resources/templates/modules/school/studentregister.html create mode 100644 src/main/resources/templates/modules/vendors/EventList.html create mode 100644 src/main/resources/templates/modules/vendors/RequestList.html create mode 100644 src/main/resources/templates/modules/vendors/addevent.html create mode 100644 src/main/resources/templates/modules/vendors/streetVendorRequestForm.html create mode 100644 src/main/resources/templates/modules/vendors/streetVendorRequestList.html delete mode 100644 src/main/resources/templates/modules/works/request-list.html diff --git a/.DS_Store b/.DS_Store index 7c639990e63e80180607f2fc881eee8dd44e9ec2..93e87c19af83f0f337ed6f3b9b469d039855ed45 100644 GIT binary patch delta 328 zcmZn(XbG6$ÄU^hRb#%3OYY*xl?llKc13W!x#>l)}N=o-}OC{&x97)*8)7Gdm| z%r7P{(#gQUz|2t0P{fd&Qk - -
- -
- -
- -
-
- - -
- - - - -
-
-

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 270830269330bd82b944d6229e9063a2947b43cc..2dd4572b4bc67d491fd6b00cc810609a2eac043a 100644 GIT binary patch delta 18 ZcmZp1XmQw3FT~o-z`!tXbBj;|F915Q1 - + @@ -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 @@