private void reLichSu_Click(object sender, System.EventArgs e) { try { var frm = new frmLichSuDangKyDonKhach(); frm.SetId((gridView1.GetFocusedRow() as DUONGDAI_KHACHHEN_XEDK).Id); frm.ShowDialog(); }catch {} }
private void btnLichSu_Click(object sender, EventArgs e) { SetError(""); if (_model != null && _model.Id > 0) { if (Quyen && ThongTinDangNhap.HasPermission(this.QuyenXemLichSu)) { SetError("Bạn không có quyền xem lịch sử"); return; } var frm = new frmLichSuDangKyDonKhach(); frm.SetId(_model.Id); frm.ShowDialog(); } }