Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
     }
 }