a
This commit is contained in:
parent
43e412827c
commit
eaea80844e
|
|
@ -11,13 +11,11 @@ class ControleurAjaxententeprealablesproformahospi extends Controleur {
|
|||
|
||||
public function index()
|
||||
{
|
||||
//$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
||||
$demandeTraite = $this->requete->getParametreFormulaire("demandeTraite");
|
||||
|
||||
$debut = $this->requete->getParametreDate("debut");
|
||||
$fin = $this->requete->getParametreDate("fin");
|
||||
|
||||
//$ententeprealables = $this->ententeprealable->getEnteteEntenteprealablesProformaHospit($codePrestataire, $demandeTraite, $debut, $fin);
|
||||
$enteteententeprealables = $this->ententeprealable->getEnteteEntenteprealablesProformaHospit($demandeTraite, $debut, $fin);
|
||||
|
||||
$this->genererVueAjax(array('enteteententeprealables' => $enteteententeprealables));
|
||||
|
|
|
|||
|
|
@ -107,10 +107,7 @@ class ControleurAjaxtraitementproformahospitalisation extends Controleur {
|
|||
$idPrestationactes = $this->requete->getParametre("idPrestationactes");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
//$_SESSION['idProforma'] = $idProforma;
|
||||
|
||||
$this->examen->majquantiteproformahospitalisation($idPrestationactes, $quantite);
|
||||
|
||||
}
|
||||
|
||||
public function validerunacteproformahospit()
|
||||
|
|
@ -142,10 +139,6 @@ class ControleurAjaxtraitementproformahospitalisation extends Controleur {
|
|||
$_SESSION['idProforma'] = $idProforma;
|
||||
|
||||
$this->examen->validerproformahospitalisation($idProforma);
|
||||
|
||||
|
||||
|
||||
//echo $numeroBonHospitalisation;
|
||||
}
|
||||
|
||||
public function majobservation()
|
||||
|
|
|
|||
|
|
@ -83578,14 +83578,11 @@ function refuserunacteproformahospit(idProforma, idPrestationactes, choix)
|
|||
|
||||
function validerproformahospitalisation(idProforma)
|
||||
{
|
||||
|
||||
motifReel = $("#motifReel").val();
|
||||
motifRefusAssure = $("#motifRefusAssure").val();
|
||||
|
||||
siRefus = $("#siRefus").val();
|
||||
accorderTout = $("#accorderTout").val();
|
||||
//entente = $("#entente").val();
|
||||
|
||||
|
||||
if ((motifReel == "" || motifReel <= " ") && (accorderTout > 0)) {
|
||||
motifReel = "BON POUR ACCORD";
|
||||
|
|
@ -83617,12 +83614,9 @@ function validerproformahospitalisation(idProforma)
|
|||
|
||||
donnees = "idProforma="+idProforma;
|
||||
|
||||
//typeSms="proformahospitalisation";
|
||||
|
||||
v_msg="Validez-vous cette facture proforma?";
|
||||
v_msgEng="Do you validate this proforma invoice?";
|
||||
|
||||
|
||||
|
||||
confirm_ebene(v_msg, v_msgEng)
|
||||
.then((isConfirmed) => {
|
||||
if (isConfirmed) {
|
||||
|
|
@ -83646,7 +83640,6 @@ function validerproformahospitalisation(idProforma)
|
|||
error: function (data) {
|
||||
},
|
||||
complete: function () {
|
||||
// listeententeprealablesproformahospi();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
@ -86630,8 +86623,7 @@ function save_nv_consommable_proformahospit()
|
|||
{
|
||||
idProforma = $("#idProforma ").val();
|
||||
libelleconsommable = $("#libelleconsommable").val();
|
||||
|
||||
|
||||
|
||||
if (libelleconsommable<=" ")
|
||||
{
|
||||
v_msg="Veuillez saisir le nom!";
|
||||
|
|
|
|||
|
|
@ -793,16 +793,12 @@ class Ententeprealable extends Modele {
|
|||
return $resultat['numeroBon'];
|
||||
}
|
||||
|
||||
//public function getEnteteEntenteprealablesProformaHospit($codePrestataire, $demandeTraite, $debut, $fin)
|
||||
public function getEnteteEntenteprealablesProformaHospit($demandeTraite, $debut, $fin)
|
||||
{
|
||||
//$codePrestataire = contruireParamLike($codePrestataire);
|
||||
$demandeTraite = contruireParamLike($demandeTraite);
|
||||
|
||||
//$sql = 'call sp_get_entete_ententeprealables_proforma_hospit(?, ?, ?, ?)';
|
||||
$sql = 'call sp_get_entete_ententeprealables_proforma_hospit(?, ?, ?)';
|
||||
|
||||
//$resultat = $this->executerRequete($sql, array($codePrestataire, $demandeTraite, $debut, $fin));
|
||||
$resultat = $this->executerRequete($sql, array($demandeTraite, $debut, $fin));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user