8555 lines
209 KiB
JavaScript
Executable File
8555 lines
209 KiB
JavaScript
Executable File
function alert_ebene(p_msg, p_msg_eng)
|
|
{
|
|
codeLangue = $("#codeLangue").val();
|
|
|
|
if(codeLangue=="en_US")
|
|
{
|
|
alert(p_msg_eng);
|
|
}
|
|
else
|
|
{
|
|
alert(p_msg);
|
|
}
|
|
}
|
|
|
|
function alert_ebene_ajax(p_msg, p_msg_eng)
|
|
{
|
|
codeLangue = $("#codeLangue").val();
|
|
|
|
if(codeLangue=="en_US")
|
|
{
|
|
alert(p_msg_eng);
|
|
}
|
|
else
|
|
{
|
|
alert(p_msg);
|
|
}
|
|
}
|
|
|
|
function confirm_ebene(p_msg, p_msg_eng)
|
|
{
|
|
codeLangue = $("#codeLangue").val();
|
|
|
|
if(codeLangue=="en_US")
|
|
{
|
|
return confirm(p_msg_eng);
|
|
}
|
|
else
|
|
{
|
|
return confirm(p_msg);
|
|
}
|
|
}
|
|
|
|
function prompt_ebene(p_msg, p_msg_eng, p_retour)
|
|
{
|
|
codeLangue = $("#codeLangue").val();
|
|
|
|
if(codeLangue=="en_US")
|
|
{
|
|
return prompt(p_msg_eng, p_retour);
|
|
}
|
|
else
|
|
{
|
|
return prompt(p_msg, p_retour);
|
|
}
|
|
}
|
|
|
|
var p_destinataires="";
|
|
var p_message="";
|
|
|
|
|
|
function adherents_police()
|
|
{
|
|
if ($("#idPolice_C" ).val()>"")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Listeadherent/");
|
|
}
|
|
}
|
|
|
|
$.prototype.enable = function () {
|
|
$.each(this, function (index, el) {
|
|
$(el).removeAttr('disabled');
|
|
});
|
|
}
|
|
|
|
$.prototype.disable = function () {
|
|
$.each(this, function (index, el) {
|
|
$(el).attr('disabled', 'disabled');
|
|
});
|
|
}
|
|
|
|
$.prototype.unreadable = function () {
|
|
$.each(this, function (index, el) {
|
|
$(el).attr('READONLY', 'READONLY');
|
|
});
|
|
}
|
|
|
|
$.prototype.readable = function () {
|
|
$.each(this, function (index, el) {
|
|
$(el).removeAttr('READONLY');
|
|
});
|
|
}
|
|
|
|
Date.estAnneeBissextile = function (annee) {
|
|
return (((annee % 4 === 0) && (annee % 100 !== 0)) || (annee % 400 === 0));
|
|
};
|
|
|
|
Date.getDaysInMonth = function (annee, month) {
|
|
return [31, (Date.estAnneeBissextile(annee) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
|
|
};
|
|
|
|
Date.prototype.estAnneeBissextile = function () {
|
|
return Date.estAnneeBissextile(this.getFullYear());
|
|
};
|
|
|
|
Date.prototype.getDaysInMonth = function () {
|
|
return Date.getDaysInMonth(this.getFullYear(), this.getMonth());
|
|
};
|
|
|
|
Date.prototype.addMonths = function (value) {
|
|
var n = this.getDate();
|
|
this.setDate(1);
|
|
this.setMonth(this.getMonth() + value);
|
|
this.setDate(Math.min(n, this.getDaysInMonth()));
|
|
this.setDate(this.getDate()-1);
|
|
return this;
|
|
};
|
|
|
|
$( ".datepicker" ).datepicker({
|
|
inline: true,
|
|
changeMonth: true,
|
|
changeYear: true,
|
|
yearRange: "c-60:c+20"
|
|
|
|
});
|
|
|
|
function get_age(dater)
|
|
{
|
|
var td2 = $("#datejourfr_C").datepicker("getDate");
|
|
return age = td2.getFullYear()-dater.getFullYear();
|
|
}
|
|
|
|
function selectionner_client(id,no)
|
|
{
|
|
$("#idClient_C").val(id);
|
|
$("#numeroClient_C").val(no);
|
|
$("#nomClient_C").val("");
|
|
}
|
|
|
|
function selectionner_client_d(id,no)
|
|
{
|
|
$("#idClient_d_C").val(id);
|
|
$("#numeroClient_d_C").val(no);
|
|
$("#nomClient_d_C").val("");
|
|
}
|
|
|
|
function afficher_client_id()
|
|
{
|
|
idClient=$("#idClient_C" ).val();
|
|
|
|
if (idClient>"")
|
|
{
|
|
ajax_context_client_afficher(idClient);
|
|
}
|
|
}
|
|
|
|
function afficher_client_d_id()
|
|
{
|
|
idClient=$("#idClient_d_C" ).val();
|
|
|
|
if (idClient>"")
|
|
{
|
|
ajax_context_client_d_afficher(idClient);
|
|
}
|
|
}
|
|
|
|
function selectionner_police(id,no,prime,sinistre)
|
|
{
|
|
$("#idPolice_C" ).val(id);
|
|
$("#numeroPolice_C" ).val(no);
|
|
$("#primeAnnuelPolice_C" ).val(parseInt(prime));
|
|
$("#sinistrePolice_C" ).val(parseInt(sinistre));
|
|
|
|
}
|
|
|
|
function selectionner_police_d(id,no)
|
|
{
|
|
$("#idPolice_d_C" ).val(id);
|
|
$("#numeroPolice_d_C" ).val(no);
|
|
}
|
|
|
|
function afficher_police_id()
|
|
{
|
|
idPolice = $("#idPolice_C" ).val();
|
|
|
|
prime = $("#primeAnnuelPolice_C" ).val();
|
|
|
|
sinistre = $("#sinistrePolice_C" ).val();
|
|
|
|
if (idPolice>"")
|
|
{
|
|
ajax_context_police_afficher(idPolice, prime, sinistre);
|
|
}
|
|
}
|
|
|
|
function afficher_police_d_id()
|
|
{
|
|
idPolice=$("#idPolice_d_C" ).val();
|
|
|
|
if (idPolice>"")
|
|
{
|
|
ajax_context_police_d_afficher(idPolice);
|
|
}
|
|
}
|
|
|
|
|
|
function selectionner_adherent(id,no)
|
|
{
|
|
$("#idAdherent_C" ).val(id);
|
|
$("#numeroAdherent_C" ).val(no);
|
|
}
|
|
|
|
function afficher_adherent()
|
|
{
|
|
if ($("#numeroAdherent_C" ).val()>"")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Ficheadherent/"+$("#numeroAdherent_C" ).val()+"/");
|
|
}
|
|
}
|
|
|
|
function afficher_adherent_id()
|
|
{
|
|
if ($("#idAdherent_C" ).val()>"")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Ficheadherent/"+$("#idAdherent_C" ).val()+"/");
|
|
}
|
|
}
|
|
|
|
function selectionner_beneficiaire(id,no)
|
|
{
|
|
$("#idBeneficiaire_C").val(id);
|
|
$("#numeroBeneficiaire_C" ).val(no);
|
|
}
|
|
|
|
|
|
function afficher_beneficiaire_id()
|
|
{
|
|
if ($("#idBeneficiaire_C" ).val()>"")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+$("#idBeneficiaire_C" ).val()+"/");
|
|
}
|
|
}
|
|
|
|
|
|
function afficher_adherent_assure()
|
|
{
|
|
if ($("#idAdherent_C" ).val()<=" ")
|
|
{
|
|
return;
|
|
}
|
|
window.location.assign($("#racineWeb" ).val()+"ficheadherentassure/");
|
|
}
|
|
|
|
function afficher_assure()
|
|
{
|
|
if ($("#idAdherent_C" ).val()>"")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"ficheadherentassure/"+$("#idAdherent_C" ).val()+"/");
|
|
}
|
|
}
|
|
|
|
function fermerFenetre()
|
|
{
|
|
v_msg="Etes-vous sur de vouloir quitter ?";
|
|
v_msgEng="Are you sure you want to exit?";
|
|
|
|
if(confirm_ebene(v_msg, v_msgEng))
|
|
{
|
|
ajax_deconnexion();
|
|
window.open('about:blank','_parent','');
|
|
close();
|
|
window.close();
|
|
}
|
|
}
|
|
|
|
|
|
function ChangerPass()
|
|
{
|
|
if ($("#ancmdp" ).val()<=' ')
|
|
{
|
|
v_msg="Veuillez saisir l\'ancien mot de passe!";
|
|
v_msgEng="Please enter the old password!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#ancmdp").focus();
|
|
return false;
|
|
}
|
|
|
|
if ($("#nvmdp" ).val()<=' ')
|
|
{
|
|
v_msg="Veuillez saisir un mot de passe!";
|
|
v_msgEng="Please enter a password!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#nvmdp").focus();
|
|
return false;
|
|
}
|
|
|
|
if ($("#nvmdp").val()=='0000' || $("#nvmdp").val()=='radiant')
|
|
{
|
|
v_msg="Veuillez changer de passe!";
|
|
v_msgEng="Please change password!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#nvmdp").focus();
|
|
return false;
|
|
}
|
|
|
|
longueur = $("#nvmdp").val().length;
|
|
|
|
if(longueur>0 && longueur<6)
|
|
{
|
|
v_msg="6 caractères minimum exigé!";
|
|
v_msgEng="6 characters minimum required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#nvmdp").focus();
|
|
return false;
|
|
}
|
|
|
|
if ($("#cfnvmdp" ).val()!=$("#nvmdp" ).val())
|
|
{
|
|
v_msg="Veuillez confirmer votre mot de passe!";
|
|
v_msgEng="Please confirm your password!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#nvmdp").focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function afficher_image(fichier)
|
|
{
|
|
window.open(fichier);
|
|
}
|
|
|
|
function forceDownload(fileURL, fileName)
|
|
{
|
|
alert("fileURL = "+fileURL);
|
|
alert("fileName = "+fileName);
|
|
|
|
}
|
|
|
|
function selectionner_client_pop(id,no,nom)
|
|
{
|
|
$("#nocli").val(no);
|
|
$("#nomcli").val(nom);
|
|
selectionner_client(id,no);
|
|
}
|
|
|
|
function controle_numerique(controle)
|
|
{
|
|
if(isNaN(controle.value))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
controle.value="";
|
|
controle.focus();
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function ajax_context_client(idClient)
|
|
{
|
|
donnees = 'idClient='+idClient;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextclient/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajax_context_client_afficher(idClient)
|
|
{
|
|
donnees = 'idClient='+idClient;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextclient/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
window.location.assign($("#racineWeb" ).val()+"Ficheclient/");
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajax_context_police(idPolice)
|
|
{
|
|
donnees = 'idPolice='+idPolice;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextpolice/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function ajax_context_police_afficher(idPolice, prime, sinistre)
|
|
{
|
|
donnees = 'idPolice='+idPolice+'&prime='+prime+'&sinistre='+sinistre;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextpolice/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
window.location.assign($("#racineWeb" ).val()+"Fichepolice/");
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajax_deconnexion()
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdeconnexion/"
|
|
});
|
|
}
|
|
|
|
function controle_champ_obligatoire(controle)
|
|
{
|
|
if (controle.value<=" ")
|
|
{
|
|
v_msg="Valeur exigée!";
|
|
v_msgEng="Value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
controle.focus();
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function exporter_liste_assures()
|
|
{
|
|
$('#div_liste').html('');
|
|
|
|
var div_export = $('#div_export');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxexporterlisteassure/",
|
|
type: 'POST',
|
|
success: function(data)
|
|
{
|
|
div_export.html(data);
|
|
},
|
|
error : function(resultat, statut, erreur)
|
|
{
|
|
// alert(erreur);
|
|
},
|
|
complete: function(data)
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function imprimer_liste_assures()
|
|
{
|
|
$('#div_export_assures').html('');
|
|
|
|
$("#btn_liste_assures").click();
|
|
}
|
|
|
|
function imprimer_limites()
|
|
{
|
|
$('#div_liste').html('');
|
|
|
|
var div_export = $('#div_export');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaximprimerlimite/",
|
|
type: 'POST',
|
|
success: function(data)
|
|
{
|
|
div_export.html(data);
|
|
},
|
|
error : function(resultat, statut, erreur)
|
|
{
|
|
// alert(erreur);
|
|
},
|
|
complete: function(data)
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
function pop_tableau_prestation()
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxtableauprestation/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_tableau_prestation").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#btn_pop").click();
|
|
}
|
|
});
|
|
}
|
|
|
|
function listerdossier()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
|
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdossiers/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_dossiers").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_feuille_maladie(no)
|
|
{
|
|
$("#numeroFeuilleMaladie_C" ).val(no);
|
|
}
|
|
|
|
function afficher_feuille_maladie()
|
|
{
|
|
numeroFeuilleMaladie=$("#numeroFeuilleMaladie_C" ).val();
|
|
|
|
if (numeroFeuilleMaladie>"")
|
|
{
|
|
ajax_context_feuille_maladie_afficher(numeroFeuilleMaladie);
|
|
}
|
|
}
|
|
|
|
function ajax_context_feuille_maladie_afficher(numeroFeuilleMaladie)
|
|
{
|
|
donnees = 'numeroFeuilleMaladie='+numeroFeuilleMaladie;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfeuillemaladie/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
feuillemaladie();
|
|
}
|
|
});
|
|
}
|
|
|
|
function chercher_ordonnance(numeroBonOrdonnance)
|
|
{
|
|
donnees = 'numeroBonOrdonnance='+numeroBonOrdonnance;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxchangerordonnance/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
window.location.assign($("#racineWeb" ).val()+"Pharmacien/");
|
|
}
|
|
});
|
|
}
|
|
|
|
function chercher_ordonnance_opt(numeroBonOptique)
|
|
{
|
|
if(numeroBonOptique<="0")
|
|
{
|
|
// actualiser_opticien();
|
|
reinitialiser_opticien();
|
|
return;
|
|
}
|
|
donnees = 'numeroBonOptique='+numeroBonOptique;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxchangerordonnanceopt/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
window.location.assign($("#racineWeb" ).val()+"Opticien/");
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function chercher_ordonnance_lab(numeroBonExamen)
|
|
{
|
|
donnees = 'numeroBonExamen='+numeroBonExamen;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxchangerordonnancelab/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
window.location.assign($("#racineWeb" ).val()+"Laboratoire/");
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function ctrlkeypressord(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
numeroBonOrdonnance=$("#numeroBonOrdonnance").val();
|
|
$("#numeroBonOrdonnance").blur();
|
|
}
|
|
}
|
|
|
|
function rechercherbonordonnance()
|
|
{
|
|
numeroBonOrdonnance=$("#numeroBonOrdonnance").val();
|
|
|
|
if (numeroBonOrdonnance>" ")
|
|
{
|
|
chercher_ordonnance(numeroBonOrdonnance);
|
|
}
|
|
}
|
|
|
|
|
|
function ctrlkeypressordopt(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
numeroBonOptique=$("#numeroBonOptique").val();
|
|
$("#numeroBonOptique").blur();
|
|
}
|
|
}
|
|
|
|
|
|
function ctrlkeypressordlab(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
numeroBonExamen=$("#numeroBonExamen").val();
|
|
$("#numeroBonExamen").blur();
|
|
}
|
|
}
|
|
|
|
function rechercherbonoptique()
|
|
{
|
|
numeroBonOptique=$("#numeroBonOptique").val();
|
|
|
|
if (numeroBonOptique>" ")
|
|
{
|
|
chercher_ordonnance_opt(numeroBonOptique);
|
|
}
|
|
}
|
|
|
|
function afficher_beneficiaire_id_okId()
|
|
{
|
|
idBeneficiaire=$("#idBeneficiaire_C").val();
|
|
okId=$("#okId").val();
|
|
|
|
if (idBeneficiaire>"")
|
|
{
|
|
ajax_context_beneficiaire_afficher(idBeneficiaire, okId);
|
|
}
|
|
}
|
|
|
|
function ajax_context_beneficiaire_afficher(idBeneficiaire, okId)
|
|
{
|
|
donnees = 'idBeneficiaire='+idBeneficiaire+'&okId='+okId;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextbeneficiaire/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/");
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_div_wait()
|
|
{
|
|
// $("#div_page_complet").disable();
|
|
// $("#div_wait").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
}
|
|
|
|
function effacer_div_wait()
|
|
{
|
|
$("#div_wait").html("");
|
|
}
|
|
|
|
function listerdossiercons()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
donnees_sav = donnees;
|
|
|
|
$("#reglement").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationcsoentete/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationcso/",
|
|
type : 'post',
|
|
data: donnees_sav,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_reglement").html(data);
|
|
$("#detail_reglement").css("padding-top", "0px");
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_feuille_maladie_cons()
|
|
{
|
|
numeroFeuilleMaladie=$("#numeroFeuilleMaladie_C" ).val();
|
|
|
|
if (numeroFeuilleMaladie>"")
|
|
{
|
|
ajax_context_feuille_maladie_afficher_cons(numeroFeuilleMaladie);
|
|
}
|
|
}
|
|
|
|
function ajax_context_feuille_maladie_afficher_cons(numeroFeuilleMaladie)
|
|
{
|
|
donnees = 'numeroFeuilleMaladie='+numeroFeuilleMaladie;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfeuillemaladie/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
consulter_feuillemaladie();
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_feuille_maladie_cons_ben()
|
|
{
|
|
numeroFeuilleMaladie=$("#numeroFeuilleMaladie_C" ).val();
|
|
|
|
if (numeroFeuilleMaladie>"")
|
|
{
|
|
ajax_context_feuille_maladie_afficher_cons_ben(numeroFeuilleMaladie);
|
|
}
|
|
}
|
|
|
|
function ajax_context_feuille_maladie_afficher_cons_ben(numeroFeuilleMaladie)
|
|
{
|
|
donnees = 'numeroFeuilleMaladie='+numeroFeuilleMaladie;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfeuillemaladie/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
consulter_feuillemaladie_ben();
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulter_prescription_ben()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Prescriptionconsben/");
|
|
}
|
|
|
|
function consulter_chambre_ben()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Chambreconsben/");
|
|
}
|
|
|
|
function consulter_optique_ben()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Optiqueconsben/");
|
|
}
|
|
|
|
function consulter_feuillemaladie_ben()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Feuillemaladieconsben/");
|
|
}
|
|
|
|
function consulter_prescription()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Prescriptioncons/");
|
|
}
|
|
|
|
function consulter_chambre()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Chambrecons/");
|
|
}
|
|
|
|
function consulter_optique()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Optiquecons/");
|
|
}
|
|
|
|
function consulter_feuillemaladie()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Feuillemaladiecons/");
|
|
}
|
|
|
|
function lister_factures_pha_ben()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
|
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationbenpha/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_dossiers").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function lister_factures_opt_ben()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
|
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationbenopt/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_dossiers").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function afficher_facture_cons_pha_ben(idFacture, numeroBonOrdonnance, codePrestataireLivraison)
|
|
{
|
|
if (idFacture>"")
|
|
{
|
|
donnees = 'idFacture='+idFacture+'&numeroBonOrdonnance='+numeroBonOrdonnance+'&codePrestataireLivraison='+codePrestataireLivraison;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfacturepha/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
complete: function() {
|
|
consulter_facture_pha_ben();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function afficher_facture_cons_pha(idFacture, numeroBonOrdonnance, codePrestataireLivraison)
|
|
{
|
|
if (idFacture>"")
|
|
{
|
|
donnees = 'idFacture='+idFacture+'&numeroBonOrdonnance='+numeroBonOrdonnance+'&codePrestataireLivraison='+codePrestataireLivraison;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfacturepha/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
complete: function() {
|
|
consulter_facture_pha();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function consulter_facture_pha_ben()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Pharmacienconsben/");
|
|
}
|
|
|
|
function consulter_facture_pha()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Pharmaciencons/");
|
|
}
|
|
|
|
function afficher_facture_cons_opt_ben(idFacture, numeroBonOptique, numeroOptique, codePrestataireLivraison)
|
|
{
|
|
if (idFacture>"")
|
|
{
|
|
donnees = 'idFacture='+idFacture+'&numeroBonOptique='+numeroBonOptique+'&numeroOptique='+numeroOptique;
|
|
donnees += '&codePrestataireLivraison='+codePrestataireLivraison;
|
|
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfactureopt/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
complete: function() {
|
|
consulter_facture_opt_ben();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function consulter_facture_opt_ben()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Opticienconsben/");
|
|
}
|
|
|
|
function consultations()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Consultations/");
|
|
}
|
|
|
|
|
|
function listerdossiercons_pha()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
donnees_sav = donnees;
|
|
|
|
$("#detail_reglement").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationphaentete/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationpha/",
|
|
type : 'post',
|
|
data: donnees_sav,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_reglement").html(data);
|
|
$("#detail_reglement").css("padding-top", "0px");
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function listerdossiercons_opt()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
donnees_sav = donnees;
|
|
|
|
$("#detail_reglement").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationoptentete/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationopt/",
|
|
type : 'post',
|
|
data: donnees_sav,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_reglement").html(data);
|
|
$("#detail_reglement").css("padding-top", "0px");
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_facture_cons_opt(idFacture, numeroBonOptique, numeroOptique, codePrestataireLivraison)
|
|
{
|
|
if (idFacture>"")
|
|
{
|
|
donnees = 'idFacture='+idFacture+'&numeroBonOptique='+numeroBonOptique+'&numeroOptique='+numeroOptique;
|
|
donnees += '&codePrestataireLivraison='+codePrestataireLivraison;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfactureopt/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
complete: function() {
|
|
consulter_facture_opt();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function consulter_facture_opt()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Opticiencons/");
|
|
}
|
|
|
|
function sortirdexclusionstandards()
|
|
{
|
|
idBeneficiaire = $("#idBeneficiaire_C").val();
|
|
idAdherent_C = $("#idAdherent_C" ).val();
|
|
|
|
|
|
if (idBeneficiaire>"0")
|
|
{
|
|
afficher_beneficiaire_id();
|
|
}
|
|
if (idAdherent_C>"0")
|
|
{
|
|
afficher_adherent_id();
|
|
}
|
|
else
|
|
{
|
|
recherche();
|
|
}
|
|
}
|
|
|
|
function exclusionstandards()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Exclusionstandards/");
|
|
}
|
|
|
|
|
|
function envoimaildivers(datamail)
|
|
{
|
|
// var url_mail = "http://testprestation.medicare.rw/Cron/Ajaxenvoimaildivers.php?"+datamail;
|
|
|
|
lienMail = $("#lienMail_C").val();
|
|
var url_mail = lienMail+"/Cron/Ajaxenvoimaildivers.php?"+datamail;
|
|
|
|
$.ajax({
|
|
url : url_mail,
|
|
type : "GET",
|
|
error : function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success :function(data)
|
|
{
|
|
// alert("mail envoyée avec succès");
|
|
}
|
|
});
|
|
}
|
|
|
|
function mettremailattente(datamail)
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmailattente/ajouter/",
|
|
type: 'POST',
|
|
data: datamail,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function preparesms(typeSms)
|
|
{
|
|
p_destinataires = "";
|
|
p_message = "";
|
|
|
|
if (typeSms=="demandederogation")
|
|
{
|
|
p_destinataires = $("#smsDerogation_C").val();
|
|
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
prestataire = $("#prestataire_C").val();
|
|
|
|
//p_message = prestataire;
|
|
p_message = prestataire+" ";
|
|
|
|
p_message += "\n";
|
|
p_message += "Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message += "\n";
|
|
p_message += "Demande derogation pour : "+libelleDerogation;
|
|
}
|
|
// Fin SMS demande dérogation
|
|
|
|
// ententeprealable
|
|
if (typeSms=="ententeprealable")
|
|
{
|
|
p_destinataires = $("#smsAccordPrealable_C").val();
|
|
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
prestataire = $("#prestataire_C").val();
|
|
|
|
// p_message = prestataire;
|
|
p_message = prestataire+" ";
|
|
p_message += "\n";
|
|
p_message += "Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message += "\n";
|
|
p_message += "Alerte : Accord prealable";
|
|
}
|
|
// Fin ententeprealable
|
|
|
|
// hospitalisation
|
|
if (typeSms=="hospitalisation")
|
|
{
|
|
p_destinataires = $("#smsMedecinConseil_C").val();
|
|
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
prestataire = $("#prestataire_C").val();
|
|
|
|
|
|
p_message = prestataire+" ";
|
|
p_message += "\n";
|
|
p_message += "Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message += "\n";
|
|
p_message += "No Bon Hospit. : "+numeroBon+" ";
|
|
p_message += "\n";
|
|
p_message += "Avis Hospitalisation";
|
|
}
|
|
// Fin ententeprealable
|
|
|
|
// facturer_cso
|
|
if (typeSms=="facturer_cso")
|
|
{
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
numeroBonConsultation = $("#numeroBonConsultation_C").val();
|
|
|
|
p_destinataires = $("#telephonePortableAdherent_C").val();
|
|
|
|
p_message = $("#prestataire_C").val()+" ";
|
|
p_message +="Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message +="Bon consultation No : "+numeroBonConsultation+" ";
|
|
p_message +="Consommation : "+cout+" FRW ";
|
|
p_message +="TM : "+montantTm+" FRW";
|
|
}
|
|
// Fin facturer_cso
|
|
|
|
// facturer_pha
|
|
if (typeSms=="facturer_pha")
|
|
{
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
numeroBonOrdonnance = $("#numeroBonOrdonnance_C").val();
|
|
|
|
p_destinataires = $("#telephonePortableAdherent_C").val();
|
|
|
|
p_message = $("#prestataire_C").val()+" ";
|
|
p_message +="Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message +="Ordonnance No : "+numeroBonOrdonnance+" ";
|
|
p_message +="Consommation : "+cout+" FRW ";
|
|
p_message +="TM : "+montantTm+" FRW";
|
|
}
|
|
// Fin facturer_pha
|
|
|
|
|
|
// facturer_lab
|
|
if (typeSms=="facturer_lab")
|
|
{
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
numeroBonExamen = $("#numeroBonExamen_C").val();
|
|
|
|
p_destinataires = $("#telephonePortableAdherent_C").val();
|
|
|
|
p_message = $("#prestataire_C").val()+" ";
|
|
p_message +="Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message +="Ordonnance No : "+numeroBonExamen+" ";
|
|
p_message +="Consommation : "+cout+" FRW ";
|
|
p_message +="TM : "+montantTm+" FRW";
|
|
}
|
|
// Fin facturer_pha
|
|
|
|
// facturer_opt
|
|
if (typeSms=="facturer_opt")
|
|
{
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
numeroBonOptique = $("#numeroBonOptique_C").val();
|
|
|
|
p_destinataires = $("#telephonePortableAdherent_C").val();
|
|
|
|
p_message = $("#prestataire_C").val()+" ";
|
|
p_message +="Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message +="Ordonnance No : "+numeroBonOptique+" ";
|
|
p_message +="Consommation : "+cout+" FRW ";
|
|
p_message +="TM : "+montantTm+" FRW";
|
|
}
|
|
// Fin facturer_opt
|
|
|
|
// autorisation
|
|
if (typeSms=="autorisation")
|
|
{
|
|
p_destinataires = $("#smsAccordPrealable_C").val();
|
|
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
prestataire = $("#prestataire_C").val();
|
|
|
|
// p_message = prestataire;
|
|
p_message = prestataire+" ";
|
|
p_message += "\n";
|
|
p_message += "Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message += "\n";
|
|
p_message += "Alerte : Demande Autorisation Acte Exclu";
|
|
}
|
|
// Fin autorisation
|
|
|
|
// facturer_sea
|
|
if (typeSms=="facturer_sea")
|
|
{
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
numeroBonKine = $("#numeroBonKine_C").val();
|
|
|
|
p_destinataires = $("#telephonePortableAdherent_C").val();
|
|
|
|
p_message = $("#prestataire_C").val()+" ";
|
|
p_message +="Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message +="Ordonnance No : "+numeroBonKine+" ";
|
|
p_message +="Consommation : "+cout+" FRW ";
|
|
p_message +="TM : "+montantTm+" FRW";
|
|
}
|
|
|
|
// 07/01/2018
|
|
|
|
// commandebon
|
|
if (typeSms=="commandebon")
|
|
{
|
|
p_destinataires = $("#smsGestionBon_C").val();
|
|
|
|
prestataire = $("#prestataire_C").val();
|
|
|
|
p_message = prestataire+" ";
|
|
p_message += "\n";
|
|
p_message += "Commande de bons de PEC " ;
|
|
p_message += "\n";
|
|
p_message += "Quantite : "+quantite+" ";
|
|
p_message += "\n";
|
|
p_message += "Type : "+libelleBon+".";
|
|
}
|
|
// Fin commandebon
|
|
|
|
// ententeprealablepha
|
|
if (typeSms=="ententeprealablepha")
|
|
{
|
|
p_destinataires = $("#smsAccordPrealable_C").val();
|
|
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
prestataire = $("#prestataire_C").val();
|
|
|
|
// p_message = prestataire;
|
|
p_message = prestataire+" ";
|
|
p_message += "\n";
|
|
p_message += "Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message += "\n";
|
|
p_message += "Alerte : Accord prealable";
|
|
}
|
|
// Fin ententeprealable
|
|
|
|
if (typeSms=="accident")
|
|
{
|
|
p_destinataires = $("#smsAccordPrealable_C").val();
|
|
|
|
patient = $("#beneficiaire_C").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_C" ).val();
|
|
prestataire = $("#prestataire_C").val();
|
|
|
|
// p_message = prestataire;
|
|
p_message = prestataire+" ";
|
|
p_message += "\n";
|
|
p_message += "Patient : "+patient+" ("+numeroBeneficiaire+") ";
|
|
p_message += "\n";
|
|
p_message += "Alerte : Accident de la circulation";
|
|
}
|
|
// Fin accident
|
|
|
|
envoyersms(p_destinataires, p_message);
|
|
}
|
|
|
|
function envoyersms(p_destinataires, p_message)
|
|
{
|
|
envoyer_messagerie(p_message, "0");
|
|
|
|
// p_destinataires = "250780440758";
|
|
|
|
v_msg="Envoi SMS... !";
|
|
v_msgEng="Sending SMS... !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
if(p_destinataires.length>4)
|
|
{
|
|
// Nouvelle méthide mise en attente à cause KANEZA
|
|
|
|
// donnees = "destinataires="+p_destinataires+"&message="+p_message;
|
|
|
|
// pour evoyer en boucle sur la liste des destinataires
|
|
|
|
var addr = p_destinataires.split(",");
|
|
|
|
addr.forEach(function(element)
|
|
{
|
|
p_dest = element;
|
|
|
|
donnees = "destinataires="+p_dest+"&message="+p_message;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxenvoisms/envoyersms/",
|
|
type: 'POST',
|
|
crossDomain: true,
|
|
xhrFields: {
|
|
withCredentials: true
|
|
},
|
|
data: donnees
|
|
});
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
|
|
function liste_exclusions()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Listeexclusions/");
|
|
}
|
|
|
|
function afficher_pop_recherche_medecin()
|
|
{
|
|
|
|
noOrdreMedecin = $("#noOrdreMedecin").val();
|
|
nomsearch = $("#nomsearch").val();
|
|
|
|
if(noOrdreMedecin+nomsearch<=" ")
|
|
return;
|
|
|
|
donnees = "valid=1&noOrdreMedecin="+noOrdreMedecin+"&nomsearch="+nomsearch;
|
|
|
|
$("#div_listemedecins").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistemedecins/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_listemedecins").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function afficher_pop_recherche_actes_cons()
|
|
{
|
|
libelleActeSearch = $("#libelleActeSearch").val();
|
|
|
|
if(libelleActeSearch<=" ")
|
|
{
|
|
return;
|
|
}
|
|
|
|
donnees = "valid=1&libelleActeSearch="+libelleActeSearch;
|
|
|
|
$("#div_liste_actes_cons").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisteactescons/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_liste_actes_cons").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function ctrlkeypress_medecin(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
afficher_pop_recherche_medecin();
|
|
}
|
|
}
|
|
|
|
|
|
function ctrlkeypress_actes_cons(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
afficher_pop_recherche_actes_cons();
|
|
}
|
|
}
|
|
|
|
|
|
function ctrlkeypress_actes_possibles(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
afficher_pop_recherche_actes_possibles();
|
|
}
|
|
}
|
|
|
|
function selectionner_medecin(codeMedecin, nomMedecin, noOrdreMedecin)
|
|
{
|
|
if(noOrdreMedecin+codeMedecin<=" ")
|
|
return;
|
|
|
|
v_msg="Confirmez-vous ce Médecin : "+nomMedecin+" ?";
|
|
v_msgEng="Do you confirm this Doctor : "+nomMedecin+" ?";
|
|
|
|
if(confirm_ebene(v_msg, v_msgEng))
|
|
{
|
|
$("#codeMedecin").val(codeMedecin);
|
|
$("#nomMedecin").html(nomMedecin+" ( "+noOrdreMedecin+" )");
|
|
|
|
$("#close_pop").click();
|
|
}
|
|
}
|
|
|
|
function selectionner_acte_cons(codeFamilleActe, codeActe, familleActe, libelleActe)
|
|
{
|
|
if(libelleActe<=" ")
|
|
return;
|
|
|
|
$("#codeFamilleActe").val(codeFamilleActe);
|
|
ajaxactespossibles();
|
|
|
|
v_msg="Confirmez-vous cet acte : "+libelleActe+" ?";
|
|
v_msgEng="Do you confirm this act : "+libelleActe+" ?";
|
|
|
|
if(confirm_ebene(v_msg, v_msgEng))
|
|
{
|
|
$("#codeActe").val(codeActe);
|
|
ajaxprixacte();
|
|
|
|
$("#libelleActe").val(libelleActe);
|
|
$("#close_pop_acte").click();
|
|
}
|
|
}
|
|
|
|
function afficher_pop_recherche_actes_cons()
|
|
{
|
|
libelleActeSearch = $("#libelleActeSearch").val();
|
|
|
|
if(libelleActeSearch<=" ")
|
|
{
|
|
return;
|
|
}
|
|
|
|
donnees = "valid=1&libelleActeSearch="+libelleActeSearch;
|
|
|
|
$("#div_liste_actes_cons").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisteactescons/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_liste_actes_cons").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function raffraichier_detail_prescription()
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailordonnance/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#ordonnance").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function actualiser_pharmacien()
|
|
{
|
|
// window.location.assign($("#racineWeb" ).val()+"Pharmacien/");
|
|
actualiser_saisie_pharmacien();
|
|
}
|
|
|
|
function prescription_examen()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Prescriptionexamen/");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function listerdossiercons_lab()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
donnees_sav = donnees;
|
|
|
|
$("#detail_reglement").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationlabentete/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationlab/",
|
|
type : 'post',
|
|
data: donnees_sav,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_reglement").html(data);
|
|
$("#detail_reglement").css("padding-top", "0px");
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function lister_factures_lab_ben()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
|
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationbenlab/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_dossiers").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consultationsea()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Consultationsea/");
|
|
}
|
|
|
|
function listerdossiercons_sea()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
donnees_sav = donnees;
|
|
|
|
$("#detail_reglement").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationseaentete/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconsultationsea/",
|
|
type : 'post',
|
|
data: donnees_sav,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_reglement").html(data);
|
|
$("#detail_reglement").css("padding-top", "0px");
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulter_facture_sea()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Kinecons/");
|
|
}
|
|
|
|
function lister_factures_sea_ben()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
|
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
// url: $("#racineWeb").val()+"Ajaxconsultationbenlab/",
|
|
url: $("#racineWeb").val()+"Ajaxconsultationbensea/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_dossiers").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_facture_cons_sea(idFacture, numeroBonKine, codePrestataireLivraison)
|
|
{
|
|
if (idFacture>"")
|
|
{
|
|
donnees = 'idFacture='+idFacture+'&numeroBonKine='+numeroBonKine+'&codePrestataireLivraison='+codePrestataireLivraison;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfacturesea/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
complete: function() {
|
|
consulter_facture_sea();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function afficher_facture_cons_sea_ben(idFacture, numeroBonKine, codePrestataireLivraison)
|
|
{
|
|
if (idFacture>"")
|
|
{
|
|
donnees = 'idFacture='+idFacture+'&numeroBonKine='+numeroBonKine+'&codePrestataireLivraison='+codePrestataireLivraison;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfacturesea/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
complete: function() {
|
|
consulter_facture_sea_ben();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function consulter_facture_sea_ben()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Kineconsben/");
|
|
}
|
|
|
|
function ctrlkeypress_numeroBon(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
$("#numeroBon").blur();
|
|
}
|
|
}
|
|
|
|
function limite_avant_facture_dec(idFacture)
|
|
{
|
|
donnees = 'idFacture='+idFacture;
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"AjaxPlafondavantfacturecdec/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_limites").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajaxenteterequete()
|
|
{
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeRequete='+codeRequete;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequeteentete"+codeRequete+"/";
|
|
|
|
// $("#div_ente_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
// $("#div_detail_requete").html("");
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_ente_requete").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_feuilles_maladie()
|
|
{
|
|
$('#div_export_a').html("");
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateConsultation1 = $("#dateConsultation1").val();
|
|
dateConsultation2 = $("#dateConsultation2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroBonHospitalisation1 = $("#numeroBonHospitalisation1").val();
|
|
numeroBonHospitalisation2 = $("#numeroBonHospitalisation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
// Ligne 3
|
|
codeTypePrestataire = $("#codeTypePrestataire").val();
|
|
numeroDecompte1 = $("#numeroDecompte1").val();
|
|
numeroDecompte2 = $("#numeroDecompte2").val();
|
|
codeRaisonConsultation = $("#codeRaisonConsultation").val();
|
|
hospitalisation = $("#hospitalisation").val();
|
|
numeroChambre = $("#numeroChambre").val();
|
|
chirurgie = $("#chirurgie").val();
|
|
facture = $("#facture").val();
|
|
|
|
// Ligne 4
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroBonHospitalisation1 = convertir_en_entier(numeroBonHospitalisation1);
|
|
numeroBonHospitalisation2 = convertir_en_entier(numeroBonHospitalisation2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateConsultation1=' + dateConsultation1;
|
|
donnees += '&dateConsultation2=' + dateConsultation2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroBonHospitalisation1=' + numeroBonHospitalisation1;
|
|
donnees += '&numeroBonHospitalisation2=' + numeroBonHospitalisation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
// Ligne 3
|
|
donnees += '&codeTypePrestataire=' + codeTypePrestataire;
|
|
|
|
donnees += '&numeroDecompte1=' + numeroDecompte1;
|
|
donnees += '&numeroDecompte2=' + numeroDecompte2;
|
|
|
|
donnees += '&codeRaisonConsultation=' + codeRaisonConsultation;
|
|
donnees += '&hospitalisation=' + hospitalisation;
|
|
donnees += '&numeroChambre=' + numeroChambre;
|
|
donnees += '&chirurgie=' + chirurgie;
|
|
donnees += '&facture=' + facture;
|
|
|
|
// Ligne 4
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
//$("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Result : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_feuilles_maladie_export()
|
|
{
|
|
$('#div_detail_requete').html('');
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"export/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateConsultation1 = $("#dateConsultation1").val();
|
|
dateConsultation2 = $("#dateConsultation2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroBonHospitalisation1 = $("#numeroBonHospitalisation1").val();
|
|
numeroBonHospitalisation2 = $("#numeroBonHospitalisation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
// Ligne 3
|
|
codeTypePrestataire = $("#codeTypePrestataire").val();
|
|
numeroDecompte1 = $("#numeroDecompte1").val();
|
|
numeroDecompte2 = $("#numeroDecompte2").val();
|
|
codeRaisonConsultation = $("#codeRaisonConsultation").val();
|
|
hospitalisation = $("#hospitalisation").val();
|
|
numeroChambre = $("#numeroChambre").val();
|
|
chirurgie = $("#chirurgie").val();
|
|
facture = $("#facture").val();
|
|
|
|
// Ligne 4
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroBonHospitalisation1 = convertir_en_entier(numeroBonHospitalisation1);
|
|
numeroBonHospitalisation2 = convertir_en_entier(numeroBonHospitalisation2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateConsultation1=' + dateConsultation1;
|
|
donnees += '&dateConsultation2=' + dateConsultation2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroBonHospitalisation1=' + numeroBonHospitalisation1;
|
|
donnees += '&numeroBonHospitalisation2=' + numeroBonHospitalisation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
// Ligne 3
|
|
donnees += '&codeTypePrestataire=' + codeTypePrestataire;
|
|
|
|
donnees += '&numeroDecompte1=' + numeroDecompte1;
|
|
donnees += '&numeroDecompte2=' + numeroDecompte2;
|
|
|
|
donnees += '&codeRaisonConsultation=' + codeRaisonConsultation;
|
|
donnees += '&hospitalisation=' + hospitalisation;
|
|
donnees += '&numeroChambre=' + numeroChambre;
|
|
donnees += '&chirurgie=' + chirurgie;
|
|
donnees += '&facture=' + facture;
|
|
|
|
// Ligne 4
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function selectionner_medecin_requete(codeMedecin, nomMedecin, noOrdreMedecin)
|
|
{
|
|
$("#codeMedecin").val(codeMedecin);
|
|
$("#nomMedecin").html(nomMedecin+" ( "+noOrdreMedecin+" )");
|
|
$("#close_pop").click();
|
|
}
|
|
|
|
function afficher_pop_recherche_medecin_requete()
|
|
{
|
|
|
|
noOrdreMedecin = $("#noOrdreMedecin").val();
|
|
nomsearch = $("#nomsearch").val();
|
|
|
|
if(noOrdreMedecin+nomsearch<=" ")
|
|
return;
|
|
|
|
donnees = "valid=1&noOrdreMedecin="+noOrdreMedecin+"&nomsearch="+nomsearch;
|
|
|
|
$("#div_listemedecins").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistemedecinsrequete/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_listemedecins").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function ctrlkeypress_medecin_requete(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
afficher_pop_recherche_medecin_requete();
|
|
}
|
|
}
|
|
|
|
function reinitialiser_medecin()
|
|
{
|
|
$("#codeMedecin").val("");
|
|
$("#nomMedecin").html("Rechercher Médecin...");
|
|
$("#close_pop").click();
|
|
}
|
|
|
|
function requetes_factures()
|
|
{
|
|
alert("En cours / In process!");
|
|
return;
|
|
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroBonHospitalisation1 = $("#numeroBonHospitalisation1").val();
|
|
numeroBonHospitalisation2 = $("#numeroBonHospitalisation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
// Ligne 3
|
|
codeTypePrestataire = $("#codeTypePrestataire").val();
|
|
numeroDecompte1 = $("#numeroDecompte1").val();
|
|
numeroDecompte2 = $("#numeroDecompte2").val();
|
|
hospitalisation = $("#hospitalisation").val();
|
|
numeroChambre = $("#numeroChambre").val();
|
|
chirurgie = $("#chirurgie").val();
|
|
|
|
// Ligne 4
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroBonHospitalisation1 = convertir_en_entier(numeroBonHospitalisation1);
|
|
numeroBonHospitalisation2 = convertir_en_entier(numeroBonHospitalisation2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroBonHospitalisation1=' + numeroBonHospitalisation1;
|
|
donnees += '&numeroBonHospitalisation2=' + numeroBonHospitalisation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
// Ligne 3
|
|
donnees += '&codeTypePrestataire=' + codeTypePrestataire;
|
|
|
|
donnees += '&numeroDecompte1=' + numeroDecompte1;
|
|
donnees += '&numeroDecompte2=' + numeroDecompte2;
|
|
|
|
donnees += '&hospitalisation=' + hospitalisation;
|
|
donnees += '&numeroChambre=' + numeroChambre;
|
|
donnees += '&chirurgie=' + chirurgie;
|
|
|
|
// Ligne 4
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
//$("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Result : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function requetes_factures_export()
|
|
{
|
|
alert("En cours / In process!");
|
|
return;
|
|
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"export/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroBonHospitalisation1 = $("#numeroBonHospitalisation1").val();
|
|
numeroBonHospitalisation2 = $("#numeroBonHospitalisation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
// Ligne 3
|
|
codeTypePrestataire = $("#codeTypePrestataire").val();
|
|
numeroDecompte1 = $("#numeroDecompte1").val();
|
|
numeroDecompte2 = $("#numeroDecompte2").val();
|
|
hospitalisation = $("#hospitalisation").val();
|
|
numeroChambre = $("#numeroChambre").val();
|
|
chirurgie = $("#chirurgie").val();
|
|
|
|
// Ligne 4
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroBonHospitalisation1 = convertir_en_entier(numeroBonHospitalisation1);
|
|
numeroBonHospitalisation2 = convertir_en_entier(numeroBonHospitalisation2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroBonHospitalisation1=' + numeroBonHospitalisation1;
|
|
donnees += '&numeroBonHospitalisation2=' + numeroBonHospitalisation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
// Ligne 3
|
|
donnees += '&codeTypePrestataire=' + codeTypePrestataire;
|
|
|
|
donnees += '&numeroDecompte1=' + numeroDecompte1;
|
|
donnees += '&numeroDecompte2=' + numeroDecompte2;
|
|
|
|
donnees += '&hospitalisation=' + hospitalisation;
|
|
donnees += '&numeroChambre=' + numeroChambre;
|
|
donnees += '&chirurgie=' + chirurgie;
|
|
|
|
// Ligne 4
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function requetes_prestationactes()
|
|
{
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
datePrestation1 = $("#datePrestation1").val();
|
|
datePrestation2 = $("#datePrestation2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroBonHospitalisation1 = $("#numeroBonHospitalisation1").val();
|
|
numeroBonHospitalisation2 = $("#numeroBonHospitalisation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
// Ligne 3
|
|
codeTypePrestataire = $("#codeTypePrestataire").val();
|
|
numeroFeuilleMaladie1 = $("#numeroFeuilleMaladie1").val();
|
|
numeroFeuilleMaladie2 = $("#numeroFeuilleMaladie2").val();
|
|
codeTypePrestation = $("#codeTypePrestation").val();
|
|
ententePrealable = $("#ententePrealable").val();
|
|
numeroChambre = $("#numeroChambre").val();
|
|
facture = $("#facture").val();
|
|
|
|
// Ligne 4
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 5
|
|
libelleActe = $("#libelleActe").val();
|
|
libelleFamilleActe = $("#libelleFamilleActe").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroBonHospitalisation1 = convertir_en_entier(numeroBonHospitalisation1);
|
|
numeroBonHospitalisation2 = convertir_en_entier(numeroBonHospitalisation2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&datePrestation1=' + datePrestation1;
|
|
donnees += '&datePrestation2=' + datePrestation2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroBonHospitalisation1=' + numeroBonHospitalisation1;
|
|
donnees += '&numeroBonHospitalisation2=' + numeroBonHospitalisation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
// Ligne 3
|
|
donnees += '&codeTypePrestataire=' + codeTypePrestataire;
|
|
|
|
donnees += '&numeroFeuilleMaladie1=' + numeroFeuilleMaladie1;
|
|
donnees += '&numeroFeuilleMaladie2=' + numeroFeuilleMaladie2;
|
|
|
|
donnees += '&codeTypePrestation=' + codeTypePrestation;
|
|
donnees += '&ententePrealable=' + ententePrealable;
|
|
donnees += '&numeroChambre=' + numeroChambre;
|
|
donnees += '&facture=' + facture;
|
|
|
|
// Ligne 4
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 5
|
|
donnees += '&libelleActe=' + libelleActe;
|
|
donnees += '&libelleFamilleActe=' + libelleFamilleActe;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
//$("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Result : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_prestationactes_export()
|
|
{
|
|
$('#div_detail_requete').html('');
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"export/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
datePrestation1 = $("#datePrestation1").val();
|
|
datePrestation2 = $("#datePrestation2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroBonHospitalisation1 = $("#numeroBonHospitalisation1").val();
|
|
numeroBonHospitalisation2 = $("#numeroBonHospitalisation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
// Ligne 3
|
|
codeTypePrestataire = $("#codeTypePrestataire").val();
|
|
numeroFeuilleMaladie1 = $("#numeroFeuilleMaladie1").val();
|
|
numeroFeuilleMaladie2 = $("#numeroFeuilleMaladie2").val();
|
|
codeTypePrestation = $("#codeTypePrestation").val();
|
|
ententePrealable = $("#ententePrealable").val();
|
|
numeroChambre = $("#numeroChambre").val();
|
|
facture = $("#facture").val();
|
|
|
|
// Ligne 4
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 5
|
|
libelleActe = $("#libelleActe").val();
|
|
libelleFamilleActe = $("#libelleFamilleActe").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroBonHospitalisation1 = convertir_en_entier(numeroBonHospitalisation1);
|
|
numeroBonHospitalisation2 = convertir_en_entier(numeroBonHospitalisation2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&datePrestation1=' + datePrestation1;
|
|
donnees += '&datePrestation2=' + datePrestation2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroBonHospitalisation1=' + numeroBonHospitalisation1;
|
|
donnees += '&numeroBonHospitalisation2=' + numeroBonHospitalisation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
// Ligne 3
|
|
donnees += '&codeTypePrestataire=' + codeTypePrestataire;
|
|
|
|
donnees += '&numeroFeuilleMaladie1=' + numeroFeuilleMaladie1;
|
|
donnees += '&numeroFeuilleMaladie2=' + numeroFeuilleMaladie2;
|
|
|
|
donnees += '&codeTypePrestation=' + codeTypePrestation;
|
|
donnees += '&ententePrealable=' + ententePrealable;
|
|
donnees += '&numeroChambre=' + numeroChambre;
|
|
donnees += '&facture=' + facture;
|
|
|
|
// Ligne 4
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 5
|
|
donnees += '&libelleActe=' + libelleActe;
|
|
donnees += '&libelleFamilleActe=' + libelleFamilleActe;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_pharmacie()
|
|
{
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateLivraison1 = $("#dateLivraison1").val();
|
|
dateLivraison2 = $("#dateLivraison2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroFeuilleMaladie1 = $("#numeroFeuilleMaladie1").val();
|
|
numeroFeuilleMaladie2 = $("#numeroFeuilleMaladie2").val();
|
|
|
|
codePrestatairePrescription = $("#codePrestatairePrescription").val();
|
|
|
|
// Ligne 3
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 4
|
|
libelleMedicament = $("#libelleMedicament").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroFeuilleMaladie1 = convertir_en_entier(numeroFeuilleMaladie1);
|
|
numeroFeuilleMaladie2 = convertir_en_entier(numeroFeuilleMaladie2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateLivraison1=' + dateLivraison1;
|
|
donnees += '&dateLivraison2=' + dateLivraison2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroFeuilleMaladie1=' + numeroFeuilleMaladie1;
|
|
donnees += '&numeroFeuilleMaladie2=' + numeroFeuilleMaladie2;
|
|
|
|
donnees += '&codePrestatairePrescription=' + codePrestatairePrescription;
|
|
|
|
// Ligne 3
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 4
|
|
donnees += '&libelleMedicament=' + libelleMedicament;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
//$("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Result : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_pharmacie_export()
|
|
{
|
|
$('#div_detail_requete').html('');
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"export/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateLivraison1 = $("#dateLivraison1").val();
|
|
dateLivraison2 = $("#dateLivraison2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOrdonnance1 = $("#numeroBonOrdonnance1").val();
|
|
numeroBonOrdonnance2 = $("#numeroBonOrdonnance2").val();
|
|
|
|
numeroFeuilleMaladie1 = $("#numeroFeuilleMaladie1").val();
|
|
numeroFeuilleMaladie2 = $("#numeroFeuilleMaladie2").val();
|
|
|
|
codePrestatairePrescription = $("#codePrestatairePrescription").val();
|
|
|
|
// Ligne 3
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 4
|
|
libelleMedicament = $("#libelleMedicament").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOrdonnance1 = convertir_en_entier(numeroBonOrdonnance1);
|
|
numeroBonOrdonnance2 = convertir_en_entier(numeroBonOrdonnance2);
|
|
|
|
numeroFeuilleMaladie1 = convertir_en_entier(numeroFeuilleMaladie1);
|
|
numeroFeuilleMaladie2 = convertir_en_entier(numeroFeuilleMaladie2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateLivraison1=' + dateLivraison1;
|
|
donnees += '&dateLivraison2=' + dateLivraison2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOrdonnance1=' + numeroBonOrdonnance1;
|
|
donnees += '&numeroBonOrdonnance2=' + numeroBonOrdonnance2;
|
|
|
|
donnees += '&numeroFeuilleMaladie1=' + numeroFeuilleMaladie1;
|
|
donnees += '&numeroFeuilleMaladie2=' + numeroFeuilleMaladie2;
|
|
|
|
donnees += '&codePrestatairePrescription=' + codePrestatairePrescription;
|
|
|
|
// Ligne 3
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 4
|
|
donnees += '&libelleMedicament=' + libelleMedicament;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_optique()
|
|
{
|
|
$('#div_export').html("");
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateLivraison1 = $("#dateLivraison1").val();
|
|
dateLivraison2 = $("#dateLivraison2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
numeroFeuilleMaladie1 = $("#numeroFeuilleMaladie1").val();
|
|
numeroFeuilleMaladie2 = $("#numeroFeuilleMaladie2").val();
|
|
|
|
|
|
codePrestatairePrescription = $("#codePrestatairePrescription").val();
|
|
|
|
// Ligne 3
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 4
|
|
libelleOptique = $("#libelleOptique").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroFeuilleMaladie1 = convertir_en_entier(numeroFeuilleMaladie1);
|
|
numeroFeuilleMaladie2 = convertir_en_entier(numeroFeuilleMaladie2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateLivraison1=' + dateLivraison1;
|
|
donnees += '&dateLivraison2=' + dateLivraison2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
donnees += '&numeroFeuilleMaladie1=' + numeroFeuilleMaladie1;
|
|
donnees += '&numeroFeuilleMaladie2=' + numeroFeuilleMaladie2;
|
|
|
|
donnees += '&codePrestatairePrescription=' + codePrestatairePrescription;
|
|
|
|
// Ligne 3
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 4
|
|
donnees += '&libelleOptique=' + libelleOptique;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
//$("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Result : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_optique_export()
|
|
{
|
|
$('#div_detail_requete').html('');
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"export/";
|
|
|
|
// Ligne 1
|
|
codePrestataire = $("#codePrestataire").val();
|
|
dateLivraison1 = $("#dateLivraison1").val();
|
|
dateLivraison2 = $("#dateLivraison2").val();
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
|
|
// Ligne 2
|
|
codeMedecin = $("#codeMedecin").val();
|
|
|
|
numeroBonConsultation1 = $("#numeroBonConsultation1").val();
|
|
numeroBonConsultation2 = $("#numeroBonConsultation2").val();
|
|
|
|
numeroBonOptique1 = $("#numeroBonOptique1").val();
|
|
numeroBonOptique2 = $("#numeroBonOptique2").val();
|
|
|
|
numeroFeuilleMaladie1 = $("#numeroFeuilleMaladie1").val();
|
|
numeroFeuilleMaladie2 = $("#numeroFeuilleMaladie2").val();
|
|
|
|
codePrestatairePrescription = $("#codePrestatairePrescription").val();
|
|
|
|
// Ligne 3
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 4
|
|
libelleOptique = $("#libelleOptique").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroBonConsultation1 = convertir_en_entier(numeroBonConsultation1);
|
|
numeroBonConsultation2 = convertir_en_entier(numeroBonConsultation2);
|
|
|
|
numeroBonOptique1 = convertir_en_entier(numeroBonOptique1);
|
|
numeroBonOptique2 = convertir_en_entier(numeroBonOptique2);
|
|
|
|
numeroFeuilleMaladie1 = convertir_en_entier(numeroFeuilleMaladie1);
|
|
numeroFeuilleMaladie2 = convertir_en_entier(numeroFeuilleMaladie2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += 'codePrestataire=' + codePrestataire;
|
|
donnees += '&dateLivraison1=' + dateLivraison1;
|
|
donnees += '&dateLivraison2=' + dateLivraison2;
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&codeMedecin=' + codeMedecin;
|
|
|
|
donnees += '&numeroBonConsultation1=' + numeroBonConsultation1;
|
|
donnees += '&numeroBonConsultation2=' + numeroBonConsultation2;
|
|
|
|
donnees += '&numeroBonOptique1=' + numeroBonOptique1;
|
|
donnees += '&numeroBonOptique2=' + numeroBonOptique2;
|
|
|
|
donnees += '&numeroFeuilleMaladie1=' + numeroFeuilleMaladie1;
|
|
donnees += '&numeroFeuilleMaladie2=' + numeroFeuilleMaladie2;
|
|
|
|
donnees += '&codePrestatairePrescription=' + codePrestatairePrescription;
|
|
|
|
// Ligne 3
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 4
|
|
donnees += '&libelleOptique=' + libelleOptique;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function requetes_assure()
|
|
{
|
|
$('#div_export').html("");
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"/";
|
|
|
|
// Ligne 1
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 2
|
|
numeroPolice = $("#numeroPolice").val();
|
|
codeProduit = $("#codeProduit").val();
|
|
codeEtatPolice = $("#codeEtatPolice").val();
|
|
codeLienParente = $("#codeLienParente").val();
|
|
codeEtatBeneficiaire = $("#codeEtatBeneficiaire").val();
|
|
sexe = $("#sexe").val();
|
|
|
|
// Ligne 3
|
|
numeroClient1 = $("#numeroClient1").val();
|
|
numeroClient2 = $("#numeroClient2").val();
|
|
telephonePortableAdherent = $("#telephonePortableAdherent").val();
|
|
emailAdherent = $("#emailAdherent").val();
|
|
decede = $("#decede").val();
|
|
nomClient = $("#nomClient").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroClient1 = convertir_en_entier(numeroClient1);
|
|
numeroClient2 = convertir_en_entier(numeroClient2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&numeroPolice=' + numeroPolice;
|
|
donnees += '&codeProduit=' + codeProduit;
|
|
donnees += '&codeEtatPolice=' + codeEtatPolice;
|
|
donnees += '&codeLienParente=' + codeLienParente;
|
|
donnees += '&codeEtatBeneficiaire=' + codeEtatBeneficiaire;
|
|
donnees += '&sexe=' + sexe;
|
|
|
|
// Ligne 3
|
|
donnees += '&numeroClient1=' + numeroClient1;
|
|
donnees += '&numeroClient2=' + numeroClient2;
|
|
donnees += '&telephonePortableAdherent=' + telephonePortableAdherent;
|
|
donnees += '&emailAdherent=' + emailAdherent;
|
|
donnees += '&decede=' + decede;
|
|
donnees += '&nomClient=' + nomClient;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
//$("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Result : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_assure_export()
|
|
{
|
|
$('#div_detail_requete').html('');
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeRequete=$("#codeRequete").val();
|
|
|
|
if (codeRequete<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une requête !";
|
|
v_msgEng="Please select a query!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeRequete).focus();
|
|
return;
|
|
}
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"export/";
|
|
|
|
// Ligne 1
|
|
numeroAdherent = $("#numeroAdherent").val();
|
|
numeroBeneficiaire = $("#numeroBeneficiaire").val();
|
|
adherent = $("#adherent").val();
|
|
beneficiaire = $("#beneficiaire").val();
|
|
|
|
// Ligne 2
|
|
numeroPolice = $("#numeroPolice").val();
|
|
codeProduit = $("#codeProduit").val();
|
|
codeEtatPolice = $("#codeEtatPolice").val();
|
|
codeLienParente = $("#codeLienParente").val();
|
|
codeEtatBeneficiaire = $("#codeEtatBeneficiaire").val();
|
|
sexe = $("#sexe").val();
|
|
|
|
// Ligne 3
|
|
numeroClient1 = $("#numeroClient1").val();
|
|
numeroClient2 = $("#numeroClient2").val();
|
|
telephonePortableAdherent = $("#telephonePortableAdherent").val();
|
|
emailAdherent = $("#emailAdherent").val();
|
|
decede = $("#decede").val();
|
|
nomClient = $("#nomClient").val();
|
|
|
|
// FIN champs
|
|
|
|
// DEBUT convertir_en_entier
|
|
numeroClient1 = convertir_en_entier(numeroClient1);
|
|
numeroClient2 = convertir_en_entier(numeroClient2);
|
|
// FIN convertir_en_entier
|
|
|
|
// Ligne 1
|
|
donnees += '&numeroAdherent=' + numeroAdherent;
|
|
donnees += '&numeroBeneficiaire=' + numeroBeneficiaire;
|
|
donnees += '&adherent=' + adherent;
|
|
donnees += '&beneficiaire=' + beneficiaire;
|
|
|
|
// Ligne 2
|
|
donnees += '&numeroPolice=' + numeroPolice;
|
|
donnees += '&codeProduit=' + codeProduit;
|
|
donnees += '&codeEtatPolice=' + codeEtatPolice;
|
|
donnees += '&codeLienParente=' + codeLienParente;
|
|
donnees += '&codeEtatBeneficiaire=' + codeEtatBeneficiaire;
|
|
donnees += '&sexe=' + sexe;
|
|
|
|
// Ligne 3
|
|
donnees += '&numeroClient1=' + numeroClient1;
|
|
donnees += '&numeroClient2=' + numeroClient2;
|
|
donnees += '&telephonePortableAdherent=' + telephonePortableAdherent;
|
|
donnees += '&emailAdherent=' + emailAdherent;
|
|
donnees += '&decede=' + decede;
|
|
donnees += '&nomClient=' + nomClient;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function convertir_en_entier(valeur)
|
|
{
|
|
if(isNaN(valeur))
|
|
{
|
|
valeur = "0";
|
|
}
|
|
|
|
if (valeur=="")
|
|
{
|
|
valeur="0";
|
|
}
|
|
|
|
valeur = parseInt(valeur);
|
|
|
|
return valeur;
|
|
}
|
|
|
|
function validerdecompte_prestataire()
|
|
{
|
|
regle=$("#regle").val();
|
|
regle = parseInt(regle);
|
|
|
|
if (regle==1)
|
|
{
|
|
v_msg="Déjà payé !";
|
|
v_msgEng="Already paid !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if (regle==0)
|
|
{
|
|
v_msg="Veuillez attendre la 1ère validation de RADIANT !";
|
|
v_msgEng="Please wait for the first validation of RADIANT !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if (regle==3)
|
|
{
|
|
v_msg="Déjà validé !";
|
|
v_msgEng="Already validated !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if (regle==9)
|
|
{
|
|
v_msg="En attente de paiement !";
|
|
v_msgEng="Waiting for payment !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if ($("#montantApayer").val()<="0")
|
|
{
|
|
v_msg="Rien à valider !";
|
|
v_msgEng="Nothing to validate !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if (regle==2)
|
|
{
|
|
v_msg="Confirmez-vous la validation ?";
|
|
v_msgEng="Do you confirm the validation ?";
|
|
|
|
if(confirm_ebene(v_msg, v_msgEng))
|
|
{
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdecompte/validerdecompteprestataire",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
// $("#div_detail").html("");
|
|
v_msg="Décompte validé avec succès !";
|
|
v_msgEng="validated successfully !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
$("#div_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
},
|
|
complete: function() {
|
|
// actualiser_decompte();
|
|
afficher_decompte();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
function retourdecompte()
|
|
{
|
|
idSaisieDecompte = $("#idSaisieDecompte").val();
|
|
lienPrestation_C = $("#lienPrestation_C").val();
|
|
lienProduction_C = $("#lienProduction_C").val();
|
|
|
|
v_url = lienProduction_C+"/Connexiondecompte/"+idSaisieDecompte;
|
|
|
|
if (idSaisieDecompte>"")
|
|
{
|
|
window.location.assign(v_url);
|
|
}
|
|
}
|
|
|
|
function controle_longeur_passe(controle)
|
|
{
|
|
longueur = controle.value.length;
|
|
|
|
if(longueur==0)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
if(longueur<6)
|
|
{
|
|
v_msg="6 caractères minimum exigé!";
|
|
v_msgEng="6 characters minmum required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
controle.value="";
|
|
controle.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function pop_messagerie()
|
|
{
|
|
nbMessagesNonLus = $("#timer").val();
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmessagerieliste/",
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_messagerie").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#btn_pop_messagerie").click();
|
|
}
|
|
});
|
|
}
|
|
|
|
function marquer_message_comme_lu(idMessagerie, controle)
|
|
{
|
|
donnees = 'idMessagerie='+idMessagerie;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmessagerieliste/marquercommelu/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
controle.parentElement.removeChild(controle);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function envoyer_messagerie(textMessage, idParent)
|
|
{
|
|
donnees = 'textMessage='+textMessage+"&idParent="+idParent;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmessagerie/creermessage/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function repondre_message(idMessagerie, idParent, controle)
|
|
{
|
|
donnees = 'idMessagerie='+idMessagerie+'&idParent='+idParent;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmessageriereponse/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_messagerie_reponse").html(data);
|
|
},
|
|
complete: function() {
|
|
repondu = $("#repondu").val();
|
|
if(repondu=="1")
|
|
{
|
|
v_msg="Déjà répondu!";
|
|
v_msgEng="Already answered!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
controle.parentElement.removeChild(controle);
|
|
return;
|
|
}
|
|
else
|
|
{$("#btn_pop_messagerie_reponse").click();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function gerer_messagerie()
|
|
{
|
|
window.location.assign($("#racineWeb").val()+"Messagerie/");
|
|
}
|
|
|
|
function afficher_lite_messagerie()
|
|
{
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
date1 = $("#date1").val();
|
|
date2 = $("#date2").val();
|
|
|
|
messageLu = $("#messageLu").val();
|
|
textMessage = $("#textMessage").val();
|
|
|
|
donnees += 'date1=' + date1;
|
|
donnees += '&date2=' + date2;
|
|
donnees += '&messageLu=' + messageLu;
|
|
donnees += '&textMessage=' + textMessage;
|
|
|
|
$("#div_messagerie_gestion").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistemessagerie/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
$("#div_messagerie_gestion").html(donnees_retour);
|
|
$("#nbligne").val("Lignes : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function enregistrer_repondre_message()
|
|
{
|
|
idMessagerie = $("#idMessagerie").val();
|
|
idParent = $("#idParentReponse").val();
|
|
|
|
textMessage = $("#textMessageReponse").val();
|
|
textMessage = textMessage.trim();
|
|
|
|
if (textMessage<=" ")
|
|
{
|
|
v_msg="Veuillez saisir la réponse!";
|
|
v_msgEng="Please enter the answer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#textMessageReponse").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'idMessagerie='+idMessagerie+"&idParent="+idParent+"&textMessage="+textMessage;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmessagerie/repondremessage/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
$("#btn_pop_messagerie_reponse_quit").click();
|
|
}
|
|
});
|
|
}
|
|
|
|
function historique_message(idParent)
|
|
{
|
|
donnees = 'idParent='+idParent;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmessageriehistorique/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_messagerie_historique").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#btn_pop_messagerie_historique").click();
|
|
}
|
|
});
|
|
}
|
|
|
|
// btn_pop_messagerie_new
|
|
function initiermessage()
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxmessagerienew/",
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_messagerie_new").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#btn_pop_messagerie_new").click();
|
|
}
|
|
});
|
|
}
|
|
|
|
function enregistrer_new_message()
|
|
{
|
|
textMessage = $("#textMessageNew").val();
|
|
textMessage = textMessage.trim();
|
|
|
|
if (textMessage<=" ")
|
|
{
|
|
v_msg="Veuillez saisir le message!";
|
|
v_msgEng="Please enter the message!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#textMessageNew").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'textMessage='+textMessage+"&idParent=0";
|
|
|
|
$.ajax({
|
|
// url: $("#racineWeb").val()+"Ajaxmessagerie/repondremessage/",
|
|
url: $("#racineWeb").val()+"Ajaxmessagerie/creermessage/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
$("#btn_pop_messagerie_new_quit").click();
|
|
}
|
|
});
|
|
}
|
|
|
|
function lister_ged()
|
|
{
|
|
alert("En cours / In process!");
|
|
return;
|
|
|
|
d1 = $("#d1").val();
|
|
d2 = $("#d2").val();
|
|
nomOrigine = $("#nomOrigine").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine;
|
|
|
|
$("#div_ged").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisteged/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_ged").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function ctrlkeypress_lister_ged(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
lister_ged();;
|
|
}
|
|
}
|
|
|
|
function check_ged(idGed, cheminFichier, controle)
|
|
{
|
|
donnees = "idGed="+idGed+"&cheminFichier="+cheminFichier;
|
|
|
|
// var cible_ged = $('#cible_ged');
|
|
var ctrl_btn_ged = $("#btn_ged"+idGed);
|
|
var ctrl_mess_not_found= $("#mess_not_found"+idGed);
|
|
var ctrl_check = $("#ctrl_check"+idGed);
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxged/verifierexistancefichier/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
// alert(data);
|
|
|
|
donnees_retour = data;
|
|
|
|
if(donnees_retour=="1")
|
|
{
|
|
ctrl_btn_ged.show();
|
|
}
|
|
else
|
|
{
|
|
ctrl_mess_not_found.html("Not found");
|
|
}
|
|
},
|
|
complete: function()
|
|
{
|
|
controle.style.display = 'none';
|
|
ctrl_check.show();
|
|
}
|
|
});
|
|
}
|
|
|
|
function lister_ged_adherent()
|
|
{
|
|
d1 = $("#d1").val();
|
|
d2 = $("#d2").val();
|
|
nomOrigine = $("#nomOrigine").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine;
|
|
|
|
$("#div_ged").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistegedadherent/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_ged").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function lister_ged_beneficiaire_prest()
|
|
{
|
|
d1 = $("#d1").val();
|
|
d2 = $("#d2").val();
|
|
nomOrigine = $("#nomOrigine").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine;
|
|
|
|
$("#div_ged").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistegedbeneficiaireprest/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_ged").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function lister_ged_feuille_maladie()
|
|
{
|
|
d1 = $("#d1").val();
|
|
d2 = $("#d2").val();
|
|
nomOrigine = $("#nomOrigine").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine;
|
|
|
|
$("#div_ged").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistegedfeuillemaladie/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_ged").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function pop_ged_pharmacie()
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistegedpharmacie/",
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data)
|
|
{
|
|
$("#div_ged").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#btn_pop_ged_pharmacie").click();
|
|
}
|
|
});
|
|
}
|
|
|
|
function save_enroleur(user_id)
|
|
{
|
|
if (user_id>"")
|
|
{
|
|
donnees = 'user_id='+user_id;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextbeneficiaire/saveenroleur/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
// GESTION CONFIEE
|
|
function afficher_gc_assureur(idGc)
|
|
{
|
|
if (idGc <=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un assureur !";
|
|
v_msgEng="Please select an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
window.location.assign($("#racineWeb" ).val()+"Fichegcassureur/"+idGc+"/");
|
|
}
|
|
|
|
function modifier_gc_assureur()
|
|
{
|
|
idGc = $("#idGc" ).val()
|
|
if (idGc>"0")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Modifiergcassureur/"+idGc+"/");
|
|
}
|
|
}
|
|
|
|
function retour_gc_assureur()
|
|
{
|
|
idGc = $("#idGc" ).val()
|
|
if (idGc>"0")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Fichegcassureur/"+idGc+"/");
|
|
}
|
|
}
|
|
|
|
function enregistrer_modif_gc_assureur()
|
|
{
|
|
idGc = $("#idGc").val();
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
libelle = $("#libelle").val();
|
|
email = $("#emailGcAssureur").val();
|
|
gcTauxFraisReel = $("#gcTauxFraisReel").val();
|
|
gcTauxRedressement = $("#gcTauxRedressement").val();
|
|
gcTauxTva = $("#gcTauxTva").val();
|
|
|
|
fraisCarteAfn = $("#fraisCarteAfn").val();
|
|
fraisCarteRen = $("#fraisCarteRen").val();
|
|
fraisCarteImp = $("#fraisCarteImp").val();
|
|
|
|
if(libelle<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer le nom !";
|
|
v_msgEng="Please enter the name!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#libelle").focus();
|
|
return;
|
|
}
|
|
|
|
if(gcTauxFraisReel<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux frais réel !";
|
|
v_msgEng="Please enter the rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxFraisReel").focus();
|
|
return;
|
|
}
|
|
|
|
gcTauxFraisReel=gcTauxFraisReel.replace(",",".");
|
|
if(isNaN(gcTauxFraisReel))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
|
|
$("#gcTauxFraisReel").val("0");
|
|
$("#gcTauxFraisReel").focus();
|
|
return
|
|
}
|
|
|
|
if(gcTauxRedressement<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux redressement !";
|
|
v_msgEng="Please indicate the recovery rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxRedressement").focus();
|
|
return;
|
|
}
|
|
|
|
gcTauxRedressement=gcTauxRedressement.replace(",",".");
|
|
if(isNaN(gcTauxRedressement))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxRedressement").val("0");
|
|
$("#gcTauxRedressement").focus();
|
|
return
|
|
}
|
|
|
|
if(gcTauxTva<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux de TVA !";
|
|
v_msgEng="Please indicate the VAT rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxTva").focus();
|
|
return;
|
|
}
|
|
|
|
gcTauxTva=gcTauxTva.replace(",",".");
|
|
$("#gcTauxTva").val(gcTauxTva);
|
|
if(isNaN(gcTauxTva))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxTva").val("0");
|
|
$("#gcTauxTva").focus();
|
|
return
|
|
}
|
|
|
|
if(fraisCarteAfn<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une nouvelle carte!";
|
|
v_msgEng="Please indicate the fees for a new card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteAfn").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteRen<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour un renouvellement de carte!";
|
|
v_msgEng="Please indicate the fees for a card renewal!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteRen").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteImp<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une ré-impression de carte!";
|
|
v_msgEng="Please indicate the fees for a re-printing of the card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteImp").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'idGc='+idGc+'&libelle='+libelle+'&codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&email='+email+'&gcTauxFraisReel='+gcTauxFraisReel+'&gcTauxRedressement='+gcTauxRedressement +'&gcTauxTva='+gcTauxTva;
|
|
|
|
donnees += '&fraisCarteAfn='+fraisCarteAfn+'&fraisCarteRen='+fraisCarteRen+'&fraisCarteImp='+fraisCarteImp;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcassureur/enregistrermodif/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
retour_gc_assureur();
|
|
}
|
|
});
|
|
}
|
|
|
|
function creer_gc_assureur()
|
|
{
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
libelle = $("#libelle").val();
|
|
email = $("#emailGcAssureur").val();
|
|
gcTauxFraisReel = $("#gcTauxFraisReel").val();
|
|
gcTauxRedressement = $("#gcTauxRedressement").val();
|
|
gcTauxTva = $("#gcTauxTva").val();
|
|
|
|
fraisCarteAfn = $("#fraisCarteAfn").val();
|
|
fraisCarteRen = $("#fraisCarteRen").val();
|
|
fraisCarteImp = $("#fraisCarteImp").val();
|
|
|
|
if(libelle<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer le nom !";
|
|
v_msgEng="Please enter the name!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#libelle").focus();
|
|
return;
|
|
}
|
|
|
|
if(gcTauxFraisReel<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux frais réel !";
|
|
v_msgEng="Please enter the rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxFraisReel").focus();
|
|
return;
|
|
}
|
|
|
|
gcTauxFraisReel=gcTauxFraisReel.replace(",",".");
|
|
// $("#prixAccorde").val(prixAccorde);
|
|
if(isNaN(gcTauxFraisReel))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
|
|
$("#gcTauxFraisReel").val("0");
|
|
$("#gcTauxFraisReel").focus();
|
|
return
|
|
}
|
|
|
|
if(gcTauxRedressement<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux redressement !";
|
|
v_msgEng="Please indicate the recovery rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxRedressement").focus();
|
|
return;
|
|
}
|
|
|
|
gcTauxRedressement=gcTauxRedressement.replace(",",".");
|
|
// $("#gcTauxRedressement").val(gcTauxRedressement);
|
|
if(isNaN(gcTauxRedressement))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxRedressement").val("0");
|
|
$("#gcTauxRedressement").focus();
|
|
return
|
|
}
|
|
|
|
if(gcTauxTva<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux de TVA !";
|
|
v_msgEng="Please indicate the VAT rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxTva").focus();
|
|
return;
|
|
}
|
|
|
|
gcTauxTva=gcTauxTva.replace(",",".");
|
|
// $("#gcTauxRedressement").val(gcTauxRedressement);
|
|
if(isNaN(gcTauxTva))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#gcTauxTva").val("0");
|
|
$("#gcTauxTva").focus();
|
|
return
|
|
}
|
|
|
|
if(fraisCarteAfn<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une nouvelle carte!";
|
|
v_msgEng="Please indicate the fees for a new card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteAfn").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteRen<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour un renouvellement de carte!";
|
|
v_msgEng="Please indicate the fees for a card renewal!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteRen").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteImp<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une ré-impression de carte!";
|
|
v_msgEng="Please indicate the fees for a re-printing of the card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteImp").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'libelle='+libelle+'&codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&email='+email+'&gcTauxFraisReel='+gcTauxFraisReel+'&gcTauxRedressement='+gcTauxRedressement +'&gcTauxTva='+gcTauxTva;
|
|
donnees += '&fraisCarteAfn='+fraisCarteAfn+'&fraisCarteRen='+fraisCarteRen+'&fraisCarteImp='+fraisCarteImp;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcassureur/ajouter/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
retour_liste_gc_assureur();
|
|
}
|
|
});
|
|
}
|
|
|
|
function retour_liste_gc_assureur()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Gcassureur/");
|
|
}
|
|
|
|
function afficher_gc_police(idPolice, idGcpolice)
|
|
{
|
|
if (idPolice <=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une police !";
|
|
v_msgEng="Please select a policy!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if (idGcpolice=="0")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Creergcpolice/"+idPolice+"/");
|
|
}
|
|
else
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Fichegcpolice/"+idPolice+"/");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function retour_liste_gc_police()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Gcpolices/");
|
|
}
|
|
|
|
function creer_gc_police()
|
|
{
|
|
idPolice = $("#idPolice").val();
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
tauxFraisReel = $("#tauxFraisReel").val();
|
|
tauxRedressement = $("#tauxRedressement").val();
|
|
tauxTva = $("#tauxTva").val();
|
|
|
|
fraisCarteAfn = $("#fraisCarteAfn").val();
|
|
fraisCarteRen = $("#fraisCarteRen").val();
|
|
fraisCarteImp = $("#fraisCarteImp").val();
|
|
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
if(tauxFraisReel<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux frais réel !";
|
|
v_msgEng="Please enter the rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxFraisReel").focus();
|
|
return;
|
|
}
|
|
|
|
tauxFraisReel=tauxFraisReel.replace(",",".");
|
|
if(isNaN(tauxFraisReel))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxFraisReel").val("0");
|
|
$("#tauxFraisReel").focus();
|
|
return
|
|
}
|
|
|
|
if(tauxRedressement<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux redressement !";
|
|
v_msgEng="Please indicate the recovery rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxRedressement").focus();
|
|
return;
|
|
}
|
|
|
|
tauxRedressement=tauxRedressement.replace(",",".");
|
|
if(isNaN(tauxRedressement))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxRedressement").val("0");
|
|
$("#tauxRedressement").focus();
|
|
return
|
|
}
|
|
|
|
|
|
if(tauxTva<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux de TVA !";
|
|
v_msgEng="Please indicate the VAT rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxTva").focus();
|
|
return;
|
|
}
|
|
|
|
tauxTva=tauxTva.replace(",",".");
|
|
if(isNaN(tauxTva))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxTva").val("0");
|
|
$("#tauxTva").focus();
|
|
return
|
|
}
|
|
|
|
if(fraisCarteAfn<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une nouvelle carte!";
|
|
v_msgEng="Please indicate the fees for a new card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteAfn").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteRen<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour un renouvellement de carte!";
|
|
v_msgEng="Please indicate the fees for a card renewal!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteRen").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteImp<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une ré-impression de carte!";
|
|
v_msgEng="Please indicate the fees for a re-printing of the card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteImp").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'idPolice='+idPolice+'&codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&tauxFraisReel='+tauxFraisReel+'&tauxRedressement='+tauxRedressement +'&tauxTva='+tauxTva;
|
|
donnees += '&fraisCarteAfn='+fraisCarteAfn+'&fraisCarteRen='+fraisCarteRen+'&fraisCarteImp='+fraisCarteImp;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcreergcpolice/creerpolicegc/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
retour_liste_gc_police();
|
|
}
|
|
});
|
|
}
|
|
|
|
function choisir_gc_assureur()
|
|
{
|
|
|
|
idPolice=$("#idPolice").val();
|
|
codeGcAssureur=$("#codeGcAssureur").val();
|
|
|
|
if (codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un assureur !";
|
|
v_msgEng="Please select an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
}
|
|
|
|
donnees = 'idPolice='+idPolice+'&codeGcAssureur='+codeGcAssureur;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcreergcpolice/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_gc").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function modifier_gc_police(idPolice)
|
|
{
|
|
idPolice = $("#idPolice").val();
|
|
|
|
if (idPolice <=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une police !";
|
|
v_msgEng="Please select a policy!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
}
|
|
window.location.assign($("#racineWeb" ).val()+"Modifiergcpolice/"+idPolice+"/");
|
|
}
|
|
|
|
function enregistrer_modif_gc_police()
|
|
{
|
|
idPolice = $("#idPolice").val();
|
|
|
|
tauxFraisReel = $("#tauxFraisReel").val();
|
|
tauxRedressement = $("#tauxRedressement").val();
|
|
tauxTva = $("#tauxTva").val();
|
|
|
|
fraisCarteAfn = $("#fraisCarteAfn").val();
|
|
fraisCarteRen = $("#fraisCarteRen").val();
|
|
fraisCarteImp = $("#fraisCarteImp").val();
|
|
|
|
if(tauxFraisReel<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux frais réel !";
|
|
v_msgEng="Please enter the rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxFraisReel").focus();
|
|
return;
|
|
}
|
|
|
|
tauxFraisReel=tauxFraisReel.replace(",",".");
|
|
$("#tauxFraisReel").val(tauxFraisReel);
|
|
if(isNaN(tauxFraisReel))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxFraisReel").val("0");
|
|
$("#tauxFraisReel").focus();
|
|
return
|
|
}
|
|
|
|
if(tauxRedressement<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux redressement !";
|
|
v_msgEng="Please indicate the recovery rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxRedressement").focus();
|
|
return;
|
|
}
|
|
|
|
tauxRedressement=tauxRedressement.replace(",",".");
|
|
$("#tauxRedressement").val(tauxRedressement);
|
|
if(isNaN(tauxRedressement))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxRedressement").val("0");
|
|
$("#tauxRedressement").focus();
|
|
return
|
|
}
|
|
|
|
if(tauxTva<"0")
|
|
{
|
|
v_msg="Veuillez indiquer le taux de TVA !";
|
|
v_msgEng="Please indicate the VAT rate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxTva").focus();
|
|
return;
|
|
}
|
|
|
|
tauxTva=tauxTva.replace(",",".");
|
|
$("#tauxTva").val(tauxTva);
|
|
if(isNaN(tauxTva))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#tauxTva").val("0");
|
|
$("#tauxTva").focus();
|
|
return
|
|
}
|
|
|
|
if(fraisCarteAfn<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une nouvelle carte!";
|
|
v_msgEng="Please indicate the fees for a new card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteAfn").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteRen<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour un renouvellement de carte!";
|
|
v_msgEng="Please indicate the fees for a card renewal!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteRen").focus();
|
|
return;
|
|
}
|
|
|
|
if(fraisCarteImp<"0")
|
|
{
|
|
v_msg="Veuillez indiquer les frais pour une ré-impression de carte!";
|
|
v_msgEng="Please indicate the fees for a re-printing of the card!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fraisCarteImp").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'idPolice='+idPolice;
|
|
donnees += '&tauxFraisReel='+tauxFraisReel+'&tauxRedressement='+tauxRedressement +'&tauxTva='+tauxTva;
|
|
donnees += '&fraisCarteAfn='+fraisCarteAfn+'&fraisCarteRen='+fraisCarteRen+'&fraisCarteImp='+fraisCarteImp;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcreergcpolice/modifierpolicegc/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
// alert("success : "+data);
|
|
},
|
|
complete: function() {
|
|
retour_fiche_gc_police();
|
|
}
|
|
});
|
|
}
|
|
|
|
function retour_fiche_gc_police()
|
|
{
|
|
idPolice = $("#idPolice").val();
|
|
window.location.assign($("#racineWeb" ).val()+"Fichegcpolice/"+idPolice+"/");
|
|
}
|
|
|
|
function requetes_factures_gc()
|
|
{
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees += 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequetefacturegc/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Lignes : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_factures_gc_export()
|
|
{
|
|
$('#div_export_a').html("");
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees += 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequetefacturegcexport/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_facture_gc(idFacture)
|
|
{
|
|
alert("GED en consctruction! / In process!");
|
|
|
|
if (idFacture <=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une facture !";
|
|
v_msgEng="Please select an invoice!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
window.location.assign($("#racineWeb" ).val()+"Facturegccons/"+idFacture+"/");
|
|
}
|
|
|
|
//
|
|
|
|
function affciher_factures_gc_payable()
|
|
{
|
|
alert("affciher_factures_gc_payable");
|
|
return;
|
|
|
|
$('#div_detail').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees += 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequetefacturegc/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail").html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function initier_gc_reglement()
|
|
{
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcregelement/gcinitreglement/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
afficher_new_gc_reglement();
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_new_gc_reglement()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Gcnewfacturation/");
|
|
}
|
|
|
|
|
|
|
|
function lister_reglements_gc()
|
|
{
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees = 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
$("#div_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistereglementsgc/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_detail").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function aller_a_gcfacturation()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Gcfacturation/");
|
|
}
|
|
|
|
//
|
|
|
|
function recalculer_solde_famille()
|
|
{
|
|
var div_test = $('#div_test');
|
|
div_test.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxadherent/recalculersoldefamille/",
|
|
type: 'POST',
|
|
success: function(data)
|
|
{
|
|
div_test.html("");
|
|
// div_test.html(data);
|
|
},
|
|
error : function(resultat, statut, erreur)
|
|
{
|
|
// alert(erreur);
|
|
},
|
|
complete: function(data)
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Plafondadherent/");
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajax_context_gc_reglement_id(idGcReglement)
|
|
{
|
|
donnees = 'idGcReglement='+idGcReglement;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextfeuillemaladie/getcontextbayid/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_gc_reglement_id(idGcReglement, valide)
|
|
{
|
|
donnees = 'idGcReglement='+idGcReglement;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextgcreglement/getcontextbyid/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
window.location.assign($("#racineWeb" ).val()+"Gcreglementcons/");
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_gc_reglement()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Gcreglement/");
|
|
}
|
|
|
|
|
|
function ged_decompte_gc(idFacture)
|
|
{
|
|
alert("ged_decompte_gc : "+idFacture);
|
|
return;
|
|
|
|
numeroDecompte = $("#numeroDecompte").val();
|
|
|
|
if (idFacture>"0")
|
|
{
|
|
donnees = 'numeroDecompte='+numeroDecompte+'&idFacture='+idFacture;
|
|
$.ajax({
|
|
// url: $("#racineWeb").val()+"Ajaxverifierfacture/",
|
|
url: $("#racineWeb").val()+"Ajaxgedfacturegc/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
// $("#div_verification_facture").html(data);
|
|
$("#div_ged_facture").html(data);
|
|
},
|
|
complete: function() {
|
|
// $("#btn_pop").click();
|
|
$("#btn_pop_ged").click();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function ajaxchangercompsantegcreglement()
|
|
{
|
|
$("#detail_facture").html('');
|
|
$("#div_entete_sel").html('');
|
|
|
|
codeComposante=$("#codeComposante").val();
|
|
|
|
if(codeComposante<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une composante !";
|
|
v_msgEng="Please select a component!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeComposante).focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeComposante='+codeComposante;
|
|
|
|
if(codeComposante=="SFACT")
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcsel/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
}
|
|
else
|
|
if(codeComposante=="SNFACT")
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcnonselentete/";
|
|
|
|
$("#div_entete_sel").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_entete_sel").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
else
|
|
if(codeComposante=="CFACT")
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
|
|
}
|
|
else
|
|
if(codeComposante=="CNFACT")
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcnonselentete/";
|
|
|
|
$("#div_entete_sel").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#div_entete_sel").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function recharger_factures_gc_non_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
// $("#div_entete_sel").html('');
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees = 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcnonsel/";
|
|
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function valider_selection_factures_gc()
|
|
{
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcnonsel/validerselection";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement_gc").html(data);
|
|
// $(".datepicker" ).datepicker();
|
|
},
|
|
complete: function() {
|
|
$("#detail_facture").html('');
|
|
|
|
v_msg="Validation terminée avec succès!";
|
|
v_msgEng="Validation completed successfully!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
reafficher_factures_gc_non_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_facture_gc(idFactureTemp, choix)
|
|
{
|
|
donnees = 'idFactureTemp='+idFactureTemp+'&choix='+choix;
|
|
|
|
if(choix==0)
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcnonsel/deselectionner/";
|
|
}
|
|
else
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcnonsel/selectionner/";
|
|
}
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function reafficher_factures_gc_non_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcnonsel/reafficher/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
//
|
|
function selectionner_facture_sel_gc(idFactureTemp, choix)
|
|
{
|
|
donnees = 'idFactureTemp='+idFactureTemp+'&choix='+choix;
|
|
|
|
if(choix==0)
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcsel/deselectionner/";
|
|
}
|
|
else
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcsel/selectionner/";
|
|
}
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function recharger_factures_gc_sel()
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcsel/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function reafficher_factures_gc_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcsel/reafficher/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function valider_selection_factures_gc_sel()
|
|
{
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcsel/validerselection";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement_gc").html(data);
|
|
// $(".datepicker" ).datepicker();
|
|
},
|
|
complete: function() {
|
|
$("#detail_facture").html('');
|
|
|
|
v_msg="Validation terminée avec succès!";
|
|
v_msgEng="Validation completed successfully!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
reafficher_factures_gc_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
//
|
|
|
|
function requetes_cartes_gc()
|
|
{
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees += 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequetecartegc/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $("#div_detail_requete").html(data);
|
|
},
|
|
complete: function() {
|
|
$("#div_detail_requete").html(donnees_retour);
|
|
$("#nbligne").val("Lignes : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function requetes_cartes_gc_export()
|
|
{
|
|
$('#div_export_a').html("");
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
if(codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer un assureur !";
|
|
v_msgEng="Please indicate an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees += 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
var div_export = $('#div_detail_requete');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxrequetecartegcexport/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
// $('#div_detail_requete').html("");
|
|
// $('#div_export_a').html(data);
|
|
},
|
|
complete: function() {
|
|
$('#div_detail_requete').html("");
|
|
$('#div_export_a').html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function ged_carte_gc(idGcCarte)
|
|
{
|
|
alert("GED en consctruction! / In process!");
|
|
return;
|
|
|
|
if (idGcCarte>"0")
|
|
{
|
|
donnees = 'numeroDecompte='+numeroDecompte+'&idFacture='+idFacture;
|
|
$.ajax({
|
|
// url: $("#racineWeb").val()+"Ajaxverifierfacture/",
|
|
url: $("#racineWeb").val()+"Ajaxgedfacturegc/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
// $("#div_verification_facture").html(data);
|
|
$("#div_ged_facture").html(data);
|
|
},
|
|
complete: function() {
|
|
// $("#btn_pop").click();
|
|
$("#btn_pop_ged").click();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
//
|
|
function recharger_cartes_gc_non_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
dateFacture1 = $("#dateFacture1").val();
|
|
dateFacture2 = $("#dateFacture2").val();
|
|
|
|
donnees = 'codeGcAssureur=' + codeGcAssureur;
|
|
donnees += '&dateFacture1=' + dateFacture1;
|
|
donnees += '&dateFacture2=' + dateFacture2;
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcnonsel/";
|
|
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function valider_selection_cartes_gc()
|
|
{
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcnonsel/validerselection";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement_gc").html(data);
|
|
// $(".datepicker" ).datepicker();
|
|
},
|
|
complete: function() {
|
|
$("#detail_facture").html('');
|
|
|
|
v_msg="Validation terminée avec succès!";
|
|
v_msgEng="Validation completed successfully!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
reafficher_cartes_gc_non_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function reafficher_cartes_gc_non_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcnonsel/reafficher/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_carte_gc(idCarteTemp, choix)
|
|
{
|
|
donnees = 'idCarteTemp='+idCarteTemp+'&choix='+choix;
|
|
|
|
if(choix==0)
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcnonsel/deselectionner/";
|
|
}
|
|
else
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcnonsel/selectionner/";
|
|
}
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_carte_sel_gc(idCarteTemp, choix)
|
|
{
|
|
donnees = 'idCarteTemp='+idCarteTemp+'&choix='+choix;
|
|
|
|
if(choix==0)
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/deselectionner/";
|
|
}
|
|
else
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/selectionner/";
|
|
}
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function recharger_cartes_gc_sel()
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function reafficher_cartes_gc_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/reafficher/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function valider_selection_cartes_gc_sel()
|
|
{
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/validerselection";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement_gc").html(data);
|
|
// $(".datepicker" ).datepicker();
|
|
},
|
|
complete: function() {
|
|
$("#detail_facture").html('');
|
|
|
|
v_msg="Validation terminée avec succès!";
|
|
v_msgEng="Validation completed successfully!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
reafficher_cartes_gc_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_carte_sel_gc_tout(choix)
|
|
{
|
|
donnees = 'choix='+choix;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/selectionnertout/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
reafficher_cartes_gc_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_carte_gc_tout(choix)
|
|
{
|
|
donnees = 'choix='+choix;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcnonsel/selectionnertout/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
reafficher_cartes_gc_non_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
// factures
|
|
|
|
function selectionner_facture_sel_gc_tout(choix)
|
|
{
|
|
donnees = 'choix='+choix;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcsel/selectionnertout/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
reafficher_factures_gc_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_facture_gc_tout(choix)
|
|
{
|
|
donnees = 'choix='+choix;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegcnonsel/selectionnertout/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
// alert(data);
|
|
},
|
|
complete: function() {
|
|
reafficher_factures_gc_non_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function modifier_facturation_gc()
|
|
{
|
|
observations = $("#observations").val();
|
|
|
|
if (observations<=" ")
|
|
{
|
|
v_msg="Veuillez saisir quelque chose !";
|
|
v_msgEng="Please enter something!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#observations").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'observations='+observations;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcregelement/enregistrermodificationgcreglement/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
},
|
|
complete: function() {
|
|
afficher_gc_reglement();
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulter_gc_reglement()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Gcreglementcons/");
|
|
}
|
|
|
|
function consulter_gc_reglement_id(idGcReglement)
|
|
{
|
|
donnees = 'idGcReglement='+idGcReglement;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextgcreglement/getcontextbyid/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
window.location.assign($("#racineWeb" ).val()+"Gcreglementcons/");
|
|
}
|
|
});
|
|
}
|
|
|
|
function encaisser_gc()
|
|
{
|
|
regle=$("#regle").val();
|
|
|
|
if (regle==1)
|
|
{
|
|
v_msg="Déjà encaissé !";
|
|
v_msgEng="Already cashed!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Encaissergc/");
|
|
}
|
|
|
|
|
|
function imprimer_detail_cartes_gc()
|
|
{
|
|
alert("imprimer_detail_cartes_gc");
|
|
return;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function imprimer_detail_factures_gc()
|
|
{
|
|
alert("imprimer_detail_factures_gc");
|
|
return;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxcartegcsel/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajaxchangercompsantegcreglementcons()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
codeComposante=$("#codeComposante").val();
|
|
|
|
if(codeComposante<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une compsante !";
|
|
v_msg +="\n";
|
|
alert(v_msg);
|
|
$(codeComposante).focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeComposante='+codeComposante;
|
|
|
|
if(codeComposante=="SFACT")
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfacturegccons/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
}
|
|
else
|
|
if(codeComposante=="CFACT")
|
|
{
|
|
// v_url = $("#racineWeb").val()+"Ajaxcartegccons/";
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongccons/";
|
|
|
|
// alert(v_url);
|
|
// return;
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
function imprimer_detail_facture_gc()
|
|
{
|
|
$('#div_export_b').html("");
|
|
$("#btn_pop_imprimer_detail_gc").click();
|
|
}
|
|
|
|
function charger_detail_facture_gc_pdf()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailfacturegcpdf/",
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function ctrlkeypress_liste_carte_gc(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
afficher_liste_carte_gc();
|
|
}
|
|
}
|
|
|
|
function afficher_liste_carte_gc()
|
|
{
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
|
|
numeroBeneficiaire = $("#numeroBeneficiaire_gc").val();
|
|
numeroBeneficiaire = numeroBeneficiaire.trim();
|
|
|
|
donnees = 'numeroBeneficiaire=' + numeroBeneficiaire;
|
|
|
|
$("#div_liste_carte_gc").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisterecherchecartegc/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
$("#div_liste_carte_gc").html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function init_creer_carte_gc(idBeneficiaire)
|
|
{
|
|
$("#idBeneficiaire_gc").val(idBeneficiaire);
|
|
|
|
$("#btn_new_carte").click();
|
|
}
|
|
|
|
function init_modif_carte_gc(idGcCarte, dateCarte, montantCarte, montantCarte_f, facture)
|
|
{
|
|
if (facture==1)
|
|
{
|
|
v_msg="Carte déjà facturée!";
|
|
v_msgEng="Card already invoiced!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
$("#idGcCarte_gc").val(idGcCarte);
|
|
$("#dateCarte_gc").val(dateCarte);
|
|
$("#montantCarte_gc").val(montantCarte);
|
|
$("#montantCarte_f").val(montantCarte_f);
|
|
|
|
$("#btn_modif_carte").click();
|
|
}
|
|
|
|
function charger_detail_carte_gc_pdf()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailcartegcpdf/",
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
//
|
|
function charger_detail_tous_gc_pdf()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailtousgcpdf/",
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
//
|
|
function valider_gc_rglement_ass()
|
|
{
|
|
valide0=$("#valide0").val();
|
|
valide0 = parseInt(valide0);
|
|
|
|
if (valide0!=1)
|
|
{
|
|
v_msg="1ère validation Not OK!";
|
|
v_msgEng="1rst validation Not OK!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
return;
|
|
}
|
|
|
|
valideAs=$("#valideAs").val();
|
|
valideAs = parseInt(valideAs);
|
|
|
|
if (valideAs==1)
|
|
{
|
|
v_msg="Déjà validé!";
|
|
v_msgEng="Already validated!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
return;
|
|
}
|
|
|
|
montantDu=$("#montantDu").val();
|
|
montantDu = parseInt(montantDu);
|
|
|
|
if (montantDu<=0)
|
|
{
|
|
v_msg="Rien à valider!";
|
|
v_msgEng="Nothing to validate!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
return;
|
|
}
|
|
|
|
if (valideAs==0)
|
|
{
|
|
v_msg="Confirmez-vous la Validation?";
|
|
v_msgEng="Do you confirm Validation?";
|
|
|
|
if(confirm_ebene(v_msg, v_msgEng))
|
|
{
|
|
$("#detail_reglement").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcregelement/validerdecompte/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
// $("#div_test").html(data);
|
|
v_msg="Validation effectuée avec succès!";
|
|
v_msgEng="Validated successfully!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
return;
|
|
|
|
},
|
|
complete: function() {
|
|
consulter_gc_reglement();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
//
|
|
|
|
function charger_detail_facture_gc_xls()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailfacturegcxls/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_detail_carte_gc_xls()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailcartegcxls/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function charger_detail_tous_gc_xls()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailtousgcxls/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function imprimer_recu_gc()
|
|
{
|
|
regle=$("#regle").val();
|
|
|
|
if (regle!=1)
|
|
{
|
|
v_msg="Pas encore encaissé !";
|
|
v_msgEng="Not yet cashed !";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
return;
|
|
}
|
|
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxrecugc/",
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulter_facture_pop(idFacture)
|
|
{
|
|
|
|
$("#div_facture_detail").html('');
|
|
|
|
$("#div_consulter_facture_pop").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
// alert(donnees);
|
|
// return;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconspop/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data)
|
|
{
|
|
// alert(data);
|
|
$("#div_consulter_facture_pop").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
$('#btn_pop_consulter_facture').click();
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulterfacturefeuillemaladie_pop()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconspop/feuillemaladie/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulterfactureprestationactes_pop()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconspop/prestationactes/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulterfacturemedicaments_pop()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconspop/medicaments/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulterfactureged_pop()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconspop/geds/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulterfactureged()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconsgc/geds/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function consulterfacturemedicaments()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconsgc/medicaments/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulter_une_factures()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Factureconsgc/");
|
|
}
|
|
|
|
function ctrlkeypressfacture(ev)
|
|
{
|
|
var keycode = (ev.keyCode ? ev.keyCode : ev.which);
|
|
if(keycode == '13')
|
|
{
|
|
$("#idFacture").blur();
|
|
}
|
|
}
|
|
|
|
function chercher_facture(idFacture)
|
|
{
|
|
|
|
$("#div_facture_detail").html('');
|
|
|
|
$("#div_consulter_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconsgc/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_consulter_facture").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulterfacturefeuillemaladie()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconsgc/feuillemaladie/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function consulterfactureprestationactes()
|
|
{
|
|
idFacture = $("#idFacture").val();
|
|
|
|
$("#div_facture_detail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
donnees = 'idFacture='+idFacture;
|
|
|
|
if(isNaN(idFacture))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idFacture").val("0");
|
|
$("#idFacture").focus();
|
|
return
|
|
}
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfactureconsgc/prestationactes/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
$("#div_facture_detail").html(data);
|
|
},
|
|
error: function(data) {
|
|
//alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function changer_langue()
|
|
{
|
|
codeLangue = $("#codeLangue").val();
|
|
|
|
v_msg="Confirmez-vous le changement de langue?";
|
|
v_msgEng="Do you confirm the language change?";
|
|
|
|
if(confirm_ebene(v_msg, v_msgEng))
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxchangerlangue/changerlangue/",
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData)
|
|
{
|
|
},
|
|
success: function(data)
|
|
{
|
|
},
|
|
complete: function()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Connexion/deconnecter/");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function initier_gc_frais_gestion()
|
|
{
|
|
codeGcAssureur=$("#codeGcAssureur").val();
|
|
codeExercice=$("#codeExercice").val();
|
|
codeMois=$("#codeMois").val();
|
|
|
|
if (codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un assureur !";
|
|
v_msgEng="Please select an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
if (codeExercice<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un exercice !";
|
|
v_msgEng="Please select an exercise!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
$("#codeExercice").focus();
|
|
return;
|
|
}
|
|
|
|
if (codeMois<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une période!";
|
|
v_msgEng="Please select a period!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$(codeMois).focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur+'&codeExercice='+codeExercice+'&codeMois='+codeMois;
|
|
|
|
// alert(donnees);
|
|
// return;
|
|
|
|
var div_wait = $('#div_liste_entete_gc_frais_gestion');
|
|
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcfraisgestion/initiergcfraisgestion/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data)
|
|
{
|
|
$("#inforegle").html(data);
|
|
},
|
|
complete: function()
|
|
{
|
|
regle=$("#regle").val();
|
|
|
|
if(regle==-1)
|
|
{
|
|
alert("Problème lors de l\'initialisation !");
|
|
return;
|
|
}
|
|
else if(regle==0)
|
|
{
|
|
affichergcfraisgestion();
|
|
}
|
|
else
|
|
{
|
|
consultergcfraisgestion();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function affichergcfraisgestion()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Gcfraisgestion/");
|
|
}
|
|
|
|
function re_affichergcfraisgestion()
|
|
{
|
|
$("#detail_reglement").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
affichergcfraisgestion();
|
|
}
|
|
|
|
function rechargergcfraisgestion()
|
|
{
|
|
$("#div_detail_fraisgestion").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcfraisgestion/rechargergcfraisgestion/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data)
|
|
{
|
|
$("#div_detail_fraisgestion").html('');
|
|
|
|
v_msg="Rechargement terminé avec succès!";
|
|
v_msgEng="Reloading completed successfully!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
},
|
|
complete: function()
|
|
{
|
|
afficher_detail_gcfraisgestion();
|
|
}
|
|
});
|
|
}
|
|
|
|
function consultergcfraisgestion()
|
|
{
|
|
alert("consultergcfraisgestion");
|
|
return;
|
|
|
|
var div_wait = $('#detail_reglement');
|
|
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Gcfraisgestioncons/");
|
|
}
|
|
|
|
function afficher_detail_gcfraisgestion()
|
|
{
|
|
var div_wait = $('#div_detail_fraisgestion');
|
|
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcfraisgestion/affichergcfraisgestion/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data)
|
|
{
|
|
$("#div_fraisgestion").html(data);
|
|
},
|
|
complete: function()
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
function cumul_gc_frais_gestion_par_client()
|
|
{
|
|
var div_wait = $('#div_detail_fraisgestion');
|
|
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcfraisgestion/affichergcfraisgestioncumul/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data)
|
|
{
|
|
$("#div_fraisgestion").html(data);
|
|
},
|
|
complete: function()
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
function lister_entete_gc_frais_gestion()
|
|
{
|
|
codeGcAssureur=$("#codeGcAssureur").val();
|
|
codeExercice=$("#codeExercice").val();
|
|
|
|
if (codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un assureur !";
|
|
v_msgEng="Please select an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
if (codeExercice<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un exercice !";
|
|
v_msgEng="Please select an exercise!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
$("#codeExercice").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur+'&codeExercice='+codeExercice;
|
|
|
|
// alert(donnees);
|
|
// return;
|
|
|
|
var div_wait = $('#div_liste_entete_gc_frais_gestion');
|
|
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcfraisgestion/listeentetegcfraisgestion/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data)
|
|
{
|
|
div_wait.html(data);
|
|
},
|
|
complete: function()
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
function initier_gc_frais_gestion_sel(codeMois, regle)
|
|
{
|
|
codeGcAssureur=$("#codeGcAssureur").val();
|
|
codeExercice=$("#codeExercice").val();
|
|
|
|
if (codeGcAssureur<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un assureur !";
|
|
v_msgEng="Please select an insurer!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeGcAssureur").focus();
|
|
return;
|
|
}
|
|
|
|
if (codeExercice<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un exercice !";
|
|
v_msgEng="Please select an exercise!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
$("#codeExercice").focus();
|
|
return;
|
|
}
|
|
|
|
if (codeMois<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner une période!";
|
|
v_msgEng="Please select a period!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur+'&codeExercice='+codeExercice+'&codeMois='+codeMois;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
var div_wait = $('#div_liste_entete_gc_frais_gestion');
|
|
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgcfraisgestion/initiergcfraisgestion/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data)
|
|
{
|
|
},
|
|
complete: function()
|
|
{
|
|
if(regle==0)
|
|
{
|
|
affichergcfraisgestion();
|
|
}
|
|
else
|
|
{
|
|
consultergcfraisgestion();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function recharger_frais_gestion_gc_non_sel()
|
|
{
|
|
// alert("recharger_frais_gestion_gc_non_sel");
|
|
// return;
|
|
|
|
$("#detail_facture").html('');
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
|
|
donnees = 'codeGcAssureur=' + codeGcAssureur;
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
// v_url = $("#racineWeb").val()+"Ajaxcartegcnonsel/";
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcnonsel/";
|
|
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function reafficher_frais_gestion_gc_non_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcnonsel/reafficher/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function valider_selection_frais_gestion_gc()
|
|
{
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcnonsel/validerselection";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement_gc").html(data);
|
|
// $(".datepicker" ).datepicker();
|
|
},
|
|
complete: function() {
|
|
$("#detail_facture").html('');
|
|
alert("Validation terminée avec succès!");
|
|
reafficher_frais_gestion_gc_non_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_frais_gestion_gc_tout(choix)
|
|
{
|
|
donnees = 'choix='+choix;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcnonsel/selectionnertout/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
alert(data);
|
|
},
|
|
complete: function() {
|
|
reafficher_frais_gestion_gc_non_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function selectionner_frais_gestion_gc(idCarteTemp, choix)
|
|
{
|
|
donnees = 'idCarteTemp='+idCarteTemp+'&choix='+choix;
|
|
|
|
// alert(donnees);
|
|
// return;
|
|
|
|
if(choix==0)
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcnonsel/deselectionner/";
|
|
}
|
|
else
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcnonsel/selectionner/";
|
|
}
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function recharger_frais_gestion_gc_sel()
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcsel/";
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function reafficher_frais_gestion_gc_sel()
|
|
{
|
|
$("#detail_facture").html('');
|
|
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcsel/reafficher/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#detail_facture").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
}
|
|
});
|
|
}
|
|
|
|
function valider_selection_frais_gestion_gc_sel()
|
|
{
|
|
$("#detail_facture").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span>' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcsel/validerselection";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
$("#reglement_gc").html(data);
|
|
// $(".datepicker" ).datepicker();
|
|
},
|
|
complete: function() {
|
|
$("#detail_facture").html('');
|
|
alert("Validation terminée avec succès!");
|
|
reafficher_frais_gestion_gc_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_frais_gestion_sel_gc(idCarteTemp, choix)
|
|
{
|
|
donnees = 'idCarteTemp='+idCarteTemp+'&choix='+choix;
|
|
|
|
if(choix==0)
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcsel/deselectionner/";
|
|
}
|
|
else
|
|
{
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcsel/selectionner/";
|
|
}
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
alert(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_frais_gestion_sel_gc_tout(choix)
|
|
{
|
|
donnees = 'choix='+choix;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxfraisgestiongcsel/selectionnertout/";
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data) {
|
|
},
|
|
error: function(data) {
|
|
alert(data);
|
|
},
|
|
complete: function() {
|
|
reafficher_frais_gestion_gc_sel();
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_frais_gestion_mois_pdf()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailfraisgestiongcpdf/",
|
|
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_frais_gestion_mois_xls()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdetailfraisgestiongcxls/",
|
|
type : 'post',
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_frais_gestion_souscripteur_pdf()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfraisgestiongcsouscripteurpdf/",
|
|
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_frais_gestion_souscripteur_xls()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfraisgestiongcsouscripteurxls/",
|
|
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function charger_frais_gestion_detail_pdf()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfraisgestiongcdetailpdf/",
|
|
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_frais_gestion_detail_xls()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfraisgestiongcdetailxls/",
|
|
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_synthese_gc_pdf()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
// url: $("#racineWeb").val()+"Ajaxdetailfraisgestiongcpdf/",
|
|
url: $("#racineWeb").val()+"Ajaxsynthsegcpdf/",
|
|
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function charger_synthese_gc_xls()
|
|
{
|
|
donnees_retour = "";
|
|
|
|
var div_export = $('#div_export_b');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
// url: $("#racineWeb").val()+"Ajaxdetailfraisgestiongcpdf/",
|
|
url: $("#racineWeb").val()+"Ajaxsynthsegcxls/",
|
|
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
alert("Erreur : "+errorData);
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
// alert(donnees_retour);
|
|
div_export.html(donnees_retour);
|
|
}
|
|
});
|
|
}
|
|
|
|
function controle_numerique_new(idControle, oldValue)
|
|
{
|
|
controle = document.getElementById(idControle);
|
|
|
|
// alert("oldValue => "+oldValue);
|
|
|
|
valeur = controle.value;
|
|
|
|
if(isNaN(valeur))
|
|
{
|
|
v_msg="Valeur numérique exigée!";
|
|
v_msgEng="Numeric value required!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
controle.value=oldValue;
|
|
controle.focus();
|
|
return false;
|
|
}
|
|
// alert("On est OK");
|
|
return true;
|
|
}
|
|
|
|
function supprimer_espace_string(p_mot)
|
|
{
|
|
p_mot = p_mot.trim();
|
|
p_mot = p_mot.replace(" ", "");
|
|
return p_mot;
|
|
}
|
|
|
|
function raffraichier_gabarit()
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxgabarit/",
|
|
success: function(data)
|
|
{
|
|
$("#div_ajaxgabarit").html(data);
|
|
},
|
|
error: function(errorData)
|
|
{
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function()
|
|
{
|
|
$(".datepicker" ).datepicker();
|
|
|
|
raffraichier_messagerie();
|
|
}
|
|
});
|
|
}
|
|
|
|
function connexion_cookie()
|
|
{
|
|
msgErreur=$("#msgErreur").val();
|
|
|
|
donnees = 'msgErreur='+msgErreur;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconnexioncookie/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data)
|
|
{
|
|
$("#div_ajaxconnexion").html(data);
|
|
},
|
|
error: function(errorData)
|
|
{
|
|
},
|
|
complete: function()
|
|
{
|
|
var login = document.getElementById("login").value;
|
|
if (login>" ")
|
|
{
|
|
$("#mdp").focus();
|
|
}
|
|
else
|
|
{
|
|
$("#login").focus();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function test_online()
|
|
{
|
|
if(navigator.onLine)
|
|
{
|
|
$("#test_connexion").css('background-color', 'green');
|
|
v_msg="Connexion OK!";
|
|
v_msgEng="Connection OK";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
}
|
|
else
|
|
{
|
|
$("#test_connexion").css('background-color', 'red');
|
|
v_msg="Problème de Connexion!";
|
|
v_msgEng="Connection Problem!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
}
|
|
return;
|
|
}
|
|
|
|
function raffraichier_messagerie()
|
|
{
|
|
if(navigator.onLine)
|
|
{
|
|
$("#test_connexion").css('background-color', 'green');
|
|
return;
|
|
}
|
|
else
|
|
{
|
|
$("#test_connexion").css('background-color', 'red');
|
|
return;
|
|
}
|
|
}
|
|
// 13-12-2021
|
|
$(function(){
|
|
|
|
appliquerDataTable();
|
|
dataTableSpeciale();
|
|
|
|
/*afficheFicheGarant();
|
|
|
|
if($('#nomForm').val()=="frmcarteassure"){
|
|
afficher_liste_carteassure();
|
|
}*/
|
|
});
|
|
|
|
// Applique la librairie DataBase sur les tableaux
|
|
function appliquerDataTable(){
|
|
|
|
var sc = $(window).scrollTop(),
|
|
dh = $(document).height(),
|
|
ch = $(window).height();
|
|
scrollPercent = (sc / (dh-ch)) * 100;
|
|
|
|
try{
|
|
var oTable = $('.tabliste').DataTable({
|
|
"lengthMenu": [ 50, 100, 150],
|
|
"scrollX": true,
|
|
"scrollY": "75vh",
|
|
"pagingType": "full_numbers",
|
|
"autoWidth": false,
|
|
"language": {
|
|
"lengthMenu":"Affiche _MENU_ par page",
|
|
"zeroRecords": "Désolé - Aucune donnée trouvée",
|
|
"info": "_PAGE_ sur _PAGES_ pages",
|
|
"infoEmpty": "Pas d'enregistrement",
|
|
"search": "Recherche:",
|
|
"paginate": {
|
|
"next": ">>",
|
|
"previous": "<<",
|
|
"first": "|<",
|
|
"last": ">|"
|
|
},
|
|
"infoFiltered": "(filtré de _MAX_ total enregistrements)"
|
|
}
|
|
});
|
|
/*
|
|
$(window).bind('resize', function () {
|
|
oTable.fnAdjustColumnSizing(false);
|
|
});
|
|
*/
|
|
}
|
|
catch(err){
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
function dataTableSpeciale(){
|
|
try{
|
|
$('.tabspeciale').DataTable({
|
|
"lengthMenu": [ 50, 100, 150],
|
|
"scrollX": true,
|
|
"scrollY": "75vh",
|
|
"pagingType": "full_numbers",
|
|
"autoWidth": false,
|
|
"bFilter": false,
|
|
"bLengthChange": false,
|
|
"orderMulti": true,
|
|
"language": {
|
|
"lengthMenu":"Affiche _MENU_ par page",
|
|
"zeroRecords": "Désolé - Aucune donnée trouvée",
|
|
"info": "_PAGE_ sur _PAGES_ pages",
|
|
"infoEmpty": "Pas d'enregistrement",
|
|
"search": "Recherche:",
|
|
"paginate": {
|
|
"next": ">>",
|
|
"previous": "<<",
|
|
"first": "|<",
|
|
"last": ">|"
|
|
},
|
|
"infoFiltered": "(filtré de _MAX_ total enregistrements)"
|
|
}
|
|
});
|
|
|
|
}
|
|
catch(err){
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function dataTableSpecialeMini(){
|
|
try{
|
|
$('.tabspecialemini').DataTable({
|
|
"lengthMenu": [ 50, 100, 150],
|
|
"scrollX": true,
|
|
"scrollY": "34vh",
|
|
"pagingType": "full_numbers",
|
|
"autoWidth": false,
|
|
"bFilter": false,
|
|
"bLengthChange": false,
|
|
"orderMulti": true,
|
|
"language": {
|
|
"lengthMenu":"Affiche _MENU_ par page",
|
|
"zeroRecords": "Désolé - Aucune donnée trouvée",
|
|
"info": "_PAGE_ sur _PAGES_ pages",
|
|
"infoEmpty": "Pas d'enregistrement",
|
|
"search": "Recherche:",
|
|
"paginate": {
|
|
"next": ">>",
|
|
"previous": "<<",
|
|
"first": "|<",
|
|
"last": ">|"
|
|
},
|
|
"infoFiltered": "(filtré de _MAX_ total enregistrements)"
|
|
}
|
|
});
|
|
|
|
}
|
|
catch(err){
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function afficheFicheGarant()
|
|
{
|
|
masquer = $("#masquer").val();
|
|
|
|
if(masquer=="1"){
|
|
$('#div_garantie').hide();
|
|
$("#masquer").val("0");
|
|
$("#span_libelle").text("(Afficher)");
|
|
|
|
}else{
|
|
|
|
$('#div_garantie').show();
|
|
$("#masquer").val("1");
|
|
$("#span_libelle").text("(Masquer)");
|
|
}
|
|
}
|
|
|
|
function afficher_adherents_police()
|
|
{
|
|
$("#div_liste_adherent").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisteadherent/",
|
|
type : 'post',
|
|
// data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_liste_adherent").html(data);
|
|
appliquerDataTable();
|
|
}
|
|
});
|
|
}
|
|
|
|
// 15/12/2021
|
|
|
|
function afficher_liste_carteassure()
|
|
{
|
|
donnees = "";
|
|
donnees_retour = "";
|
|
|
|
|
|
|
|
|
|
codeLienParente = $("#codeLienParente").val();
|
|
codeEtatCarte = $("#codeEtatCarte").val();
|
|
|
|
debut = $("#debut").val();
|
|
fin = $("#fin").val();
|
|
|
|
donnees += 'codeLienParente=' + codeLienParente;
|
|
donnees += '&codeEtatCarte=' + codeEtatCarte;
|
|
|
|
donnees += '&debut=' + debut;
|
|
donnees += '&fin=' + fin;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
$("#div_liste_prestataire").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistecarteassure/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
donnees_retour = data;
|
|
},
|
|
complete: function() {
|
|
$("#div_liste_carte").html(donnees_retour);
|
|
appliquerDataTable();
|
|
$("#nbligne").val("Lignes : "+$("#nbligne_info").val());
|
|
}
|
|
});
|
|
}
|
|
|
|
function imprimer_liste_carteassure()
|
|
{
|
|
nbligne_info = $("#nbligne_info").val();
|
|
donnees = "";
|
|
|
|
|
|
|
|
|
|
codeLienParente = $("#codeLienParente").val();
|
|
codeEtatCarte = $("#codeEtatCarte").val();
|
|
|
|
debut = $("#debut").val();
|
|
fin = $("#fin").val();
|
|
|
|
donnees += 'codeLienParente=' + codeLienParente;
|
|
donnees += '&codeEtatCarte=' + codeEtatCarte;
|
|
|
|
donnees += '&debut=' + debut;
|
|
donnees += '&fin=' + fin;
|
|
|
|
if (nbligne_info>"0")
|
|
{
|
|
var div_wait = $('#div_wait');
|
|
div_wait.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistecarteassure/imprimerlistecarteassure",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data)
|
|
{
|
|
div_wait.html(data);
|
|
},
|
|
error : function(resultat, statut, erreur)
|
|
{
|
|
},
|
|
complete: function(data)
|
|
{
|
|
}
|
|
});
|
|
}else{
|
|
v_msg="Rien à imprimer!";
|
|
v_msgEng="Nothing to print!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
}
|
|
|
|
function imprimer_liste_assures_date()
|
|
{
|
|
dateAnalyse = $("#dateAnalyse").val();
|
|
|
|
if (dateAnalyse<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer une date!";
|
|
v_msgEng="Please enter a date!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#dateAnalyse").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'dateAnalyse='+dateAnalyse;
|
|
|
|
var div_export = $('#div_export_assures');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaximprimerlisteassure/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data)
|
|
{
|
|
div_export.html(data);
|
|
},
|
|
error : function(resultat, statut, erreur)
|
|
{
|
|
},
|
|
complete: function(data)
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
function imprimer_liste_assures_periode()
|
|
{
|
|
debut = $("#debut").val();
|
|
fin = $("#fin").val();
|
|
|
|
if (debut<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer une date de début!";
|
|
v_msgEng="Please enter a start date!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#debut").focus();
|
|
return;
|
|
}
|
|
|
|
if (fin<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer une date de fin!";
|
|
v_msgEng="Please enter a end date!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#fin").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'debut='+debut+'&fin='+fin;
|
|
|
|
var div_export = $('#div_export_assures');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaximprimerlisteassureperiode/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data)
|
|
{
|
|
div_export.html(data);
|
|
},
|
|
error : function(resultat, statut, erreur)
|
|
{
|
|
},
|
|
complete: function(data)
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
function imprimer_liste_assures_retrait()
|
|
{
|
|
debutSortie = $("#debutSortie").val();
|
|
finSortie = $("#finSortie").val();
|
|
|
|
if (debutSortie<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer une date de début!";
|
|
v_msgEng="Please enter a start date!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#debutSortie").focus();
|
|
return;
|
|
}
|
|
|
|
if (finSortie<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer une date de fin!";
|
|
v_msgEng="Please enter a end date!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#finSortie").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'debutSortie='+debutSortie+'&finSortie='+finSortie;
|
|
|
|
var div_export = $('#div_export_assures');
|
|
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaximprimerlisteassureretrait/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data)
|
|
{
|
|
div_export.html(data);
|
|
},
|
|
error : function(resultat, statut, erreur)
|
|
{
|
|
},
|
|
complete: function(data)
|
|
{
|
|
}
|
|
});
|
|
}
|
|
|
|
function plafond_adherent()
|
|
{
|
|
if ($("#idAdherent_C" ).val()>"")
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Plafondadherent/");
|
|
}
|
|
}
|
|
|
|
function rapport_sp_adherent()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Spadherent/");
|
|
}
|
|
|
|
function factures_famille_2()
|
|
{
|
|
window.location.assign($("#racineWeb" ).val()+"Facturesfamilleadh/");
|
|
}
|
|
|
|
function listerfacturefamille()
|
|
{
|
|
d1=$("#d1").val();
|
|
d2=$("#d2").val();
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2;
|
|
|
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfacturesfamille/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_dossiers").html(data);
|
|
appliquerDataTable();
|
|
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
|
|
function afficher_Fichebeneficiaire()
|
|
{
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Adherentbeneficiaire/");
|
|
}
|
|
|
|
function afficher_InfoAdherent()
|
|
{
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Infoadherent/");
|
|
}
|
|
|
|
function afficher_ReseauSoins()
|
|
{
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"ReseauSoins/");
|
|
}
|
|
|
|
function detail_souscripteur()
|
|
{
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Detailsouscripteur/");
|
|
}
|
|
|
|
|
|
function voir_polices(idPolice, idGcpolice)
|
|
{
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Voirpolices/");
|
|
}
|
|
|
|
function voir_detail_adherent()
|
|
{
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Voirdetailadherents/");
|
|
}
|
|
|
|
function info_police()
|
|
{
|
|
|
|
window.location.assign($("#racineWeb" ).val()+"Infopolice/");
|
|
}
|
|
|
|
|
|
function afficher_adherent() {
|
|
debugger;
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
idPolice = $("#idPolice").val();
|
|
nomAdherent = $("#nomAdherent").val();
|
|
etatAdherent = $("#etatAdherent").val();
|
|
|
|
if(idPolice==""){
|
|
idPolice = "0";
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&idPolice='+ idPolice;
|
|
donnees += '&nomAdherent='+ nomAdherent;
|
|
donnees += '&etatAdherent='+ etatAdherent;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_adherents").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisteadherents/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_adherents").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function lister_dossiers_classiques(filtre)
|
|
{
|
|
var libelle = "";
|
|
|
|
d1 = $("#d1").val();
|
|
d2 = $("#d2").val();
|
|
|
|
codeLangue = $("#codeLangue").val();
|
|
|
|
|
|
if(filtre=="0"){
|
|
libelle = "Filtre tous";
|
|
}else if(filtre=="1"){
|
|
libelle = "Filtre assurés";
|
|
}else if(filtre=="2"){
|
|
libelle = "Filtre polices";
|
|
}
|
|
|
|
if(codeLangue=="en_US")
|
|
{
|
|
if(filtre=="0"){
|
|
libelle = "Filter all";
|
|
}else if(filtre=="1"){
|
|
libelle = "Filter insured";
|
|
}else if(filtre=="2"){
|
|
libelle = "Insurance policy filter";
|
|
}
|
|
|
|
}
|
|
|
|
$("#libelleFiltre").val(libelle);
|
|
$("#filtre").val(filtre);
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2+'&filtre='+filtre;
|
|
|
|
$("#div_export_a").html('');
|
|
|
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfacturesclassiques/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_dossiers").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
function lister_dossiers_classiques_export()
|
|
{
|
|
//alert("lister_dossiers_classiques_export");
|
|
//return;
|
|
|
|
d1 = $("#d1").val();
|
|
d2 = $("#d2").val();
|
|
|
|
filtre = $("#filtre").val();
|
|
|
|
nbLigne = $("#nbLigne").val();
|
|
|
|
if(nbLigne==undefined || nbLigne=="0"){
|
|
v_msg="Aucune données à exporter!";
|
|
v_msgEng="No data to export!";
|
|
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
donnees = 'd1='+d1+'&d2='+d2+'&filtre='+filtre;
|
|
|
|
$("#div_export_a").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfacturesclassiquesexport/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_export_a").html(data);
|
|
},
|
|
complete: function() {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function consulter_dossier_classique(idDossierClassique)
|
|
{
|
|
donnees = 'idDossierClassique='+idDossierClassique;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxdossierclassique/getcontextbyid/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
complete: function() {
|
|
afficher_dossier_classique();
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
function ajax_police_context()
|
|
{
|
|
idPolice = $("#idPolice").val();
|
|
|
|
if (idPolice>"0")
|
|
{
|
|
ajax_context_police(idPolice);
|
|
creer_dossier_classique_police();
|
|
}else{
|
|
v_msg="Veuillez sélectionner une police pour le remboursement direct!";
|
|
v_msgEng="Please select a policy for direct reimbursement!";
|
|
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#idPolice").focus();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function afficher_quittances_police_periode()
|
|
{
|
|
idPolice = $("#idPolice_C" ).val();
|
|
debut = $("#debut" ).val();
|
|
fin = $("#fin" ).val();
|
|
|
|
donnees = 'idPolice='+idPolice;
|
|
donnees += '&debut='+debut;
|
|
donnees += '&fin='+fin;
|
|
|
|
// alert("donnees => "+donnees);
|
|
// return;
|
|
|
|
$("#div_quittancepolice").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
if (numeroPolice>" ")
|
|
{
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfichepolice/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_quittancepolice").html(data);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function afficher_Police() {
|
|
debugger;
|
|
|
|
nomGarant = $("#nomGarant").val();
|
|
idSouscripteur = $("#idSouscripteur").val();
|
|
numeroPolice = $("#numeroPolice").val();
|
|
codeEtatPolice = $("#codeEtatPolice").val();
|
|
|
|
|
|
|
|
if(idSouscripteur==""){
|
|
idSouscripteur = "0";
|
|
}
|
|
|
|
donnees = 'nomGarant='+nomGarant;
|
|
donnees += '&idSouscripteur='+ idSouscripteur;
|
|
donnees += '&numeroPolice='+ numeroPolice;
|
|
donnees += '&codeEtatPolice='+ codeEtatPolice;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_Police").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistepolice/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_Police").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function afficher_prestation() {
|
|
debugger;
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
idPolice = $("#idPolice").val();
|
|
nomAdherent = $("#nomAdherent").val();
|
|
etatAdherent = $("#etatAdherent").val();
|
|
|
|
if(idPolice==""){
|
|
idPolice = "0";
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&idPolice='+ idPolice;
|
|
donnees += '&nomAdherent='+ nomAdherent;
|
|
donnees += '&etatAdherent='+ etatAdherent;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_Prestation").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisteprestation/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_Prestation").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function afficher_Beneficiaires() {
|
|
debugger;
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
idPolice = $("#idPolice").val();
|
|
nomBeneficiaire = $("#nomBeneficiaire").val();
|
|
etatBeneficiaire = $("#etatBeneficiaire").val();
|
|
|
|
if(idPolice==""){
|
|
idPolice = "0";
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&idPolice='+ idPolice;
|
|
donnees += '&nomBeneficiaire='+ nomBeneficiaire;
|
|
donnees += '&etatBeneficiaire='+ etatBeneficiaire;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_Beneficiaires").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"AjaxlisteBeneficiaires/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_Beneficiaires").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function filtre_college_police()
|
|
{
|
|
//codeGcAssureur = $("#codeGcAssureur").val();
|
|
debugger;
|
|
|
|
idPolice = $("#idPolice").val();
|
|
|
|
if(idPolice <= " "){
|
|
v_msg="Veuillez selectionner une police!";
|
|
v_msgEng="Please select a policy!";
|
|
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
donnees = 'idPolice='+idPolice;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxfiltrecollegepolice/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_college").html(data);
|
|
//$("#idPolice").selectpicker();
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
function afficher_Rapportbeneficiaire() {
|
|
debugger;
|
|
|
|
polices = $("#polices").val();
|
|
college = $("#college").val();
|
|
etatBeneficiaire = $("#etatBeneficiaire").val();
|
|
|
|
if(polices==""){
|
|
polices = "0";
|
|
}
|
|
|
|
donnees = 'polices='+polices;
|
|
donnees += '&college='+ college;
|
|
donnees += '&etatBeneficiaire='+ etatBeneficiaire;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_Rapportbeneficiaire").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"AjaxlisteRapportbeneficiaire/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_Rapportbeneficiaire").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function afficher_prestation() {
|
|
debugger;
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
idPolice = $("#idPolice").val();
|
|
nomAdherent = $("#nomAdherent").val();
|
|
etatAdherent = $("#etatAdherent").val();
|
|
|
|
if(idPolice==""){
|
|
idPolice = "0";
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&idPolice='+ idPolice;
|
|
donnees += '&nomAdherent='+ nomAdherent;
|
|
donnees += '&etatAdherent='+ etatAdherent;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_Prestation").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlisteprestation/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_Prestation").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function afficher_Effectifcumule() {
|
|
debugger;
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
Souscripteur = $("#Souscripteur").val();
|
|
nomBeneficiaire = $("#nomBeneficiaire").val();
|
|
etatBeneficiaire = $("#etatBeneficiaire").val();
|
|
|
|
if(Souscripteur==""){
|
|
Souscripteur = "0";
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&Souscripteur='+ Souscripteur;
|
|
donnees += '&nomBeneficiaire='+ nomBeneficiaire;
|
|
donnees += '&etatBeneficiaire='+ etatBeneficiaire;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_Effectifcumule").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"AjaxlisteEffectifcumule/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_Effectifcumule").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
function afficher_ListeReseauSoins() {
|
|
debugger;
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
idPolice = $("#idPolice").val();
|
|
nomAdherent = $("#nomAdherent").val();
|
|
etatAdherent = $("#etatAdherent").val();
|
|
|
|
if(idPolice==""){
|
|
idPolice = "0";
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&idPolice='+ idPolice;
|
|
donnees += '&nomAdherent='+ nomAdherent;
|
|
donnees += '&etatAdherent='+ etatAdherent;
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_reseausoins").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistereseausoins/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_reseausoins").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajaxentetestat()
|
|
{
|
|
codeEtat=$("#codeEtat").val();
|
|
|
|
if (codeEtat<=" ")
|
|
{
|
|
v_msg="Veuillez sélectionner un état!";
|
|
v_msgEng="Please select a state!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeEtat").focus();
|
|
return;
|
|
}
|
|
|
|
donnees = 'codeEtat='+codeEtat;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxetatentete"+codeEtat+"/";
|
|
|
|
$("#div_ente_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_ente_requete").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
$("#codeGcAssureur" ).selectpicker();
|
|
$("#idPolice" ).selectpicker();
|
|
filtrespolicegarant();
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function ajaxentetestatmaladiepolicemontantreferent()
|
|
{
|
|
debugger;
|
|
var td0 = $("#debutExercice").datepicker("getDate");
|
|
var td1 = $("#dateAnalyse").datepicker("getDate");
|
|
var td2 = $("#debutStat").datepicker("getDate");
|
|
var td3 = $("#finStat").datepicker("getDate");
|
|
|
|
|
|
dt0=Math.round(Date.parse(td0)/(1000*3600*24)); // debutExercice
|
|
dt1=Math.round(Date.parse(td1)/(1000*3600*24)); // dateAnalyse
|
|
dt2=Math.round(Date.parse(td2)/(1000*3600*24)); // debutStat
|
|
dt3=Math.round(Date.parse(td3)/(1000*3600*24)); // finStat
|
|
|
|
if (dt2<dt0 || dt2>dt1)
|
|
{
|
|
v_msg="Période a extraire hors de la période d\'analyse!";
|
|
v_msgEng="Period to extract out of the analysis period!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if (dt3<dt0)
|
|
{
|
|
v_msg="Période a extraire hors de la période d\'analyse!";
|
|
v_msgEng="Period to extract out of the analysis period!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
if (dt3<dt2)
|
|
{
|
|
v_msg="Revoir les bornes de la période!";
|
|
v_msgEng="Review the boundaries of the period!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
return;
|
|
}
|
|
|
|
debutStat = $("#debutStat").val();
|
|
finStat = $("#finStat").val();
|
|
|
|
idPolice = $("#idPolice").val();
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
|
|
|
|
$('#div_export_a').html("");
|
|
|
|
donnees = 'debutStat='+debutStat+"&finStat="+finStat+"&idPolice="+idPolice+"&codeGcAssureur="+codeGcAssureur;
|
|
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxetatentetestatsmaladiepolice/calculermontantreferent/";
|
|
|
|
$("#div_ente_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_ente_requete").html(data);
|
|
$(".datepicker" ).datepicker();
|
|
$("#codeGcAssureur" ).selectpicker();
|
|
$("#idPolice" ).selectpicker();
|
|
filtrespolicegarant();
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectionner_adherent_numero(no)
|
|
{
|
|
donnees = 'numeroAdherent='+no;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextadherent/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function selectionner_adherent(id)
|
|
{
|
|
donnees = 'idAdherent='+id;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextadherent/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function afficher_cartebeneficiaire() {
|
|
debugger;
|
|
|
|
codeGcAssureur = $("#codeGcAssureur").val();
|
|
nomAdherent = $("#nomAdherent").val();
|
|
|
|
if(nomAdherent==""){
|
|
nomAdherent = "0";
|
|
}
|
|
|
|
donnees = 'codeGcAssureur='+codeGcAssureur;
|
|
donnees += '&nomAdherent='+ nomAdherent;
|
|
|
|
|
|
//alert(donnees);
|
|
//return;
|
|
|
|
$("#div_cartebeneficiaire").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxlistecartebeneficiaire/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
},
|
|
success: function(data) {
|
|
$("#div_cartebeneficiaire").html(data);
|
|
},
|
|
complete: function() {
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function changer_entite_portail()
|
|
{
|
|
codeSociete=$("#codeSociete").val();
|
|
|
|
if (codeSociete<=" ")
|
|
{
|
|
v_msg="Veuillez indiquer une entité!";
|
|
v_msgEng="Please indicate an entity!";
|
|
alert_ebene(v_msg, v_msgEng);
|
|
|
|
$("#codeSociete").focus();
|
|
return;
|
|
}
|
|
|
|
//alert(codeSociete);
|
|
//return;
|
|
|
|
donnees = 'codeSociete='+codeSociete;
|
|
|
|
v_url = $("#racineWeb").val()+"Ajaxchangerentiteportail/";
|
|
|
|
$("#div_login_portail").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
|
|
|
$.ajax({
|
|
url: v_url,
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert('success :' + errorData);
|
|
$("#div_login_portail").html(errorData);
|
|
},
|
|
success: function(data) {
|
|
// alert('success :' + data);
|
|
$("#div_login_portail").html(data);
|
|
societeExiste = $("#societeExiste").val();
|
|
entiteActive = $("#entiteActive").val();
|
|
|
|
if(societeExiste=="1" && entiteActive=="1")
|
|
{
|
|
$("#btn_connexion").enable();
|
|
$("#login").focus();
|
|
|
|
}else
|
|
{
|
|
$("#btn_connexion").disable();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function changer_langue_connexion()
|
|
{
|
|
codeLangue = $("#langue").val();
|
|
donnees = 'codeLangue='+codeLangue;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconnexioncookie/changerlangue/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData)
|
|
{
|
|
},
|
|
success: function(data)
|
|
{
|
|
$("#div_detail_connexion").html(data);
|
|
},
|
|
complete: function()
|
|
{
|
|
$(".selectpicker").selectpicker();
|
|
}
|
|
});
|
|
|
|
}
|