1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
|
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OracleClient;
using System.Text;
using System.Collections.Generic;
using System.Transactions;
using System.Text.RegularExpressions;
namespace autre
{
public partial class test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Ligne maligne = new Ligne();
OracleConnection connexion = new OracleConnection(Attrib.chemin);
connexion.Open();
Attrib.date = "03/2011";
string remplir = "select GPE_GE,Filiale,Date_RDV,Reunion_Planifiee,Financement,Placement,Produits,Flux,Normalisation,Prospection,Condition,Reclamation,Niv_Representation,Realise,LIEU,DDE_CREDIT,DDE_CONDITIONS,RECLAMATIONS,NEGO_VENTE_PDTS, NORMALISATIONS,ENTREE_RELATION, AUCUN_RESULTAT,Commentaire from RDV where (codca='A6')";
OracleCommand command = new OracleCommand(remplir, connexion);
OracleDataReader lire = command.ExecuteReader();
TableRow newRow1 = new TableRow();
while (lire.Read())
{
maligne.select.Checked = false;
maligne.gpe.Text = lire.GetString(0);
maligne.aff.Text = lire.GetString(1);
maligne.dat.Text = Convert.ToString(lire.GetDateTime(2)).Substring(0,10);
maligne.plan.SelectedValue = lire.GetString(3);
if (lire.GetString(4) == "True")
{
maligne.fin.Checked = true;
}
else
{
maligne.fin.Checked = false;
}
if (lire.GetString(5) == "True")
{
maligne.plt.Checked = true;
}
else
{
maligne.plt.Checked = false;
}
if (lire.GetString(6) == "True")
{
maligne.pdt.Checked = true;
}
else
{
maligne.pdt.Checked = false;
}
if (lire.GetString(7) == "True")
{
maligne.flx.Checked = true;
}
else
{
maligne.flx.Checked = false;
}
if (lire.GetString(8) == "True")
{
maligne.nrm.Checked = true;
}
else
{
maligne.nrm.Checked = false;
}
if (lire.GetString(9) == "True")
{
maligne.psp.Checked = true;
}
else
{
maligne.psp.Checked = false;
}
if (lire.GetString(10) == "True")
{
maligne.cdt.Checked = true;
}
else
{
maligne.cdt.Checked = false;
}
if (lire.GetString(11) == "True")
{
maligne.rct.Checked = true;
}
else
{
maligne.rct.Checked = false;
}
maligne.nvrep.SelectedValue = lire.GetString(12);
newRow1 = maligne.Create();
Attrib.list_Rows.Add(newRow1);
}
connexion.Close();
connexion.Dispose();
}
}
} |