/// <summary> /// 新增数据功能处理 /// </summary> protected override void SetInsertInit(bool isClear) { base.SetInsertInit(isClear); frmRoleWithPermissionsManager frm = new frmRoleWithPermissionsManager("新增角色", null); if (frm.ShowDialog() == DialogResult.OK) { loadData(this.txtDeptName.Text.Trim()); } //XtraMsgBox.Show("SetInsertInit!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); }
public override void SetModifyInit() { base.SetModifyInit(); if (this.gridView1.FocusedRowHandle >= 0) { DataRow dr = this.gridView1.GetFocusedDataRow(); string id = dr.Field<string>("RoleID"); frmRoleWithPermissionsManager frm = new frmRoleWithPermissionsManager("修改角色", id); if (frm.ShowDialog() == DialogResult.OK) { loadData(this.txtDeptName.Text.Trim()); } } }