Update authorization request details view

This commit is contained in:
Djery-Tom 2022-02-04 08:00:31 +01:00
parent a8bd92bd48
commit 674688b954
6 changed files with 27 additions and 3 deletions

View File

@ -22,6 +22,7 @@ class ValidatingDoctor extends CI_Controller
$data['count_d_traite'] = $this->nano_health_model->getCountCareRequests(null,$this->session->userdata('agent_id'), 'ACCEPTED');
$data['count_d_no_traite'] = $this->nano_health_model->getCountCareRequests($data['network_id'], null, 'UNDER_VALIDATION');
$data['count_d_no_canceled'] = $this->nano_health_model->getCountCareRequests(null,$this->session->userdata('agent_id'), 'REJECTED');
$data['count_d_no_used'] = $this->nano_health_model->getCountCareRequests(null,$this->session->userdata('agent_id'), 'USED');
$this->load->view('nano_health/validating_doctor/header', $data);
$this->load->view('nano_health/validating_doctor/dashboard', $data);

View File

@ -36,7 +36,11 @@ class CareRequests extends CI_Controller
$buttons = "<button class='btn btn-success btn-block treat-demand' data-id='$row->id' data-action='ACCEPT'>".$this->lang->line('accept')."</button>".
"<button class='btn btn-danger btn-block treat-demand' data-id='$row->id' data-action='REJECT'>".$this->lang->line('reject')."</button>";
$data[] = array($row->request_id , $row->user_lastname.' '.$row->user_firstname , $row->user_phone, $row->act_code , $row->act_name,
$insured = $row->user_lastname.' '.$row->user_firstname;
if(isset($row->beneficiary_id)){
$insured = $row->beneficiary_lastname.' '.$row->beneficiary_firstname;
}
$data[] = array($row->request_id , $insured, $this->lang->line($row->to), $row->user_phone, $row->act_code , $row->act_name,
mb_strtoupper($this->lang->line($row->state),'UTF-8'), $row->created_at , $row->state === 'UNDER_VALIDATION' ? $buttons : null);
}

View File

@ -860,4 +860,6 @@ $lang['care_requests_history'] = "Care request history";
$lang['no_demand'] = "No requests";
$lang['request_id'] = "Request ID";
$lang['export_request_list'] = "Export request list";
$lang['USED'] = "Used";
$lang['used_care_requests'] = "Used care requests";
?>

View File

@ -871,4 +871,6 @@ $lang['care_requests_history'] = "Historique des demandes de soins";
$lang['no_demand'] = "Aucune demande";
$lang['request_id'] = "ID de la demande";
$lang['export_request_list'] = "Exporter la liste des demandes";
$lang['USED'] = "Utilisée";
$lang['used_care_requests'] = "Demandes de soins utilisées";
?>

View File

@ -53,6 +53,7 @@
<tr>
<th align='center'><?=$this->lang->line('request_id')?></th>
<th><?=$this->lang->line('one_insured')?></th>
<th>Type</th>
<th><?=$this->lang->line('Contact')?></th>
<th><?= $this->lang->line('act_code') ?></th>
<th><?= $this->lang->line('act') ?></th>
@ -129,9 +130,9 @@
},
"type": "POST"
},
"aaSorting": [[6, "desc"]],
"aaSorting": [[7, "desc"]],
"columnDefs": [{
"targets": [6],
"targets": [7],
// "orderable": false,
render: $.fn.dataTable.render.moment( 'YYYY-MM-DD HH:mm:ss' , 'D MMMM YYYY HH:mm:ss', format)
}],

View File

@ -87,6 +87,20 @@
</div>
</div>
</div>
<div class="col-lg-3 col-md-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3><?= $count_d_no_used ?? 0;?></h3>
<p><?= $this->lang->line("used_care_requests"); ?></p>
</div>
<div class="icon">
<i class="ion ion-checkmark-circled"></i>
</div>
</div>
</div>
<div class="col-xs-12">
<!-- BAR CHART -->