a
This commit is contained in:
parent
d988636fe3
commit
1980c8069e
|
|
@ -19,6 +19,24 @@ class ControleurAjaxmouvementassurevalider extends Controleur {
|
|||
$this->genererVueAjax(array('mouvementassures' => $mouvementassures));
|
||||
}
|
||||
|
||||
public function selectionner()
|
||||
{
|
||||
$idFactureTemp = $this->requete->getParametreFormulaire("idFactureTemp");
|
||||
$this->facture->selectionner_facture_gc($idFactureTemp);
|
||||
}
|
||||
|
||||
public function deselectionner()
|
||||
{
|
||||
$idFactureTemp = $this->requete->getParametreFormulaire("idFactureTemp");
|
||||
$this->facture->de_selectionner_facture_gc($idFactureTemp);
|
||||
}
|
||||
|
||||
public function selectionnertout()
|
||||
{
|
||||
$choix = $this->requete->getParametreFormulaire("choix");
|
||||
$this->facture->selectionner_facture_gc_tout($choix);
|
||||
}
|
||||
|
||||
public function validerselection()
|
||||
{
|
||||
$this->facture->valider_factures_gc_non_sel();
|
||||
|
|
@ -32,16 +50,4 @@ class ControleurAjaxmouvementassurevalider extends Controleur {
|
|||
$this->genererVueAjax(array('reglement' => $reglement, 'composante' => $composante));
|
||||
}
|
||||
|
||||
public function selectionner()
|
||||
{
|
||||
$idFactureTemp = $this->requete->getParametreFormulaire("idFactureTemp");
|
||||
$this->facture->selectionner_facture_gc($idFactureTemp);
|
||||
}
|
||||
|
||||
public function deselectionner()
|
||||
{
|
||||
$idFactureTemp = $this->requete->getParametreFormulaire("idFactureTemp");
|
||||
$this->facture->de_selectionner_facture_gc($idFactureTemp);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -45289,9 +45289,6 @@ function liste_mouvemements_rh()
|
|||
|
||||
function liste_mouvemements_rh_valider()
|
||||
{
|
||||
alert("liste_mouvemements_rh_valider");
|
||||
return;
|
||||
|
||||
codeSensMouvement=$("#codeSensMouvement").val();
|
||||
valide=$("#valide").val();
|
||||
debut=$("#debut").val();
|
||||
|
|
@ -45301,8 +45298,8 @@ function liste_mouvemements_rh_valider()
|
|||
donnees += '&valide='+valide;
|
||||
donnees += '&debut='+debut+'&fin='+fin;
|
||||
|
||||
// alert(donnees);
|
||||
// return;
|
||||
alert(donnees);
|
||||
return;
|
||||
|
||||
$("#div_mvt").html(`
|
||||
<div class="d-flex flex-column align-items-center justify-content-center" style="padding-top:80px;">
|
||||
|
|
|
|||
|
|
@ -64,4 +64,39 @@ class Mouvementassure extends Modele {
|
|||
|
||||
$this->executerRequete($sql, array($idPolice, $user));
|
||||
}
|
||||
|
||||
public function selectionner_facture_gc_tout($choix)
|
||||
{
|
||||
$idGcReglement = $_SESSION['idGcReglement'];
|
||||
$idSaisie = $_SESSION['idSaisie'];
|
||||
$user = $_SESSION['login'];
|
||||
|
||||
$sql = 'call sp_r_selectionner_facture_gc_tout(?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idGcReglement, $idSaisie, $user, $choix));
|
||||
}
|
||||
|
||||
public function selectionner_facture_gc($idFactureTemp)
|
||||
{
|
||||
$sql = 'call sp_r_selectionner_facture_gc(?)';
|
||||
$this->executerRequete($sql, array($idFactureTemp));
|
||||
}
|
||||
|
||||
public function de_selectionner_facture_gc($idFactureTemp)
|
||||
{
|
||||
$sql = 'call sp_r_de_selectionner_facture_gc(?)';
|
||||
$this->executerRequete($sql, array($idFactureTemp));
|
||||
}
|
||||
|
||||
public function valider_factures_gc_non_sel()
|
||||
{
|
||||
$idGcReglement = $_SESSION['idGcReglement'];
|
||||
$idSaisie = $_SESSION['idSaisie'];
|
||||
$user = $_SESSION['login'];
|
||||
|
||||
$sql = 'call sp_r_valider_selection_factures_gc(?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idGcReglement, $idSaisie, $user));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@ KANE
|
|||
<tbody>
|
||||
<?php foreach ($mouvementassures as $mvt):
|
||||
$choix = $this->nettoyer($mvt['choix']);
|
||||
$idMvt = $this->nettoyer($mvt['id']);
|
||||
$idMvtTemp = $this->nettoyer($mvt['id']);
|
||||
$sensMvt = $mvt['sensMouvement']; // On suppose que '0' = Entrée, '1' = Sortie
|
||||
$libelleSensMouvement = est_anglophone() ? $mvt['libelleSensMouvementEng'] : $mvt['libelleSensMouvement'];
|
||||
?>
|
||||
|
|
@ -72,23 +72,15 @@ KANE
|
|||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
<td class="text-center small">
|
||||
<?php if ($valide == "1"): ?>
|
||||
<div class="fw-bold text-dark"><?= $this->nettoyer($mvt['userValidation']) ?></div>
|
||||
<div class="x-small text-muted"><?= dateheureLang($this->nettoyer($mvt['dateValidation'])) ?></div>
|
||||
<?php else: ?>
|
||||
<span class="text-muted italic small"><?= _("En attente")?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="badge bg-light text-secondary border"><?= format_N($this->nettoyer($mvt['primeTtc'])) ?></span>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<?php if($choix=='1'): ?>
|
||||
<input type="checkbox" checked value="<?php echo $choix ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};selectionner_facture_gc(<?= $idMvt ?>, this.value);">
|
||||
<input type="checkbox" checked value="<?php echo $choix ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};selectionner_mouvement_rh(<?= $idMvtTemp ?>, this.value);">
|
||||
<?php else: ?>
|
||||
<input type="checkbox" value="<?php echo $choix ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};selectionner_facture_gc(<?= $idTemp ?>, this.value);">
|
||||
<input type="checkbox" value="<?php echo $choix ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};selectionner_mouvement_rh(<?= $idMvtTemp ?>, this.value);">
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ controlerPlafondBeneficiaire : <?= $_SESSION['controlerPlafondBeneficiaire'] ?>
|
|||
<script src="Js/datepicker-fr.js"></script>
|
||||
<?php endif; ?>
|
||||
|
||||
<script src="Js/fonctions.js?ver=2026.01.18.04"></script>
|
||||
<script src="Js/fonctions.js?ver=2026.01.20.01"></script>
|
||||
|
||||
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>" > </script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user