|
|
@@ -74,30 +74,30 @@ namespace CG67.FicheCollege.Entrepot
|
|
|
adresse = dr["TypeDeVoie"].ToString() + " " + dr["Voie"].ToString();
|
|
|
}
|
|
|
|
|
|
+ string a = dr["DemiPension"].ToString();
|
|
|
|
|
|
|
|
|
-
|
|
|
- resultat = new Etablissement(codeRNE, annee, dr["NomCollege"].ToString(),
|
|
|
- dr["TypeEtablissement"].ToString(), Convert.ToInt16(dr["AnneeConstruction"].ToString()),
|
|
|
- dr["Telephone"].ToString(), dr["Email"].ToString(), dr["Fax"].ToString(),
|
|
|
- dr["NomPropriétaire"].ToString(), adresse, dr["ComplementAdresse"].ToString(),
|
|
|
- Convert.ToInt32(dr["CodePostal"].ToString()), dr["Ville"].ToString(), dr["LienPhoto"].ToString(),
|
|
|
- dr.GetBoolean(dr.GetOrdinal("DemiPension")), dr.GetBoolean(dr.GetOrdinal("Internat")),int.Parse(dr["CapaciteTheorique"].ToString()),
|
|
|
- EntrepotFactory.GetEntrepotActionEducative().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotClasseDecouverte().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotATC().GetByCodeRNE,
|
|
|
- EntrepotFactory.GetEntrepotContratAide().GetByCodeRNE,
|
|
|
- EntrepotFactory.GetEntrepotBilinguisme().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotCommentaires().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotContact().GetAllContactByCodeRNE,
|
|
|
- EntrepotFactory.GetEntrepotDotation().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotEquipement().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotInvestissement().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotMCG().GetByCodeRNE,
|
|
|
- EntrepotFactory.GetEntrepotLogement().GetByCodeRNE,
|
|
|
- EntrepotFactory.GetEntrepotProgTravaux().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotProjetPilote().GetByCodeRNEAndAnnee,
|
|
|
- EntrepotFactory.GetEntrepotRestauration().GetByRNEAndAnnee);
|
|
|
+ resultat = new Etablissement(codeRNE, annee, dr["NomCollege"].ToString(),
|
|
|
+ dr["TypeEtablissement"].ToString(), Convert.ToInt16(dr["AnneeConstruction"].ToString()),
|
|
|
+ dr["Telephone"].ToString(), dr["Email"].ToString(), dr["Fax"].ToString(),
|
|
|
+ dr["NomPropriétaire"].ToString(), adresse, dr["ComplementAdresse"].ToString(),
|
|
|
+ Convert.ToInt32(dr["CodePostal"].ToString()), dr["Ville"].ToString(), dr["LienPhoto"].ToString(),
|
|
|
+ dr.GetBoolean(dr.GetOrdinal("DemiPension")), dr.GetBoolean(dr.GetOrdinal("Internat")), int.Parse(dr["CapaciteTheorique"].ToString()),
|
|
|
+ EntrepotFactory.GetEntrepotActionEducative().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotClasseDecouverte().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotATC().GetByCodeRNE,
|
|
|
+ EntrepotFactory.GetEntrepotContratAide().GetByCodeRNE,
|
|
|
+ EntrepotFactory.GetEntrepotBilinguisme().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotCommentaires().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotContact().GetAllContactByCodeRNE,
|
|
|
+ EntrepotFactory.GetEntrepotDotation().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotEquipement().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotInvestissement().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotMCG().GetByCodeRNE,
|
|
|
+ EntrepotFactory.GetEntrepotLogement().GetByCodeRNE,
|
|
|
+ EntrepotFactory.GetEntrepotProgTravaux().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotProjetPilote().GetByCodeRNEAndAnnee,
|
|
|
+ EntrepotFactory.GetEntrepotRestauration().GetByRNEAndAnnee);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -193,9 +193,9 @@ namespace CG67.FicheCollege.Entrepot
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- catch
|
|
|
+ catch (Exception erreur)
|
|
|
{
|
|
|
- throw;
|
|
|
+ throw erreur;
|
|
|
}
|
|
|
finally
|
|
|
{
|