jyma...@adullact.net
unread,Jan 20, 2017, 12:46:01 PM1/20/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openmairi...@googlegroups.com
Author: jymadier
Date: 2017-01-20 18:45:58 +0100 (Fri, 20 Jan 2017)
New Revision: 5845
Modified:
branches/contentieux/sql/pgsql/demande.inc.php
branches/contentieux/sql/pgsql/demande_dossier_encours.inc.php
branches/contentieux/sql/pgsql/dossier_autorisation.inc.php
branches/contentieux/sql/pgsql/dossier_instruction.inc.php
branches/contentieux/sql/pgsql/dossier_instruction_mes_clotures.inc.php
branches/contentieux/sql/pgsql/dossier_instruction_mes_encours.inc.php
branches/contentieux/sql/pgsql/dossier_instruction_tous_clotures.inc.php
branches/contentieux/sql/pgsql/dossier_instruction_tous_encours.inc.php
branches/contentieux/sql/pgsql/dossier_qualifier_qualificateur.inc.php
Log:
Ajout de filtres aux listings de DI afin que les dossiers contentieux ne soient pas affich?\195?\169s
Modified: branches/contentieux/sql/pgsql/demande.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/demande.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/demande.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -48,6 +48,9 @@
ON demande.instruction_recepisse=instruction.instruction
LEFT JOIN ".DB_PREFIXE."om_collectivite
ON demande.om_collectivite=om_collectivite.om_collectivite";
+
+$selection = " WHERE groupe.code != 'CTX'";
+
/* Test SQL pour récupérer les bons champs selon la qualité du demandeur :
* particulier ou personne morale*/
$case_demandeur = "CASE WHEN demandeur.qualite='particulier'
@@ -191,4 +194,7 @@
// Tri sur le numéro de la demande
$tri = " ORDER BY demande.date_demande DESC, demande.demande DESC";
+// Gestion des groupes et confidentialité
+include('../sql/pgsql/filter_group.inc.php');
+
?>
Modified: branches/contentieux/sql/pgsql/demande_dossier_encours.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/demande_dossier_encours.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/demande_dossier_encours.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -38,7 +38,8 @@
LEFT JOIN ".DB_PREFIXE."om_collectivite
ON dossier.om_collectivite=om_collectivite.om_collectivite";
-$selection = " WHERE (etat.statut = 'encours' OR etat.etat = 'accepter' "
+$selection = " WHERE groupe.code != 'CTX'"
+ . " AND (etat.statut = 'encours' OR etat.etat = 'accepter' "
. "OR etat.etat = 'accepte_tacite' )";
/**
* Gestion de la clause WHERE => $selection om_collectivite
Modified: branches/contentieux/sql/pgsql/dossier_autorisation.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_autorisation.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/dossier_autorisation.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -354,3 +354,4 @@
// Gestion des groupes et confidentialité
include('../sql/pgsql/filter_group.inc.php');
+?>
\ No newline at end of file
Modified: branches/contentieux/sql/pgsql/dossier_instruction.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_instruction.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/dossier_instruction.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -105,7 +105,7 @@
array_push($champAffiche_fin_commun, "om_collectivite.libelle as \""._("collectivite")."\"");
}
-$selection = "WHERE groupe.code != 'CTX'";
+$selection .= "AND groupe.code != 'CTX'";
/*Liste des champs affichés dans le tableau de résultat*/
$champAffiche = array_merge($champAffiche_debut_commun,
@@ -253,6 +253,6 @@
}
// Gestion des groupes et confidentialité
-include('../sql/pgsql/filter_group.inc.php');
+include ('../sql/pgsql/filter_group.inc.php');
?>
\ No newline at end of file
Modified: branches/contentieux/sql/pgsql/dossier_instruction_mes_clotures.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_instruction_mes_clotures.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/dossier_instruction_mes_clotures.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -30,7 +30,5 @@
// Filtre MONO
$selection .= " AND (dossier.om_collectivite = '".$_SESSION["collectivite"]."') ";
}
-// Gestion des groupes et confidentialité
-include('../sql/pgsql/filter_group.inc.php');
?>
Modified: branches/contentieux/sql/pgsql/dossier_instruction_mes_encours.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_instruction_mes_encours.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/dossier_instruction_mes_encours.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -30,7 +30,4 @@
$selection .= " AND (dossier.om_collectivite = '".$_SESSION["collectivite"]."') ";
}
-// Gestion des groupes et confidentialité
-include('../sql/pgsql/filter_group.inc.php');
-
?>
Modified: branches/contentieux/sql/pgsql/dossier_instruction_tous_clotures.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_instruction_tous_clotures.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/dossier_instruction_tous_clotures.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -32,7 +32,5 @@
$selection .= " AND (dossier.om_collectivite = '".$_SESSION["collectivite"]."') ";
}
-// Gestion des groupes et confidentialité
-include('../sql/pgsql/filter_group.inc.php');
?>
Modified: branches/contentieux/sql/pgsql/dossier_instruction_tous_encours.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_instruction_tous_encours.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/dossier_instruction_tous_encours.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -30,7 +30,5 @@
// Filtre MONO
$selection .= " AND (dossier.om_collectivite = '".$_SESSION["collectivite"]."') ";
}
-// Gestion des groupes et confidentialité
-include('../sql/pgsql/filter_group.inc.php');
?>
Modified: branches/contentieux/sql/pgsql/dossier_qualifier_qualificateur.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_qualifier_qualificateur.inc.php 2017-01-20 17:40:34 UTC (rev 5844)
+++ branches/contentieux/sql/pgsql/dossier_qualifier_qualificateur.inc.php 2017-01-20 17:45:58 UTC (rev 5845)
@@ -26,7 +26,4 @@
$tab_actions['content'] = $tab_actions['left']["consulter"] ;
-// Gestion des groupes et confidentialité
-include('../sql/pgsql/filter_group.inc.php');
-
?>