Exemple #1
0
        public void getDuLieu(int id)
        {
            DataTable dt = daThucPham.getDuLieu(id);

            frmSuDungDichVu.dataGridView1.Rows.Clear();
            foreach (DataRow row in dt.Rows)
            {
                frmSuDungDichVu.dataGridView1.Rows.Add(row["TENTHUCPHAM"], row["DVT"], row["GIABAN"], row["ID_THUCPHAM"]);
            }
            //frmMain.dataGridView1.DataSource = daThucPham.getDuLieu(id);
        }
Exemple #2
0
 public DataTable getDuLieu(int id)
 {
     return(daThucPham.getDuLieu(id));
 }