dzas
This commit is contained in:
parent
72399c3eac
commit
6ee33f4a38
|
|
@ -49,4 +49,10 @@ class ControleurAjaxmouvementassure extends Controleur {
|
|||
$_SESSION['idAvenant'] = $idAvenant;
|
||||
}
|
||||
|
||||
public function reinitvalidation()
|
||||
{
|
||||
$idMvt = $this->requete->getParametreFormulaire("idMvt");
|
||||
|
||||
$this->mouvementassure->reinitvalidation($idMvt);
|
||||
}
|
||||
}
|
||||
|
|
@ -521,25 +521,6 @@ function dataTableSpeciale() {
|
|||
|
||||
}
|
||||
|
||||
function corriger_mvt_beneficiaire(idBeneficiaire, idAvenant)
|
||||
{
|
||||
donnees = 'idAvenant='+idAvenant;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxmouvementassure/avenant/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
setTimeout(() => {
|
||||
modifier_beneficiaire(idBeneficiaire);
|
||||
}, 150);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* MESSAGERIE ET NOTIFICATIONS
|
||||
* Récupère le nombre de messages et déconnecte si session expirée.
|
||||
|
|
@ -7261,4 +7242,51 @@ function envoyer_notification_avenant(idAvenant)
|
|||
function motif_rejet(motif)
|
||||
{
|
||||
alert_ebene(motif, motif);
|
||||
}
|
||||
|
||||
function corriger_mvt_beneficiaire(idBeneficiaire, idAvenant)
|
||||
{
|
||||
donnees = 'idAvenant='+idAvenant;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxmouvementassure/avenant/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
setTimeout(() => {
|
||||
modifier_beneficiaire(idBeneficiaire);
|
||||
}, 150);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function confirmer_correction(idMvt)
|
||||
{
|
||||
donnees = 'idMvt='+idMvt;
|
||||
|
||||
const v_msg = "Confirmez-vous la prise en compte de toute correction ?";
|
||||
const v_msgEng = "Do you confirm the consideration of any correction?";
|
||||
|
||||
confirm_ebene(v_msg, v_msgEng).then(isConfirmed => {
|
||||
if (isConfirmed) {
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxmouvementassure/reinitvalidation/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
|
||||
},
|
||||
complete: function() {
|
||||
window.location.assign($("#racineWeb" ).val()+"Mouvementassure/");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
|
@ -25,4 +25,12 @@ class Mouvementassure extends Modele {
|
|||
return $resultat->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function reinitvalidation($idMvt)
|
||||
{
|
||||
$user = $_SESSION['codeUtilisateur'];
|
||||
|
||||
$sql = 'call sp_mouvement_rh_reinitvalidation(?);';
|
||||
|
||||
$this->executerRequete($sql, array($idMvt, $user));
|
||||
}
|
||||
}
|
||||
|
|
@ -18,6 +18,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<INPUT id="idAvenant" NAME="idAvenant" TYPE="text" value="<?= $_SESSION['idAvenant']; ?>" >
|
||||
|
||||
<div class="row g-4">
|
||||
<div class="col-xl-12">
|
||||
<div class="card border-0 shadow-sm">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user