188 |
async: false |
async: false |
189 |
}); |
}); |
190 |
} |
} |
191 |
|
//Fonction de redirection pour le widget de recherche de dossier |
192 |
|
function widget_recherche_dossier(data,nbRes){ |
193 |
|
/*$('#msg').show(); |
194 |
|
$('#msg').html(msg_loading);*/ |
195 |
|
|
196 |
|
// S'il n'y a qu'un seul résultat, afficher un résumé |
197 |
|
if ( nbRes == 1 ){ |
198 |
|
|
199 |
|
window.location = "../scr/form.php?obj=dossier_instruction&action=3&" + |
200 |
|
"idx=" + data + "&premier=0&advs_id=&recherche=&tricol=&" + |
201 |
|
"selectioncol=&valide=&retour=tab"; |
202 |
|
} |
203 |
|
// S'il y a une liste de dossier, redirection vers le tableau |
204 |
|
else { |
205 |
|
|
206 |
|
window.location = "../scr/tab.php?obj=recherche_direct&selectioncol=0&recherche=" + data; |
207 |
|
} |
208 |
|
} |
209 |
// |
// |
210 |
function dossierdepot() |
function dossierdepot() |
211 |
{ |
{ |
427 |
} else { |
} else { |
428 |
url += '&action=1&idx='+id; |
url += '&action=1&idx='+id; |
429 |
} |
} |
430 |
popupIt(obj, url, 780, 'auto', |
popupIt(obj, url, 860, 'auto', |
431 |
replaceDemandeur, {'type':type,'id': id, 'id_css':id_css}); |
replaceDemandeur, {'type':type,'id': id, 'id_css':id_css}); |
432 |
affichageBoutonsDemandeurs(); |
affichageBoutonsDemandeurs(); |
433 |
} |
} |
526 |
$("#formulaire").on("click","#add_petitionnaire_principal", function() { |
$("#formulaire").on("click","#add_petitionnaire_principal", function() { |
527 |
popupIt('petitionnaire', |
popupIt('petitionnaire', |
528 |
'../scr/sousform.php?obj=petitionnaire&action=0'+ |
'../scr/sousform.php?obj=petitionnaire&action=0'+ |
529 |
'&retourformulaire=demande&principal=true', 780, 'auto', |
'&retourformulaire=demande&principal=true', 860, 'auto', |
530 |
getDemandeurId, 'petitionnaire_principal'); |
getDemandeurId, 'petitionnaire_principal'); |
531 |
}); |
}); |
532 |
// Bind de la fonction permettant l'ajout du délégataire |
// Bind de la fonction permettant l'ajout du délégataire |
533 |
$("#formulaire").on("click","#add_delegataire", function(event) { |
$("#formulaire").on("click","#add_delegataire", function(event) { |
534 |
popupIt('delegataire', |
popupIt('delegataire', |
535 |
'../scr/sousform.php?obj=delegataire&action=0'+ |
'../scr/sousform.php?obj=delegataire&action=0'+ |
536 |
'&retourformulaire=demande', 780, 'auto', |
'&retourformulaire=demande', 860, 'auto', |
537 |
getDemandeurId, 'delegataire'); |
getDemandeurId, 'delegataire'); |
538 |
}); |
}); |
539 |
// Bind de la fonction permettant l'ajout des pétitionnaires |
// Bind de la fonction permettant l'ajout des pétitionnaires |
540 |
$("#formulaire").on("click","#add_petitionnaire", function(event) { |
$("#formulaire").on("click","#add_petitionnaire", function(event) { |
541 |
popupIt('petitionnaire', |
popupIt('petitionnaire', |
542 |
'../scr/sousform.php?obj=petitionnaire&action=0'+ |
'../scr/sousform.php?obj=petitionnaire&action=0'+ |
543 |
'&retourformulaire=demande', 780, 'auto', |
'&retourformulaire=demande', 860, 'auto', |
544 |
getDemandeurId, 'petitionnaire'); |
getDemandeurId, 'petitionnaire'); |
545 |
}); |
}); |
546 |
|
|
553 |
|
|
554 |
if (url.indexOf("form.php?obj=demande&") != -1 |
if (url.indexOf("form.php?obj=demande&") != -1 |
555 |
&& (url.indexOf("&action=3") == -1 |
&& (url.indexOf("&action=3") == -1 |
556 |
|
&& url.indexOf("&action=2") == -1 |
557 |
&& $(".form-is-valid").size() == 0)) { |
&& $(".form-is-valid").size() == 0)) { |
558 |
|
|
559 |
addButtonCadastraleAdesse(); |
addButtonCadastraleAdesse(); |
582 |
if ((url.indexOf("form.php?obj=demande&") != -1 |
if ((url.indexOf("form.php?obj=demande&") != -1 |
583 |
|| url.indexOf("form.php?obj=demande_nouveau_dossier&") != -1 |
|| url.indexOf("form.php?obj=demande_nouveau_dossier&") != -1 |
584 |
|| url.indexOf("form.php?obj=demande_dossier_existant&") != -1) |
|| url.indexOf("form.php?obj=demande_dossier_existant&") != -1) |
585 |
&& url.indexOf("&action=3") == -1 ){ |
&& url.indexOf("&action=3") == -1 |
586 |
|
&& url.indexOf("&action=1") == -1 ){ |
587 |
|
|
588 |
formatFieldReferenceCadastrale(); |
formatFieldReferenceCadastrale(); |
589 |
} |
} |
594 |
*/ |
*/ |
595 |
function formatFieldReferenceCadastrale(){ |
function formatFieldReferenceCadastrale(){ |
596 |
|
|
|
$('.reference_cadastrale_custom_fields').empty(); |
|
|
|
|
597 |
addNewFieldReferencesCadastrales(); |
addNewFieldReferencesCadastrales(); |
598 |
$('#terrain_references_cadastrales').parent().parent().hide(); |
$('#terrain_references_cadastrales').parent().parent().hide(); |
599 |
|
|
858 |
|
|
859 |
/*Réinitialise les champs et cache les champs inutiles selon la qualité du demandeur*/ |
/*Réinitialise les champs et cache les champs inutiles selon la qualité du demandeur*/ |
860 |
/*Si la qualite du demandeur est particulier */ |
/*Si la qualite du demandeur est particulier */ |
861 |
if ( $('#' + id + ' option:selected').val() == 'particulier' ){ |
if ( $('#' + id ).val() == 'particulier' ){ |
862 |
|
|
863 |
$('.personne_morale_fields input').each( |
$('.personne_morale_fields input').each( |
864 |
function(){ |
function(){ |
1019 |
dossier_autorisation_type_detaille est choisi |
dossier_autorisation_type_detaille est choisi |
1020 |
* */ |
* */ |
1021 |
function changeDemandeType(){ |
function changeDemandeType(){ |
1022 |
|
|
1023 |
var idDossierAutorisationTypeDetaille = |
var idDossierAutorisationTypeDetaille = |
1024 |
$("#dossier_autorisation_type_detaille").val(); |
$("#dossier_autorisation_type_detaille").val(); |
1025 |
|
|
1145 |
'type="text" ' + |
'type="text" ' + |
1146 |
'onchange="VerifNum(this)" ' + |
'onchange="VerifNum(this)" ' + |
1147 |
'maxlength="4" ' + |
'maxlength="4" ' + |
1148 |
'size="4" '; |
'size="4" '+ |
1149 |
|
'placeholder="Quart." '; |
1150 |
|
|
1151 |
// désactivation des champs de référence cadastrale |
// désactivation des champs de référence cadastrale |
1152 |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
1159 |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
1160 |
'type="text" ' + |
'type="text" ' + |
1161 |
'maxlength="3" ' + |
'maxlength="3" ' + |
1162 |
'size="3" '; |
'size="3" '+ |
1163 |
|
'placeholder="Sect." '; |
1164 |
|
|
1165 |
// désactivation des champs de référence cadastrale |
// désactivation des champs de référence cadastrale |
1166 |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
1174 |
'type="text" ' + |
'type="text" ' + |
1175 |
'onchange="VerifNum(this)" ' + |
'onchange="VerifNum(this)" ' + |
1176 |
'maxlength="5" ' + |
'maxlength="5" ' + |
1177 |
'size="5" '; |
'size="5" '+ |
1178 |
|
'placeholder="Parc." '; |
1179 |
|
|
1180 |
// désactivation des champs de référence cadastrale |
// désactivation des champs de référence cadastrale |
1181 |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
1288 |
'maxlength="1" ' + |
'maxlength="1" ' + |
1289 |
'size="1" ' + |
'size="1" ' + |
1290 |
'value="" ' + |
'value="" ' + |
1291 |
|
'placeholder="Sep." ' + |
1292 |
'onchange="testSeparator(this);"/>' + |
'onchange="testSeparator(this);"/>' + |
1293 |
'<input ' + |
'<input ' + |
1294 |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
1296 |
'onchange="VerifNum(this)" ' + |
'onchange="VerifNum(this)" ' + |
1297 |
'maxlength="4" ' + |
'maxlength="4" ' + |
1298 |
'size="4" ' + |
'size="4" ' + |
1299 |
|
'placeholder="Parc." ' + |
1300 |
'value="" />'; |
'value="" />'; |
1301 |
} |
} |
1302 |
|
|