Ejemplo n.º 1
0
        private void gridView2_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Left && e.Clicks == 2)
            {
                int dingwei = Convert.ToInt32(this.gridView2.GetRowCellValue(this.gridView2.FocusedRowHandle, "id"));

                string leixing = Convert.ToString(this.gridView2.GetRowCellValue(this.gridView2.FocusedRowHandle, "纪要类型"));

                if (leixing != "会议")
                {
                    FrZhishixiangxiangxi form = new FrZhishixiangxiangxi();
                    form.jiyaoneirong = Convert.ToString(this.gridView2.GetRowCellValue(this.gridView2.FocusedRowHandle, "纪要内容"));
                    form.shijian      = Convert.ToString(this.gridView2.GetRowCellValue(this.gridView2.FocusedRowHandle, "会议时间"));

                    form.zerenren           = Convert.ToString(this.gridView2.GetRowCellValue(this.gridView2.FocusedRowHandle, "完成责任人"));
                    form.yonghu             = yonghu;
                    form.jiyaoshangchuanren = Convert.ToString(this.gridView2.GetRowCellValue(this.gridView2.FocusedRowHandle, "纪要上传人"));
                    form.ShowDialog();
                }

                if (leixing == "会议")
                {
                    Frhuiyixiangxi form = new Frhuiyixiangxi();
                    form.yonghu  = yonghu;
                    form.dingwei = dingwei;
                    form.ShowDialog();
                }
            }
        }
Ejemplo n.º 2
0
        private void dataGridViewX3_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            FrZhishixiangxiangxi form = new FrZhishixiangxiangxi();

            form.jiyaoneirong       = dataGridViewX3.CurrentRow.Cells["纪要内容2"].Value.ToString();
            form.shijian            = dataGridViewX3.CurrentRow.Cells["会议时间2"].Value.ToString();
            form.zerenren           = dataGridViewX3.CurrentRow.Cells["完成责任人2"].Value.ToString();
            form.yonghu             = yonghu;
            form.jiyaoshangchuanren = dataGridViewX3.CurrentRow.Cells["纪要上传人2"].Value.ToString();
            form.ShowDialog();
        }