private void HienThiChiTietNhap(string p) { try { dtChiTietNhap = new DataTable(); dtChiTietNhap = bd.LayChiTietNhapHang(ref err, txtMaPhieuNhap.Text); dgvChiTietNhapHang.DataSource = dtChiTietNhap.DefaultView; } catch (Exception ex) { lblerr.Text = string.Format("{0} - {1}", err, ex.Message); } }
private void HienThiDuLieu() { try { dtChiTietNhap = new DataTable(); dtChiTietNhap = bd.LayChiTietNhapHang(ref err, "0"); dgvChiTietNhapHang.DataSource = dtChiTietNhap.DefaultView; TinhTongThanhTien(); } catch (Exception ex) { lblerr.Text = string.Format("{0} - {1}", err, ex.Message); } }