|
@@ -1,6 +1,7 @@
|
|
|
using System;
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
using System.Text;
|
|
using System.Text;
|
|
|
|
|
+using System.Xml.Serialization;
|
|
|
|
|
|
|
|
namespace CG67.FicheCollege.Domaine
|
|
namespace CG67.FicheCollege.Domaine
|
|
|
{
|
|
{
|
|
@@ -20,7 +21,7 @@ namespace CG67.FicheCollege.Domaine
|
|
|
public delegate IList<ProjetPilote> dlgLoadProjetPilote(string codeRNE, int annee);
|
|
public delegate IList<ProjetPilote> dlgLoadProjetPilote(string codeRNE, int annee);
|
|
|
public delegate Restauration dlgLoadRestauration(string codeRNE, int annee);
|
|
public delegate Restauration dlgLoadRestauration(string codeRNE, int annee);
|
|
|
|
|
|
|
|
- [Serializable]
|
|
|
|
|
|
|
+ [Serializable]
|
|
|
public class Etablissement
|
|
public class Etablissement
|
|
|
{
|
|
{
|
|
|
#region Propriétés
|
|
#region Propriétés
|
|
@@ -277,13 +278,14 @@ namespace CG67.FicheCollege.Domaine
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Obtient ou définit la IListe des actions éducatives auxquels l'établissement participe.
|
|
/// Obtient ou définit la IListe des actions éducatives auxquels l'établissement participe.
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
|
|
+
|
|
|
public IList<ActionEducative> LstActionEducatives
|
|
public IList<ActionEducative> LstActionEducatives
|
|
|
{
|
|
{
|
|
|
get
|
|
get
|
|
|
{
|
|
{
|
|
|
if (mLstActionEducatives == null)
|
|
if (mLstActionEducatives == null)
|
|
|
mLstActionEducatives = this.LoaderActionEducative(mCodeRNE, mAnnee);
|
|
mLstActionEducatives = this.LoaderActionEducative(mCodeRNE, mAnnee);
|
|
|
- return mLstActionEducatives;
|
|
|
|
|
|
|
+ return mLstActionEducatives;
|
|
|
}
|
|
}
|
|
|
set { mLstActionEducatives = value; }
|
|
set { mLstActionEducatives = value; }
|
|
|
}
|
|
}
|
|
@@ -628,7 +630,7 @@ namespace CG67.FicheCollege.Domaine
|
|
|
{
|
|
{
|
|
|
get
|
|
get
|
|
|
{
|
|
{
|
|
|
- return CommentaireGeneraux.AmenagementsParticuliers;
|
|
|
|
|
|
|
+ return CommentaireGeneraux == null ? string.Empty : CommentaireGeneraux.AmenagementsParticuliers;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -638,7 +640,7 @@ namespace CG67.FicheCollege.Domaine
|
|
|
{
|
|
{
|
|
|
get
|
|
get
|
|
|
{
|
|
{
|
|
|
- return CommentaireGeneraux.ProgrammationTravaux;
|
|
|
|
|
|
|
+ return CommentaireGeneraux == null ? string.Empty : CommentaireGeneraux.ProgrammationTravaux;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -648,7 +650,7 @@ namespace CG67.FicheCollege.Domaine
|
|
|
{
|
|
{
|
|
|
get
|
|
get
|
|
|
{
|
|
{
|
|
|
- return CommentaireGeneraux.SecteurRecrutement;
|
|
|
|
|
|
|
+ return CommentaireGeneraux == null ? string.Empty : CommentaireGeneraux.SecteurRecrutement;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -658,7 +660,7 @@ namespace CG67.FicheCollege.Domaine
|
|
|
{
|
|
{
|
|
|
get
|
|
get
|
|
|
{
|
|
{
|
|
|
- return CommentaireGeneraux.TableauEffectif;
|
|
|
|
|
|
|
+ return CommentaireGeneraux == null ? string.Empty : CommentaireGeneraux.TableauEffectif;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -668,7 +670,7 @@ namespace CG67.FicheCollege.Domaine
|
|
|
{
|
|
{
|
|
|
get
|
|
get
|
|
|
{
|
|
{
|
|
|
- return CommentaireGeneraux.PrevisionEffectifATC;
|
|
|
|
|
|
|
+ return CommentaireGeneraux == null ? string.Empty : CommentaireGeneraux.PrevisionEffectifATC;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -734,13 +736,17 @@ namespace CG67.FicheCollege.Domaine
|
|
|
int nbrPrev = 0;
|
|
int nbrPrev = 0;
|
|
|
int nbrEvolution = 0;
|
|
int nbrEvolution = 0;
|
|
|
string retour;
|
|
string retour;
|
|
|
-
|
|
|
|
|
|
|
+ // FREYD Bizarre !!
|
|
|
foreach (int nbr in LstEffectifPrevisionnel)
|
|
foreach (int nbr in LstEffectifPrevisionnel)
|
|
|
nbrPrev = nbr;
|
|
nbrPrev = nbr;
|
|
|
foreach (int nbr in LstEffectifReel)
|
|
foreach (int nbr in LstEffectifReel)
|
|
|
nbrActuel = nbr;
|
|
nbrActuel = nbr;
|
|
|
|
|
|
|
|
nbrEvolution = nbrPrev - nbrActuel;
|
|
nbrEvolution = nbrPrev - nbrActuel;
|
|
|
|
|
+ if (nbrActuel == 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ return "calcul impossible, nbrActuelle =0";
|
|
|
|
|
+ }
|
|
|
int pourcentageEvol = ((nbrPrev * 100)/nbrActuel);
|
|
int pourcentageEvol = ((nbrPrev * 100)/nbrActuel);
|
|
|
if (nbrEvolution < 0)
|
|
if (nbrEvolution < 0)
|
|
|
{
|
|
{
|
|
@@ -853,7 +859,18 @@ namespace CG67.FicheCollege.Domaine
|
|
|
this.mNom = nom;
|
|
this.mNom = nom;
|
|
|
this.mVille = ville;
|
|
this.mVille = ville;
|
|
|
}
|
|
}
|
|
|
- public Etablissement(string codeRNE, int annee, string nom, string typeEtablissement, int anneeConstruction, string telephone, string email, string fax, string nomProprietaire, string adresse, string complementAdresse, int codePostal, string ville, string lienPhoto, dlgLoadActionEducative loaderActionEducative, dlgLoadATC loaderATC, dlgLoadBilinguisme loaderBilinguisme, dlgLoadCommentaires loaderCommentaires, dlgLoadContact loaderContact, dlgLoadDotation loaderDotation, dlgLoadEquipement loaderEquipement, dlgLoadInvestissement loaderInvestissement, dlgLoadMCG loaderMCG, dlgLoadLogement loaderLogement, dlgLoadProgTravaux loaderProgTravaux, dlgLoadProjetPilote loaderProjetPilote, dlgLoadRestauration loaderRestauration)
|
|
|
|
|
|
|
+ public Etablissement(string codeRNE, int annee, string nom, string typeEtablissement, int anneeConstruction, string telephone, string email, string fax, string nomProprietaire, string adresse, string complementAdresse, int codePostal, string ville, string lienPhoto,
|
|
|
|
|
+ dlgLoadActionEducative loaderActionEducative, dlgLoadATC loaderATC,
|
|
|
|
|
+ dlgLoadBilinguisme loaderBilinguisme,
|
|
|
|
|
+ dlgLoadCommentaires loaderCommentaires,
|
|
|
|
|
+ dlgLoadContact loaderContact,
|
|
|
|
|
+ dlgLoadDotation loaderDotation,
|
|
|
|
|
+ dlgLoadEquipement loaderEquipement,
|
|
|
|
|
+ dlgLoadInvestissement loaderInvestissement,
|
|
|
|
|
+ dlgLoadMCG loaderMCG, dlgLoadLogement loaderLogement,
|
|
|
|
|
+ dlgLoadProgTravaux loaderProgTravaux,
|
|
|
|
|
+ dlgLoadProjetPilote loaderProjetPilote,
|
|
|
|
|
+ dlgLoadRestauration loaderRestauration)
|
|
|
{
|
|
{
|
|
|
this.mCodeRNE = codeRNE;
|
|
this.mCodeRNE = codeRNE;
|
|
|
this.mAnnee = annee;
|
|
this.mAnnee = annee;
|