public List <sp_ChiTietDGVResult> dsChiTietHDDGV(v_HoaDon hd) { //QLBH_FastFoodDataContext context = new QLBH_FastFoodDataContext(); var dsCT = Global.global_datacontext.sp_ChiTietDGV(hd.MaHD).ToList(); return(dsCT); }
private void LoadCT(v_HoaDon hd) { blCT = new BLChiTietHD(); dsVCT = blCT.dsChiTietHDDGV(hd); dgvSanPham.Rows.Clear(); lblMa.Visible = true; labelMa.Visible = true; lblMa.Text = hd.MaHD.ToString(); for (int i = 0; i < dsVCT.Count; i++) { dgvSanPham.Rows.Add(dsVCT[i].MaSP, dsVCT[i].TenSP, dsVCT[i].SL); } }