Ejemplo n.º 1
0
        private void dataGridViewX4_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridViewX4.Rows.Count <= 0)//判断是否选中要删除的行
            {
                MessageBox.Show("请选中行");
                return;
            }

            string zerenren           = dataGridViewX4.CurrentRow.Cells["完成责任人4"].Value.ToString();
            string neirong            = dataGridViewX4.CurrentRow.Cells["纪要内容4"].Value.ToString();
            string shijian            = dataGridViewX4.CurrentRow.Cells["会议时间4"].Value.ToString();
            string id                 = dataGridViewX4.CurrentRow.Cells["id4"].Value.ToString();
            string jiyaoshangchuanren = dataGridViewX4.CurrentRow.Cells["纪要上传人4"].Value.ToString();

            string sql           = "select 关联责任人 from tb_xiangxi  where  id='" + id + "'";
            string shangchuanren = Convert.ToString(SQLhelp.ExecuteScalar(sql, CommandType.Text));



            FrZhishixiangchakan1 form = new FrZhishixiangchakan1();

            form.jiyaoneirong       = neirong;
            form.shijian            = shijian;
            form.zerenren           = zerenren;
            form.dingwei            = id;
            form.yonghu             = yonghu;
            form.jiyaoshangchuanren = jiyaoshangchuanren;
            form.ShowDialog();
        }
Ejemplo n.º 2
0
        private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            if (gridView1.RowCount <= 0)//判断是否选中要删除的行
            {
                MessageBox.Show("请选中行");
                return;
            }
            string zerenren           = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "完成责任人"));
            string neirong            = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "纪要内容"));
            string shijian            = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "会议时间"));
            string id                 = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "id"));
            string jiyaoshangchuanren = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "纪要上传人"));
            string sql                = "select 关联责任人 from tb_xiangxi  where  id='" + id + "'";
            string shangchuanren      = Convert.ToString(SQLhelp.ExecuteScalar(sql, CommandType.Text));
            FrZhishixiangchakan1 form = new FrZhishixiangchakan1();

            form.jiyaoneirong       = neirong;
            form.shijian            = shijian;
            form.zerenren           = zerenren;
            form.dingwei            = id;
            form.yonghu             = yonghu;
            form.jiyaoshangchuanren = jiyaoshangchuanren;
            form.ShowDialog();
        }