override protected void DeleteCurrentRow() { int count = 0; foreach (DataGridViewRow row in baseDataGridView.SelectedRows) { BllMainDict.DelCell((long)row.Cells[0].Value); count++; } if (count == 0) { MessageBox.Show("没有删除任何记录!"); } else { MessageBox.Show("已删除" + count + "条记录!"); } }
private void ctDictType_Click(object sender, EventArgs e) { ctDictType.DataSource = BllMainDict.GetDictType(UserStatics.OptrType); ctDictType.DisplayMember = "Name"; }
private void cbDictType_TextChanged(object sender, EventArgs e) { TableForLoad = BllMainDict.GetTable(UserStatics.OptrName, UserStatics.OptrType, cbDictType.Text); reloadDataGridView(); }
protected override void resetDataGridView() { TableForLoad = BllMainDict.GetTable(UserStatics.OptrName, UserStatics.OptrType, cbDictType.Text); base.resetDataGridView(); }
protected override void InitData() { ActionTable = UserStatics.GetUserActions(ModuleId); TableForLoad = BllMainDict.GetTable(UserStatics.OptrName, UserStatics.OptrType, cbDictType.SelectedText); }
protected override void InitControls() { cbDictType.DataSource = BllMainDict.GetDictType(UserStatics.OptrType); cbDictType.DisplayMember = "Name"; cbDictType.ValueMember = "Id"; }
override protected void DeleteCurrentRow() { BllMainDict.DelCell(DeletingRowId); }