private void 查看ToolStripMenuItem_Click(object sender, EventArgs e) { int dingwei = Convert.ToInt32(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "id")); string shangchuanren = gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "纪要上传人").ToString(); if (shangchuanren == yonghu) { string sql1 = "update tb_xiangxi set 更新='' where id='" + dingwei + "'"; SQLhelp.ExecuteScalar(sql1, CommandType.Text); Frhuifuhuiyijiyao form = new Frhuifuhuiyijiyao(); form.yonghu = yonghu; form.dingwei = dingwei; form.ShowDialog(); Reload(); } if (shangchuanren != yonghu) { Frhuifuhuiyijiyao form = new Frhuifuhuiyijiyao(); form.yonghu = yonghu; form.dingwei = dingwei; form.ShowDialog(); } }
private void dataGridViewX2_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int dingwei = Convert.ToInt32(dataGridViewX2.CurrentRow.Cells["id"].Value); string shangchuanren = dataGridViewX2.CurrentRow.Cells["纪要上传人"].Value.ToString(); if (shangchuanren == yonghu) { string sql1 = "update tb_xiangxi set 更新='' where id='" + dingwei + "'"; SQLhelp.ExecuteScalar(sql1, CommandType.Text); Frhuifuhuiyijiyao form = new Frhuifuhuiyijiyao(); form.yonghu = yonghu; form.dingwei = dingwei; form.ShowDialog(); Reload(); } if (shangchuanren != yonghu) { Frhuifuhuiyijiyao form = new Frhuifuhuiyijiyao(); form.yonghu = yonghu; form.dingwei = dingwei; form.ShowDialog(); } }