Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev
This commit is contained in:
commit
a26334ad38
@ -297,7 +297,10 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$data['updated_by'] = get_session_userid();
|
$data['updated_by'] = get_session_userid();
|
||||||
$data['client_logo'] = $file_name;
|
|
||||||
|
if(!empty($file_name)){
|
||||||
|
$data['client_logo'] = $file_name;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($data['is_download_btn'])) {
|
if (!isset($data['is_download_btn'])) {
|
||||||
$data['is_download_btn'] = 0;
|
$data['is_download_btn'] = 0;
|
||||||
|
|||||||
@ -499,6 +499,8 @@ class EmployeeRestController extends AdminController
|
|||||||
$client_id = $this->request->getPost('client_id');
|
$client_id = $this->request->getPost('client_id');
|
||||||
// $client_id = $this->request->getJSON('client_id');
|
// $client_id = $this->request->getJSON('client_id');
|
||||||
$policy_id = $this->request->getPost('policy_id');
|
$policy_id = $this->request->getPost('policy_id');
|
||||||
|
|
||||||
|
$employee_id = $this->request->getPost('employee_id');
|
||||||
// $policy_id = $this->request->getJSON('policy_id');
|
// $policy_id = $this->request->getJSON('policy_id');
|
||||||
|
|
||||||
$client_policy = $this->clientPolicyModel->where('id', $policy_id)->where('client_id', $client_id)->first();
|
$client_policy = $this->clientPolicyModel->where('id', $policy_id)->where('client_id', $client_id)->first();
|
||||||
@ -538,7 +540,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$extractData['status']= 'success';
|
$extractData['status']= 'success';
|
||||||
$extractData['policy_id']= $policy_id;
|
$extractData['policy_id']= $policy_id;
|
||||||
$extractData['action']= 'enrollment';
|
$extractData['action']= 'enrollment';
|
||||||
// $extractData['created_by']=set_session_context('Employee');
|
$extractData['created_by']=$employee_id;
|
||||||
|
|
||||||
$file_data =$this->fileModel->insert($extractData);
|
$file_data =$this->fileModel->insert($extractData);
|
||||||
|
|
||||||
@ -696,6 +698,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$emp_id =$employee['id'];
|
$emp_id =$employee['id'];
|
||||||
$id =$emp_id;
|
$id =$emp_id;
|
||||||
$data_after_gpa_or_gmc['id'] = $id;
|
$data_after_gpa_or_gmc['id'] = $id;
|
||||||
|
$data_after_gpa_or_gmc['updated_by'] = $employee_id;
|
||||||
$data_after_gpa_or_gmc['updated_at'] = $formatted_date_time;
|
$data_after_gpa_or_gmc['updated_at'] = $formatted_date_time;
|
||||||
$result = $this->employeeModel->save($data_after_gpa_or_gmc);
|
$result = $this->employeeModel->save($data_after_gpa_or_gmc);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -706,6 +709,7 @@ class EmployeeRestController extends AdminController
|
|||||||
if ($dataToInsert[$a]['emp_code'] != 0) {
|
if ($dataToInsert[$a]['emp_code'] != 0) {
|
||||||
$result =false;
|
$result =false;
|
||||||
if (count($data_after_gpa_or_gmc) != 0) {
|
if (count($data_after_gpa_or_gmc) != 0) {
|
||||||
|
$data_after_gpa_or_gmc['created_by'] = $employee_id;
|
||||||
$result = $this->employeeModel->insert($data_after_gpa_or_gmc);
|
$result = $this->employeeModel->insert($data_after_gpa_or_gmc);
|
||||||
}
|
}
|
||||||
$emp_id =$result;
|
$emp_id =$result;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
.switch {
|
.switch {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 60px;
|
width: 54px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ input:checked + .slider:before {
|
|||||||
<input id="is_download_btn" type="checkbox" name="is_download_btn" <?= (isset($client['is_download_btn']) && $client['is_download_btn'] == 1) ? 'checked' : '' ?>>
|
<input id="is_download_btn" type="checkbox" name="is_download_btn" <?= (isset($client['is_download_btn']) && $client['is_download_btn'] == 1) ? 'checked' : '' ?>>
|
||||||
<span class="slider round" style="height: 27px;"></span>
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
</label>
|
</label>
|
||||||
<label for="is_download_btn">Enable Client Export Option</label>
|
<label for="is_download_btn" style=" position: relative;bottom: 5px;">Enable Client Export Option</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -172,6 +172,11 @@ $(document).ready(function () {
|
|||||||
$('.ac').css('display', 'block');
|
$('.ac').css('display', 'block');
|
||||||
contactCount = 1
|
contactCount = 1
|
||||||
|
|
||||||
|
var addButton = document.getElementById('add');
|
||||||
|
if (addButton.style.display === 'none') {
|
||||||
|
addButton.style.display = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || [];
|
var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || [];
|
||||||
for (var i = 0; i < buttonIds.length; i++) {
|
for (var i = 0; i < buttonIds.length; i++) {
|
||||||
var firstElement = buttonIds[i].split('_')[0];
|
var firstElement = buttonIds[i].split('_')[0];
|
||||||
@ -205,12 +210,7 @@ $(document).ready(function () {
|
|||||||
$('#branch_form')[0].reset();
|
$('#branch_form')[0].reset();
|
||||||
$('.ac').css('display', 'block');
|
$('.ac').css('display', 'block');
|
||||||
$('.parsley-errors-list').remove();
|
$('.parsley-errors-list').remove();
|
||||||
|
|
||||||
$('#branch_form').parsley().reset();
|
$('#branch_form').parsley().reset();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
contactCount = 1
|
contactCount = 1
|
||||||
|
|
||||||
var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || [];
|
var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || [];
|
||||||
@ -282,14 +282,14 @@ $(document).ready(function () {
|
|||||||
var branchTableInsert = ''
|
var branchTableInsert = ''
|
||||||
$.each(res.data, function(index, item) {
|
$.each(res.data, function(index, item) {
|
||||||
branchTableInsert += `
|
branchTableInsert += `
|
||||||
<tr>
|
<tr>
|
||||||
<td>${item.branch_name}</td>
|
<td>${item.branch_name}</td>
|
||||||
<td>${item.branch_code}</td>
|
<td>${item.branch_code}</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="mdi mdi-lead-pencil btnBranchEdit" href="#" data-id="${item.id}" style="font-size:18px;"></a>
|
<a class="mdi mdi-lead-pencil btnBranchEdit" href="#" data-id="${item.id}" style="font-size:18px;"></a>
|
||||||
<a style="color:#02a8b5" data-id="${item.id}" onclick="removeClientBranch(this)"><i data-id="${item.id}" class="mdi mdi-delete" style="font-size:18px;"></i></a>
|
<a style="color:#02a8b5" data-id="${item.id}" onclick="removeClientBranch(this)"><i data-id="${item.id}" class="mdi mdi-delete" style="font-size:18px;"></i></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
`;
|
`;
|
||||||
});
|
});
|
||||||
$('#branch_list').append(branchTableInsert);
|
$('#branch_list').append(branchTableInsert);
|
||||||
@ -311,6 +311,22 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
$('body').on('click', '.btnBranchEdit', function () {
|
$('body').on('click', '.btnBranchEdit', function () {
|
||||||
|
|
||||||
|
var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || [];
|
||||||
|
for (var i = 0; i < buttonIds.length; i++) {
|
||||||
|
var firstElement = buttonIds[i].split('_')[0];
|
||||||
|
console.log(firstElement);
|
||||||
|
|
||||||
|
// Find the element by its ID
|
||||||
|
var elementToRemove = document.getElementById(firstElement);
|
||||||
|
console.log(elementToRemove);
|
||||||
|
|
||||||
|
if (elementToRemove) {
|
||||||
|
console.log(elementToRemove);
|
||||||
|
elementToRemove.parentNode.removeChild(elementToRemove);
|
||||||
|
}
|
||||||
|
localStorage.removeItem('buttonIds')
|
||||||
|
}
|
||||||
|
|
||||||
contactCount = 1
|
contactCount = 1
|
||||||
$('.loader').fadeIn();
|
$('.loader').fadeIn();
|
||||||
$('.loader-mask').fadeIn();
|
$('.loader-mask').fadeIn();
|
||||||
|
|||||||
@ -129,7 +129,7 @@
|
|||||||
var fileExtension = fileName.split('.').pop().toLowerCase();
|
var fileExtension = fileName.split('.').pop().toLowerCase();
|
||||||
if (allowedExtensions.indexOf(fileExtension) === -1) {
|
if (allowedExtensions.indexOf(fileExtension) === -1) {
|
||||||
form.trigger('reset')
|
form.trigger('reset')
|
||||||
toastr.warning('File type not allowed: ' + fileName, 'Warning');
|
toastr.warning('File type not allowed: ' + fileName, 'Only Allowed pdf, png, jpg and jpeg');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -132,7 +132,9 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
$('#btnBranchAdd').show();
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
|
$('#btnBranchAdd').show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -158,7 +160,9 @@ body {
|
|||||||
$('#BtnAdd').hide();
|
$('#BtnAdd').hide();
|
||||||
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
$('#BtnAdd').show();
|
if ($('#btnPolicyBack')[0].style.display == 'none') {
|
||||||
|
$('#BtnAdd').show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -171,7 +175,9 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
$('#btnBranchAdd').show();
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
|
$('#btnBranchAdd').show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack btn-sm"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnPolicyBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack btn-sm"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -90,7 +90,7 @@
|
|||||||
<input id="is_addon" type="checkbox" name="is_addon" <?= (isset($client['is_addon']) && $client['is_addon'] == 1) ? 'checked' : '' ?>>
|
<input id="is_addon" type="checkbox" name="is_addon" <?= (isset($client['is_addon']) && $client['is_addon'] == 1) ? 'checked' : '' ?>>
|
||||||
<span class="slider round" style="height: 27px;"></span>
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
</label>
|
</label>
|
||||||
<label for="is_addon">Is AddOn Policy</label>
|
<label for="is_addon" style=" position: relative;bottom: 5px;">Is AddOn Policy</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -82,6 +82,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
var data = <?= isset($client_relation) ? json_encode($client_relation) : '[]' ?>;
|
var data = <?= isset($client_relation) ? json_encode($client_relation) : '[]' ?>;
|
||||||
if (relation_PrimaryKey !== '') {
|
if (relation_PrimaryKey !== '') {
|
||||||
|
console.log('test case k212')
|
||||||
$('#client_rm_edit').show()
|
$('#client_rm_edit').show()
|
||||||
$('#client_rm_btnSubmit').hide();
|
$('#client_rm_btnSubmit').hide();
|
||||||
$.each(data, function(index, item) {
|
$.each(data, function(index, item) {
|
||||||
@ -91,14 +92,13 @@ $(document).ready(function(){
|
|||||||
if ($option.length > 0) {
|
if ($option.length > 0) {
|
||||||
$option.prop('selected', true);
|
$option.prop('selected', true);
|
||||||
}
|
}
|
||||||
$('#account_manager').multiselect('refresh');
|
|
||||||
$('#head').prop('disabled', true);
|
|
||||||
$('#manager').prop('disabled', true);
|
|
||||||
$('#account_manager').multiselect('disable');
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#account_manager').multiselect('refresh');
|
||||||
|
$('#head').prop('disabled', true);
|
||||||
|
$('#manager').prop('disabled', true);
|
||||||
|
$('#account_manager').multiselect('disable');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -132,71 +132,7 @@
|
|||||||
insurer_Branch_PrimaryKey = $('#insurer_id_branch').val();
|
insurer_Branch_PrimaryKey = $('#insurer_id_branch').val();
|
||||||
|
|
||||||
$('#add_branch').hide();
|
$('#add_branch').hide();
|
||||||
$('.btnBack').hide();
|
$('.btnBack').hide();
|
||||||
|
|
||||||
|
|
||||||
$('#btnBranchAdd').click(function(){
|
|
||||||
|
|
||||||
insurer_branch_form_action = '<?= base_url("master/insurer/branch/create"); ?>';
|
|
||||||
|
|
||||||
$('#add_branch').show();
|
|
||||||
$('#branch_table').hide();
|
|
||||||
$('.btnBack').show();
|
|
||||||
$('#btnBranchAdd').hide();
|
|
||||||
|
|
||||||
$('#branch_name').val('');
|
|
||||||
$('#branch_code').val('');
|
|
||||||
$('#state').val('');
|
|
||||||
$('#district').val('');
|
|
||||||
$('#branch_city').val('');
|
|
||||||
|
|
||||||
$('#name').val('');
|
|
||||||
$('#email').val('');
|
|
||||||
$('#mobile').val('');
|
|
||||||
$('#designation').val('');
|
|
||||||
|
|
||||||
|
|
||||||
contactCount = 1
|
|
||||||
|
|
||||||
|
|
||||||
var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || [];
|
|
||||||
for (var i = 0; i < buttonIds.length; i++) {
|
|
||||||
var firstElement = buttonIds[i].split('_')[0];
|
|
||||||
console.log(firstElement);
|
|
||||||
|
|
||||||
// Find the element by its ID
|
|
||||||
var elementToRemove = document.getElementById(firstElement);
|
|
||||||
console.log(elementToRemove);
|
|
||||||
|
|
||||||
if (elementToRemove) {
|
|
||||||
console.log(elementToRemove);
|
|
||||||
elementToRemove.parentNode.removeChild(elementToRemove);
|
|
||||||
}
|
|
||||||
localStorage.removeItem('buttonIds')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
$('.btnBack').click(function(){
|
|
||||||
|
|
||||||
$('#add_branch').hide();
|
|
||||||
$('#branch_table').show();
|
|
||||||
$('.btnBack').hide();
|
|
||||||
$('#btnBranchAdd').show();
|
|
||||||
|
|
||||||
$('#branch_name').val('');
|
|
||||||
$('#branch_code').val('');
|
|
||||||
$('#state').val('');
|
|
||||||
$('#district').val('');
|
|
||||||
$('#branch_city').val('');
|
|
||||||
|
|
||||||
$('#name').val('');
|
|
||||||
$('#email').val('');
|
|
||||||
$('#mobile').val('');
|
|
||||||
$('#designation').val('');
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
if(insurer_Branch_PrimaryKey !== ''){
|
if(insurer_Branch_PrimaryKey !== ''){
|
||||||
|
|
||||||
@ -204,12 +140,12 @@
|
|||||||
var data = <?= isset($insuer_branch) ? json_encode($insuer_branch) : '[]' ?>;
|
var data = <?= isset($insuer_branch) ? json_encode($insuer_branch) : '[]' ?>;
|
||||||
$.each(data, function(index, item) {
|
$.each(data, function(index, item) {
|
||||||
branchTable += `
|
branchTable += `
|
||||||
<tr>
|
<tr>
|
||||||
<td>${item.branch_name}</td>
|
<td>${item.branch_name}</td>
|
||||||
<td>${item.branch_code}</td>
|
<td>${item.branch_code}</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="btnBranchEdit" data-id="${item.id}" href="#"><i data-id="${item.id}" class="mdi mdi-lead-pencil btnBranchEdit" style="font-size:18px;"></i></a>
|
<a class="mdi mdi-lead-pencil btnBranchEdit" href="#" data-id="${item.id}" style="font-size:18px;"></a>
|
||||||
<a style="color:#02a8b5" data-id="${item.id}" onclick="removeInsurerBranch(this)"><i data-id="${item.id}" class="mdi mdi-delete" style="font-size:18px;"></i></a>
|
<a style="color:#02a8b5" data-id="${item.id}" onclick="removeInsurerBranch(this)"><i data-id="${item.id}" class="mdi mdi-delete" style="font-size:18px;"></i></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
`;
|
`;
|
||||||
@ -220,6 +156,73 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#btnBranchAdd').click(function(){
|
||||||
|
|
||||||
|
$("#insurer_branch_form")[0].reset();
|
||||||
|
contactCount = 1
|
||||||
|
insurer_branch_form_action = '<?= base_url("master/insurer/branch/create"); ?>';
|
||||||
|
$('#add_branch').show();
|
||||||
|
$('#branch_table').hide();
|
||||||
|
$('.btnBack').show();
|
||||||
|
$('#btnBranchAdd').hide();
|
||||||
|
|
||||||
|
$('#branch_name').val('');
|
||||||
|
$('#branch_code').val('');
|
||||||
|
$('#state').val('');
|
||||||
|
$('#district').val('');
|
||||||
|
$('#branch_city').val('');
|
||||||
|
|
||||||
|
$('#name').val('');
|
||||||
|
$('#email').val('');
|
||||||
|
$('#mobile').val('');
|
||||||
|
$('#designation').val('');
|
||||||
|
contactCount = 1
|
||||||
|
|
||||||
|
var addButton = document.getElementById('add');
|
||||||
|
if (addButton.style.display === 'none') {
|
||||||
|
addButton.style.display = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
|
var buttonIds = JSON.parse(localStorage.getItem('buttonIds')) || [];
|
||||||
|
for (var i = 0; i < buttonIds.length; i++) {
|
||||||
|
var firstElement = buttonIds[i].split('_')[0];
|
||||||
|
console.log(firstElement);
|
||||||
|
|
||||||
|
// Find the element by its ID
|
||||||
|
var elementToRemove = document.getElementById(firstElement);
|
||||||
|
console.log(elementToRemove);
|
||||||
|
|
||||||
|
if (elementToRemove) {
|
||||||
|
console.log(elementToRemove);
|
||||||
|
elementToRemove.parentNode.removeChild(elementToRemove);
|
||||||
|
}
|
||||||
|
localStorage.removeItem('buttonIds')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
$('.btnBack').click(function(){
|
||||||
|
|
||||||
|
$("#insurer_branch_form")[0].reset();
|
||||||
|
contactCount = 1
|
||||||
|
$('#add_branch').hide();
|
||||||
|
$('#branch_table').show();
|
||||||
|
$('.btnBack').hide();
|
||||||
|
$('#btnBranchAdd').show();
|
||||||
|
|
||||||
|
$('#branch_name').val('');
|
||||||
|
$('#branch_code').val('');
|
||||||
|
$('#state').val('');
|
||||||
|
$('#district').val('');
|
||||||
|
$('#branch_city').val('');
|
||||||
|
|
||||||
|
$('#name').val('');
|
||||||
|
$('#email').val('');
|
||||||
|
$('#mobile').val('');
|
||||||
|
$('#designation').val('');
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
$("#insurer_branch_form").submit(function(events) {
|
$("#insurer_branch_form").submit(function(events) {
|
||||||
console.log(1, insurer_branch_form_action);
|
console.log(1, insurer_branch_form_action);
|
||||||
events.preventDefault();
|
events.preventDefault();
|
||||||
@ -238,6 +241,7 @@
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
$("#insurer_branch_form")[0].reset();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
@ -254,7 +258,6 @@
|
|||||||
<a class="mdi mdi-lead-pencil btnBranchEdit" href="#" data-id="${item.id}" style="font-size:18px;"></a>
|
<a class="mdi mdi-lead-pencil btnBranchEdit" href="#" data-id="${item.id}" style="font-size:18px;"></a>
|
||||||
<a style="color:#02a8b5" data-id="${item.id}" onclick="removeInsurerBranch(this)"><i data-id="${item.id}" class="mdi mdi-delete" style="font-size:18px;"></i></a>
|
<a style="color:#02a8b5" data-id="${item.id}" onclick="removeInsurerBranch(this)"><i data-id="${item.id}" class="mdi mdi-delete" style="font-size:18px;"></i></a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
`;
|
`;
|
||||||
});
|
});
|
||||||
@ -284,7 +287,7 @@
|
|||||||
|
|
||||||
$('body').on('click', '.btnBranchEdit', function () {
|
$('body').on('click', '.btnBranchEdit', function () {
|
||||||
$('#container').html("");
|
$('#container').html("");
|
||||||
contactCount =1;
|
contactCount = 1;
|
||||||
var branch_id = $(this).attr('data-id');
|
var branch_id = $(this).attr('data-id');
|
||||||
$('#insurer_Branch_PrimaryKey').val(branch_id);
|
$('#insurer_Branch_PrimaryKey').val(branch_id);
|
||||||
|
|
||||||
@ -469,8 +472,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function removeInsurerBranch(element) {
|
function removeInsurerBranch(element) {
|
||||||
var id = element.getAttribute('data-id');
|
var id = element.getAttribute('data-id');
|
||||||
var form_action = '<?= base_url("master/insurer/branch/remove/") ?>' + id;
|
var form_action = '<?= base_url("master/insurer/branch/remove/") ?>' + id;
|
||||||
|
|||||||
@ -79,7 +79,9 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the Insurer!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the Insurer!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
$('#btnBranchAdd').show();
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
|
$('#btnBranchAdd').show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@ -77,7 +77,9 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the KYC Entity Type!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the KYC Entity Type!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
$('#btnBranchAdd').show();
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
|
$('#btnBranchAdd').show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -554,6 +554,9 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?= base_url('/employee/upload')?>">Upload</a>
|
<a href="<?= base_url('/employee/upload')?>">Upload</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?= base_url('/employee/endorsement-list')?>">Endorsement List</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@ -596,7 +596,8 @@ var grid_html = '';
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
$('#policyJsonForm')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
if (res.status === false) {
|
if (res.status === false) {
|
||||||
toastr.error('Policy Dose Not Create', 'Error');
|
toastr.error('Policy Dose Not Create', 'Error');
|
||||||
return;
|
return;
|
||||||
@ -871,6 +872,9 @@ var grid_html = '';
|
|||||||
$('#police-tab').css('display', '');
|
$('#police-tab').css('display', '');
|
||||||
$('.nav.nav-pills.navtab-bg').css('display','');
|
$('.nav.nav-pills.navtab-bg').css('display','');
|
||||||
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
||||||
|
|
||||||
|
$('#policyJsonForm')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
});
|
});
|
||||||
|
|
||||||
// function formatNumber(input) {
|
// function formatNumber(input) {
|
||||||
|
|||||||
@ -52,14 +52,6 @@
|
|||||||
.jodit-status-bar{
|
.jodit-status-bar{
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
.jodit-container{
|
|
||||||
/* width: 690px !important; */
|
|
||||||
/* margin-top: 3px; */
|
|
||||||
/* margin-bottom: 3px; */
|
|
||||||
/* margin-left: 30px; */
|
|
||||||
/* height: 0px !important; */
|
|
||||||
/* min-height: 100px !important; */
|
|
||||||
}
|
|
||||||
.input-group {
|
.input-group {
|
||||||
width: 64.5% !important;
|
width: 64.5% !important;
|
||||||
}
|
}
|
||||||
@ -409,7 +401,8 @@
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
$('#policyGPATerms')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
if (res.status === false) {
|
if (res.status === false) {
|
||||||
@ -569,6 +562,9 @@
|
|||||||
$('#police-tab').css('display', '');
|
$('#police-tab').css('display', '');
|
||||||
$('.nav.nav-pills.navtab-bg').css('display','');
|
$('.nav.nav-pills.navtab-bg').css('display','');
|
||||||
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
||||||
|
$('#policyGPATerms')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,9 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the Policy Type!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the Policy Type!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
$('#btnBranchAdd').show();
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
|
$('#btnBranchAdd').show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,10 +9,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="tpa_name">TPA Name<span
|
<label for="tpa_name">TPA Name<span class="text-danger">*</span></label>
|
||||||
class="text-danger">*</span></label>
|
<input type="text" class="form-control" id="tpa_name" placeholder="Enter TPA Name" value="<?= isset($tpa['name']) ? $tpa['name'] : '' ?>" name="name" required>
|
||||||
<input type="text" class="form-control" id="name"
|
|
||||||
placeholder="Enter TPA Name" value="<?= isset($tpa['name']) ? $tpa['name'] : '' ?>" name="name" required>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="short_name">TPA Short Name<span class="text-danger">*</span></label>
|
<label for="short_name">TPA Short Name<span class="text-danger">*</span></label>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -153,7 +153,10 @@ $(document).ready(function () {
|
|||||||
$('#mobile').val('');
|
$('#mobile').val('');
|
||||||
$('#designation').val('');
|
$('#designation').val('');
|
||||||
|
|
||||||
|
var addButton = document.getElementById('add');
|
||||||
|
if (addButton.style.display === 'none') {
|
||||||
|
addButton.style.display = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
contactCount = 1
|
contactCount = 1
|
||||||
|
|
||||||
@ -407,7 +410,7 @@ var html = `
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="${uniqueId}_designation">Designation<span class="text-danger">*</span></label>
|
<label for="${uniqueId}_designation">Designation<span class="text-danger">*</span></label>
|
||||||
<input data-parsley-type="number" data-parsley-length="[10,10]" value="${contact !== undefined && contact !== false ? contact.designation : ''}" type="text" class="form-control" placeholder="Enter Designation Name" name="designation[]" id="${uniqueId}_designation" required>
|
<input value="${contact !== undefined && contact !== false ? contact.designation : ''}" type="text" class="form-control" placeholder="Enter Designation Name" name="designation[]" id="${uniqueId}_designation" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" style="display: flex;">
|
<div class="form-group" style="display: flex;">
|
||||||
|
|||||||
@ -70,13 +70,15 @@ body {
|
|||||||
<script>
|
<script>
|
||||||
function tpa_branch_contact() {
|
function tpa_branch_contact() {
|
||||||
var check_tpa_id = $('#tpa_General_PrimaryKey');
|
var check_tpa_id = $('#tpa_General_PrimaryKey');
|
||||||
|
|
||||||
|
|
||||||
if(check_tpa_id[0].value == '' || check_tpa_id[0].value == null || check_tpa_id[0].value == 0){
|
if(check_tpa_id[0].value == '' || check_tpa_id[0].value == null || check_tpa_id[0].value == 0){
|
||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the TPA!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the TPA!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
$('#btnBranchAdd').show();
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
|
$('#btnBranchAdd').show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
19
bitbucket-pipelines.yml
Normal file
19
bitbucket-pipelines.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Template PHP Build
|
||||||
|
|
||||||
|
# This template allows you to validate your PHP application.
|
||||||
|
# The workflow allows running tests and code linting on the default branch.
|
||||||
|
|
||||||
|
image: composer:2.0
|
||||||
|
|
||||||
|
|
||||||
|
pipelines:
|
||||||
|
default:
|
||||||
|
- parallel:
|
||||||
|
- step:
|
||||||
|
name: Test
|
||||||
|
script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -qq install git-ftp
|
||||||
|
- git ftp push -u $FTP_USERNAME -p $FTP_PASSWORD $FTP_URL
|
||||||
|
caches:
|
||||||
|
- composer
|
||||||
@ -175,6 +175,9 @@ paths:
|
|||||||
policy_id:
|
policy_id:
|
||||||
type: integer
|
type: integer
|
||||||
description: policy_id
|
description: policy_id
|
||||||
|
employee_id:
|
||||||
|
type: integer
|
||||||
|
description: employee_id
|
||||||
file:
|
file:
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user