|
|
@@ -53,7 +53,7 @@ namespace CG67.FicheCollege.Entrepot
|
|
|
{ // modif le 14/04/2010 - modification pour l'année en cours => année civile
|
|
|
//command.CommandText = "Select ANNEE, ZONE, Sum(TO_NUMBER(NB_ELEVE)) as NBELEVES, Sum(MT_VOTE) AS SUBVENTION from ASTRE.W67_SIC_FICHE_ELU WHERE ANNEE = '" + annee + "' AND COD_TIERS = '" + codeAstre + "' GROUP BY ZONE, ANNEE ORDER BY ZONE ";
|
|
|
command.CommandText = "Select ANNEE, ZONE, Sum(TO_NUMBER(NB_ELEVE)) as NBELEVES, Sum(MT_VOTE) AS SUBVENTION from ASTRE.W67_SIC_FICHE_ELU WHERE ANNEE = :ANNEE AND COD_TIERS = :COD_ASTRE GROUP BY ZONE, ANNEE ORDER BY ZONE ";
|
|
|
- command.Parameters.AddWithValue(":ANNEE", System.DateTime.Now.Year);
|
|
|
+ command.Parameters.AddWithValue(":ANNEE", annee);
|
|
|
command.Parameters.AddWithValue(":COD_ASTRE", codeAstre);
|
|
|
using (OracleDataReader ds = command.ExecuteReader())
|
|
|
{
|