private void UpdateGvDaiLy() { ResetTable(); int t = 0; foreach (DTO_DaiLy dl in dsDaiLy) { arrIdDL[t] = dl.IdDL; t++; string tenDL = BUS_DaiLy.GetTenById(dl.IdDL); string tenQuan = BUS_Quan.GetTen(dl.IdQuan); string tenLoaiDL = BUS_LoaiDL.GetTenById(dl.IdLoaiDL); string tenNV = BUS_NhanVien.GetTenNV(dl.Cmnd); string ngay = dl.NgayNhan.ToString("dd/MM/yyyy"); tb.Rows.Add(dl.IdDL, dl.IdLoaiDL, dl.IdQuan, tenDL, tenLoaiDL, dl.Sdt, tenQuan, ngay, tenNV, dl.TienNo, dl.DiaChi); } }