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