コード例 #1
0
        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 + "条记录!");
            }
        }
コード例 #2
0
 private void ctDictType_Click(object sender, EventArgs e)
 {
     ctDictType.DataSource    = BllMainDict.GetDictType(UserStatics.OptrType);
     ctDictType.DisplayMember = "Name";
 }
コード例 #3
0
 private void cbDictType_TextChanged(object sender, EventArgs e)
 {
     TableForLoad = BllMainDict.GetTable(UserStatics.OptrName, UserStatics.OptrType, cbDictType.Text);
     reloadDataGridView();
 }
コード例 #4
0
 protected override void resetDataGridView()
 {
     TableForLoad = BllMainDict.GetTable(UserStatics.OptrName, UserStatics.OptrType, cbDictType.Text);
     base.resetDataGridView();
 }
コード例 #5
0
 protected override void InitData()
 {
     ActionTable  = UserStatics.GetUserActions(ModuleId);
     TableForLoad = BllMainDict.GetTable(UserStatics.OptrName, UserStatics.OptrType, cbDictType.SelectedText);
 }
コード例 #6
0
 protected override void InitControls()
 {
     cbDictType.DataSource    = BllMainDict.GetDictType(UserStatics.OptrType);
     cbDictType.DisplayMember = "Name";
     cbDictType.ValueMember   = "Id";
 }
コード例 #7
0
ファイル: FrmMainDict.cs プロジェクト: tengdahuang/CaiHong
 override protected void DeleteCurrentRow()
 {
     BllMainDict.DelCell(DeletingRowId);
 }