From b726b9530dcce44b46f1ea0e324c09a1ad3b23e8 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Mon, 21 Oct 2024 09:08:10 +0530 Subject: [PATCH] CHANGE_VIEW_MEMBERS_LIST_PAGE : RV --- app/Views/employee_data_list.php | 68 ++++++++++++++++---------------- app/Views/employee_list.php | 7 ---- app/Views/leads_form.php | 25 ++++++++++-- 3 files changed, 55 insertions(+), 45 deletions(-) diff --git a/app/Views/employee_data_list.php b/app/Views/employee_data_list.php index e3791918..7a6ae90e 100755 --- a/app/Views/employee_data_list.php +++ b/app/Views/employee_data_list.php @@ -34,6 +34,10 @@ position: absolute; } +.right-align-input { + text-align: right; +} + @@ -47,24 +51,23 @@

Employees

- +
- - + - - - - - + - - + - + + + + @@ -86,19 +89,18 @@ - - + - - - - - + - - + - + + + + @@ -132,24 +134,22 @@ - + - - + - - - - - + - - + + + + @@ -174,6 +174,7 @@ if (ticketsTable.length) { ticketsTable.DataTable({ + scrollX: true, dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" + // Filter left, buttons right "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector @@ -181,9 +182,6 @@ extend: 'csv', text: 'CSV', title: 'Member-List', - exportOptions: { - columns: ':not(:last-child)' - }, }], language: { search: "_INPUT_", diff --git a/app/Views/employee_list.php b/app/Views/employee_list.php index 0d1b3dca..d615e7db 100755 --- a/app/Views/employee_list.php +++ b/app/Views/employee_list.php @@ -115,7 +115,6 @@ var client_id = ''; var client_branch_id = ''; - $(document).ready(function() { console.log("document loaded"); //fetchClientPolicies(); @@ -127,7 +126,6 @@ $(window).on("load", function() { fetchClientPolicies(); }); - function fetchClientPolicies() { $('#loader').show(); var apiURL = '' + 'util/clients-with-policies'; @@ -204,7 +202,6 @@ function fetchClientPolicies() { $('#loader').hide(); } - function appendClients(data) { var clientID = ; $.each(data, function(index, item) { @@ -219,7 +216,6 @@ function appendClients(data) { }); } - function appendBranch(data) { $('#branch_id').empty(); @@ -239,7 +235,6 @@ function appendBranch(data) { }); } - function appendPolicies(data) { $('#policies').empty(); @@ -286,7 +281,6 @@ $(document).ready(function() { }); }); - $(document).ready(function() { $('#branch_id').on('change', function() { @@ -321,7 +315,6 @@ function objectToQueryString(obj) { return Object.keys(obj).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&'); } - function fetchEmpolyeeList(event) { event.preventDefault(); // Prevent default action diff --git a/app/Views/leads_form.php b/app/Views/leads_form.php index 15c97dbe..f00ea8b6 100644 --- a/app/Views/leads_form.php +++ b/app/Views/leads_form.php @@ -537,6 +537,7 @@ function getPolicyData(input) { } } +// Salse team user list data function selecSalsePerson(salse_person_ids) { salse_person_ids = JSON.parse(salse_person_ids); @@ -588,7 +589,7 @@ function addHTMLInput() {
- @@ -602,7 +603,7 @@ function addHTMLInput() {
- @@ -715,7 +716,6 @@ function addHTMLInput() { increment++; // Increment after adding the input } - function removeHTMLInput(element) { const container = document.getElementById('dynamic-form-container'); @@ -849,6 +849,24 @@ $('#lead_type').change(function() { }) +function insurerChange(input, unique_id) { + var lead_type = $('#lead_type').val() + + if(lead_type == 2){ + var val = $(input).val(); + $('#proposed_insurer_'+unique_id).val(val).select2(); + } +} + +function tpaChange(input, unique_id) { + var lead_type = $('#lead_type').val() + + if(lead_type == 2){ + var val = $(input).val(); + $('#proposed_tpa_'+unique_id).val(val).select2(); + } +} + //----------------------------------------------------------------------------------------------------------- function getURLParamsForReport() { @@ -866,4 +884,5 @@ function getURLParamsForReport() { console.log('pt_id', pt_id); // Retain the log if necessary } + \ No newline at end of file
SNO Client/Branch BranchName/codeNameEMP CodeRelationshipDate of Birth Policy name Insurer name TPA ID
-