|
|
@@ -24,7 +24,8 @@ namespace CG67.FicheCollege
|
|
|
public partial class FicheCollege : System.Web.UI.Page
|
|
|
{
|
|
|
public string user;
|
|
|
-
|
|
|
+ public string nomCollege;
|
|
|
+
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
{
|
|
|
//Intialisation des paramètres
|
|
|
@@ -34,7 +35,8 @@ namespace CG67.FicheCollege
|
|
|
HttpContext.Current.Session["AnneeMoins1"] = annee - 1;
|
|
|
HttpContext.Current.Session["RNE"] = Request["RNE"];
|
|
|
string domain = "DC=cg67,DC=fr";
|
|
|
-
|
|
|
+
|
|
|
+ //Détermination de la mission ou du statut utilisateur pour les statistiques
|
|
|
using (var rootEntry = new DirectoryEntry("LDAP://CG67/" + domain, null, null, AuthenticationTypes.Secure))
|
|
|
{
|
|
|
using (var directorySearcher = new DirectorySearcher(rootEntry, String.Format("(sAMAccountName={0})", HttpContext.Current.User.Identity.Name.Replace("CG67\\",""))))
|
|
|
@@ -74,7 +76,11 @@ namespace CG67.FicheCollege
|
|
|
//modif car si code rne null provoque une erreur
|
|
|
XmlNode xmlFicheCollege = ServiceFiche.GetFicheCollege(Session["RNE"].ToString(), int.Parse(Session["annee"].ToString()));
|
|
|
|
|
|
- this.Title = xmlFicheCollege.SelectSingleNode("college/Etablissement/NomCollegePourPresentation").InnerText;
|
|
|
+ //Enregistrement du nom du collège pour les statistiques
|
|
|
+ nomCollege = xmlFicheCollege.SelectSingleNode("college/Etablissement/NomCollegePourPresentation").InnerText;
|
|
|
+
|
|
|
+ //Affichage des données
|
|
|
+ this.Title = nomCollege;
|
|
|
xmlFicheCollege.SelectSingleNode("college").InnerXml += entete.DocumentElement.OuterXml;
|
|
|
this.Xml1.DocumentContent = xmlFicheCollege.OuterXml;
|
|
|
this.DataBind();
|