|
|
@@ -51,10 +51,10 @@ namespace CG67.FicheCollege.Entrepot
|
|
|
connexion.Open();
|
|
|
using (OracleCommand command = connexion.CreateCommand())
|
|
|
{
|
|
|
- command.CommandText = "Select ZONE, ANNEE, Sum(TO_NUMBER(NB_ELEVE)) as NBELEVES, Sum(MT_VOTE) AS SUBVENTION from ASTRE.W67_SIC_FICHE_ELU WHERE ANNEE = @ANNEE GROUP BY ZONE, ANNEE ORDER BY ZONE" ;
|
|
|
+ command.CommandText = "Select ZONE, ANNEE, Sum(TO_NUMBER(NB_ELEVE)) as NBELEVES, Sum(MT_VOTE) AS SUBVENTION from ASTRE.W67_SIC_FICHE_ELU WHERE ANNEE = + char(39) + @ANNEE + char(39) + GROUP BY ZONE, ANNEE ORDER BY ZONE" ;
|
|
|
// WHERE COD_TIERS = @RNE AND ANNEE = @ANNEE";
|
|
|
// command.Parameters.AddWithValue("@RNE", codeAstre);
|
|
|
- command.Parameters.AddWithValue("@ANNEE", An);
|
|
|
+ command.Parameters.AddWithValue("@ANNEE", annee.ToString());
|
|
|
using (OracleDataReader ds = command.ExecuteReader())
|
|
|
{
|
|
|
|