1 2 3 4 5 6 7 8 9 10 11 12
| private void charge()
{
connexion con = new connexion();
con.connecter();
Table T = new Table();
string cmd = "select p.date_piece,p.dossier, dev.num_devis,dev.numero,dev.totalttc,inter.code,inter.raison_sociale,dev.totalht from devis dev,dossier dos,piece p,interlocuteur inter where dev.num_devis like p.num_piece and p.dossier like dos.numero and dos.interlocuteur like inter.code and p.arch like '0'";
DataTable dtgrid = new DataTable();
OdbcDataAdapter dagrid = new OdbcDataAdapter(cmd, con.BaseCon);
dagrid.Fill(dtgrid);
GridView1.DataSource = dtgrid;
GridView1.DataBind();
} |
Partager