|
|
@@ -39,11 +39,9 @@ namespace CG67.FicheCollege.Entrepot
|
|
|
connexion1.Open();
|
|
|
using (OracleCommand command1 = connexion1.CreateCommand())
|
|
|
{
|
|
|
- //command1.CommandText = "Select * from V_ATC WHERE COD_STRUC = @CODESTRUC ";
|
|
|
-
|
|
|
- //command1.Parameters.AddWithValue("@CODESTRUC", codeAstre);
|
|
|
- command1.CommandText = "Select * from V_ATC WHERE COD_STRUC = '38401024'";
|
|
|
-
|
|
|
+ command1.CommandText = "Select * from V_ATC WHERE COD_STRUC = @C_STRUC ";
|
|
|
+ // command1.CommandText = "Select * from V_ATC WHERE COD_STRUC = '38401024'";
|
|
|
+ command1.Parameters.AddWithValue("@C_STRUC", codeAstre);
|
|
|
using (OracleDataReader dr1 = command1.ExecuteReader())
|
|
|
{
|
|
|
|