private void gluVaiTro_EditValueChanged(object sender, EventArgs e) { var tb = TaiKhoanDAO.DanhSachTK(); listView1.Clear(); listView1.View = View.Details; listView1.Columns.Add("Tên Tài Khoản"); listView1.Columns[0].Width = 145; listView1.GridLines = true; listView1.FullRowSelect = true; foreach (DataRow row in tb.Rows) { if (String.Compare(gluVaiTro.EditValue.ToString(), row["VaiTro"].ToString(), true) == 0) { listView1.Items.Add(row["TenTK"].ToString()); } } var ls = PhanQuyenDAO.GetList(int.Parse(gluVaiTro.EditValue.ToString())); gridControl1.DataSource = ls; }
public List <RoleForm> GetList(int MaBPQ) { return(PhanQuyenDAO.GetList(MaBPQ)); }