a
This commit is contained in:
parent
4c509572c2
commit
b7ce257df2
82
Controleur/ControleurAjaxbaremelettrecletemp.php
Executable file
82
Controleur/ControleurAjaxbaremelettrecletemp.php
Executable file
|
|
@ -0,0 +1,82 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
||||
|
||||
class ControleurAjaxbaremelettrecletemp extends Controleur {
|
||||
private $garantie;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->garantie = new Garantiesbaremepriseencharge();
|
||||
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge'];
|
||||
|
||||
$actes = $this->garantie->getActesGarantieBaremeInitialLettreCle($idBaremePriseEnCharge);
|
||||
|
||||
$this->genererVueAjax(array
|
||||
(
|
||||
'actes' => $actes
|
||||
));
|
||||
}
|
||||
|
||||
public function ajouter()
|
||||
{
|
||||
$idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge");
|
||||
$lettreCle = $this->requete->getParametreFormulaire("lettreCle");
|
||||
$dateEffetActe = $this->requete->getParametreDate("dateEffetActe");
|
||||
$forfaitPlafondActe = $this->requete->getParametreFormulaire("forfaitPlafondActe");
|
||||
$ticketModerateurActe = $this->requete->getParametreFormulaire("ticketModerateurActe");
|
||||
|
||||
$this->garantie->insererActeBaremeInitialLettreCle($idBaremePriseEnCharge, $lettreCle, $dateEffetActe, $forfaitPlafondActe, $ticketModerateurActe);
|
||||
}
|
||||
|
||||
public function controle()
|
||||
{
|
||||
$idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge");
|
||||
$lettreCle = $this->requete->getParametreFormulaire("lettreCle");
|
||||
|
||||
$maxDateEffetActeBareme = $this->garantie->getMaxDateEffetBaremeInitialLette($idBaremePriseEnCharge, $lettreCle);
|
||||
|
||||
$this->genererVueAjax(array
|
||||
(
|
||||
'maxDateEffetActeBareme' => $maxDateEffetActeBareme
|
||||
));
|
||||
}
|
||||
|
||||
public function supprimer()
|
||||
{
|
||||
$idActe = $this->requete->getParametreFormulaire("idActe");
|
||||
|
||||
$this->garantie->supprimerActeBaremeInitialLettreCle($idActe);
|
||||
|
||||
}
|
||||
|
||||
public function detailactes()
|
||||
{
|
||||
$idActesbaremeinitiallettrecle = $this->requete->getParametreFormulaire("idActesbaremeinitiallettrecle");
|
||||
$lettreCle = $this->requete->getParametreFormulaire("lettreCle");
|
||||
|
||||
$_SESSION['idActesbaremeinitiallettrecle'] = $idActesbaremeinitiallettrecle;
|
||||
$_SESSION['lettreCle'] = $lettreCle;
|
||||
|
||||
$detailactes = $this->garantie->getActesGarantieBaremeInitialLettreCleDetailacte($idActesbaremeinitiallettrecle);
|
||||
|
||||
$this->genererVueAjax(array
|
||||
(
|
||||
'detailactes' => $detailactes
|
||||
));
|
||||
}
|
||||
|
||||
public function supprimerdetailacte()
|
||||
{
|
||||
$idActe = $this->requete->getParametreFormulaire("idActe");
|
||||
|
||||
$this->garantie->supprimerActeBaremeInitial($idActe);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
34
Controleur/ControleurBaremepriseenchargelettrecletemp.php
Executable file
34
Controleur/ControleurBaremepriseenchargelettrecletemp.php
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
||||
|
||||
class ControleurBaremepriseenchargelettrecletemp extends Controleur
|
||||
{
|
||||
private $menuvue;
|
||||
private $garantie;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Baremepriseenchargelettrecletemp');
|
||||
|
||||
$this->garantie = new Garantiesbaremepriseencharge();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge'];
|
||||
$actes = $this->garantie->getActesGarantieBaremeInitialLettreCle($idBaremePriseEnCharge);
|
||||
$lettrecles = $this->garantie->getLettreCleBaremeAdd();
|
||||
$tmBareme = $this->garantie->getTmBaremeInitial($idBaremePriseEnCharge);
|
||||
$maxDateEffetBareme = $this->garantie->getMaxDateEffetBaremeInitial($idBaremePriseEnCharge);
|
||||
|
||||
|
||||
$this->genererVue(array(
|
||||
'actes' => $actes,
|
||||
'lettrecles' => $lettrecles,
|
||||
'tmBareme' => $tmBareme,
|
||||
'maxDateEffetBareme'=> $maxDateEffetBareme,
|
||||
));
|
||||
}
|
||||
}
|
||||
2
Vue/Ajaxbaremelettrecletemp/controle.php
Executable file
2
Vue/Ajaxbaremelettrecletemp/controle.php
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
<INPUT class="sr-only" TYPE="text" id="maxDateEffetActeBareme" name="maxDateEffetActeBareme" value="<?= $maxDateEffetActeBareme; ?>">
|
||||
87
Vue/Ajaxbaremelettrecletemp/detailactes.php
Executable file
87
Vue/Ajaxbaremelettrecletemp/detailactes.php
Executable file
|
|
@ -0,0 +1,87 @@
|
|||
<?php
|
||||
$adminProd = $_SESSION['adminProd'];
|
||||
$idActesbaremeinitiallettrecle = $_SESSION['idActesbaremeinitiallettrecle'];
|
||||
$lettreCle = $_SESSION['lettreCle'];
|
||||
?>
|
||||
|
||||
<input type="hidden" id="idActesbaremeinitiallettrecle" name="idActesbaremeinitiallettrecle" value="<?=$_SESSION['idActesbaremeinitiallettrecle']?>">
|
||||
<input type="hidden" id="lettreCle" name="idActesbaremeinilettreCletiallettrecle" value="<?=$_SESSION['lettreCle']?>">
|
||||
|
||||
<div class="modal-dialog" style="max-width: 85%;" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-bs-dismiss="modal" >×</button>
|
||||
<legend class="modal-title text-center"> <?= $lettreCle . " => " . _("Détail des actes impactés") ?> </legend>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<INPUT class="sr-only" TYPE="text" id="datejour" NAME="datejour" value="<?= datefr(date('Y/m/d')); ?>">
|
||||
|
||||
<hr style="border: 10px double blue; border-radius: 5px; background-color: blue;" />
|
||||
|
||||
<?php if(count($detailactes) > "0"): ?>
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;" >
|
||||
<thead >
|
||||
<tr>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Acte") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Coefficient") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond Acte") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Actif") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Suppr") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody >
|
||||
<?php foreach ($detailactes as $v):
|
||||
$idActe = $this->nettoyer($v['id']);
|
||||
$supprime = $v['supprime'];
|
||||
$libelle = $this->nettoyer($v['libelle']);
|
||||
|
||||
if (est_anglophone())
|
||||
{
|
||||
$libelle = $this->nettoyer($v['libelleEng']);
|
||||
}
|
||||
|
||||
if($this->nettoyer($v['actif'])=="1"){
|
||||
$actif = "Oui";
|
||||
}else{
|
||||
$actif = "Non";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($supprime=='1'): ?>
|
||||
<tr valign="top" style="text-decoration: line-through red;">
|
||||
<?php else: ?>
|
||||
<tr valign="top">
|
||||
<?php endif; ?>
|
||||
<td style='border: 2px solid #939597;'><?= $libelle ?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= $this->nettoyer($v['coefficient']); ?> </td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= format_N($this->nettoyer($v['forfaitPlafond']));?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= $this->nettoyer($v['ticketModerateur']);?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= $actif;?></td>
|
||||
<?php if($supprime=='0'): ?>
|
||||
<td style='text-align:center; border: 2px solid #939597;'>
|
||||
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_baremeacte_lettre_cle_detail('<?= $adminProd?>',<?= $idActe ?>);">
|
||||
<i class="fa fa-times" aria-hidden="true"></i>
|
||||
</button>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td style='text-align:center; border: 2px solid #939597;'> </td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<div class="col-12 alert alert-danger text-center">
|
||||
<?= _("Aucune ligne insérée") ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="btn-fermer-modal" class="btn btn-default" data-bs-dismiss="modal" >Fermer</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
79
Vue/Ajaxbaremelettrecletemp/index.php
Executable file
79
Vue/Ajaxbaremelettrecletemp/index.php
Executable file
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
$adminProd = $_SESSION['adminProd'];
|
||||
?>
|
||||
|
||||
<?php if(count($actes) > "0"): ?>
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;" >
|
||||
<thead >
|
||||
<tr>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Détail") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Lettre Clé") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Désignation") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Effet") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond Acte") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nbre Actes") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Actif") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Suppr") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody >
|
||||
<?php foreach ($actes as $v):
|
||||
$idActe = $this->nettoyer($v['id']);
|
||||
$supprime = $v['supprime'];
|
||||
$lettreCle = $this->nettoyer($v['lettreCle']);
|
||||
$libelle = $this->nettoyer($v['description']);
|
||||
|
||||
if (est_anglophone())
|
||||
{
|
||||
$libelle = $this->nettoyer($v['descriptionEng']);
|
||||
}
|
||||
|
||||
if($this->nettoyer($v['actif'])=="1"){
|
||||
$actif = "Oui";
|
||||
}else{
|
||||
$actif = "Non";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($supprime=='1'): ?>
|
||||
<tr valign="top" style="text-decoration: line-through red;">
|
||||
<?php else: ?>
|
||||
<tr valign="top">
|
||||
<?php endif; ?>
|
||||
<td style='text-align:center; border: 2px solid #939597;'>
|
||||
<button type="button" class="form-control btn btn-info" onClick="javascript:detail_baremeacte_lettre_cle(<?= $idActe ?>, '<?= $lettreCle?>');">
|
||||
<?= $idActe ?>
|
||||
</button>
|
||||
</td>
|
||||
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= $lettreCle ?></td>
|
||||
<td style='border: 2px solid #939597;'><?= $libelle ?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= datefr($this->nettoyer($v['dateEffet'])); ?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= format_N($this->nettoyer($v['forfaitPlafond']));?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= $this->nettoyer($v['ticketModerateur']);?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= format_N($this->nettoyer($v['nbActes']));?></td>
|
||||
<td style='text-align:center; border: 2px solid #939597;'><?= $actif;?></td>
|
||||
<?php if($supprime=='0'): ?>
|
||||
<td style='text-align:center; border: 2px solid #939597;'>
|
||||
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_baremeacte_lettre_cle('<?= $adminProd?>',<?= $idActe ?>);">
|
||||
<i class="fa fa-times" aria-hidden="true"></i>
|
||||
</button>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td style='text-align:center; border: 2px solid #939597;'> </td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<div class="col-12 alert alert-danger text-center">
|
||||
<?= _("Aucune ligne insérée") ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="modal fade" id="div_detail_bareme_actes" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false">
|
||||
|
||||
</div>
|
||||
69
Vue/Baremepriseenchargelettrecletemp/index.php
Executable file
69
Vue/Baremepriseenchargelettrecletemp/index.php
Executable file
|
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
$adminSin = $_SESSION['adminSin'];
|
||||
?>
|
||||
|
||||
<input type="hidden" id="idBaremePriseEnCharge" name="idBaremePriseEnCharge" value="<?=$_SESSION['idBaremePriseEnCharge']?>">
|
||||
<input class="sr-only" id="adminSin" name="adminSin" type="text" value="<?= $adminSin ;?>" >
|
||||
|
||||
<div id="div_entete_bareme">
|
||||
<legend class="text-center" style="margin-bottom: 10px; background-color: #a6a6a6; font-size:13pt; font-weight: bold; color: white;">
|
||||
<?= _("Barème de prestations par lettres clés") ?>
|
||||
</legend>
|
||||
|
||||
<INPUT class="sr-only" TYPE="text" id="masquerActe" NAME="masquerActe" value="1">
|
||||
<div id="div_acte_masquer">
|
||||
<div id="div_maxdateeffetactebareme">
|
||||
</div>
|
||||
|
||||
<table class="table table-bordered table-condensed table-responsive" style="font-size:10pt;" >
|
||||
<thead style="color: #000;">
|
||||
<tr>
|
||||
<td align='center' style='font-size:10pt; font-weight:bold; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required">
|
||||
<?= _("Lettre Clé") ?>
|
||||
</td>
|
||||
|
||||
<td colspan="2" style='border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'>
|
||||
<SELECT style="font-size:10pt; height:30px; border: 2px solid #939597;" class="form-control selectpicker" data-live-search="true" id="lettreCle" NAME="lettreCle" required autofocus
|
||||
onChange="">
|
||||
<?= liste_options($lettrecles,"",false) ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Effet") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond") ?> </th>
|
||||
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style='text-align:center; border: 2px solid #939597;'>
|
||||
<INPUT style='text-align:center; font-size:10pt; border: 2px solid #939597;' class="form-control datepicker" TYPE="text" id="dateEffetActe"
|
||||
NAME="dateEffetActe" value="" required >
|
||||
</td>
|
||||
|
||||
<td style='text-align:center; border: 2px solid #939597;'>
|
||||
<INPUT style='font-size:10pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
|
||||
onblur="formatMonetaire(this);" id="forfaitPlafondActe" name="forfaitPlafondActe" >
|
||||
</td>
|
||||
|
||||
<td style='text-align:center; border: 2px solid #939597; '>
|
||||
<INPUT style='font-size:10pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="<?= $tmBareme ?>" onkeyup="controle_numerique(this);"
|
||||
id="ticketModerateurActe" name="ticketModerateurActe" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<input style='font-size:12pt;' id="btn_acte" name="btn_acte" onclick="javascript:validiteDateEffetBaremeLettreCle();"
|
||||
class = "form-control btn btn-primary" type="button" value="<?= _("Insérer une nouvelle ligne") ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="div_detail_bareme">
|
||||
<?php require "Vue/Ajaxbaremelettrecle/index.php";?>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user