Exemple #1
0
        private void 批复ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (gridView3.RowCount <= 0)//判断是否选中要删除的行
            {
                MessageBox.Show("请选中行");
                return;
            }

            string zerenren = gridView3.GetRowCellValue(this.gridView3.FocusedRowHandle, "完成责任人").ToString();
            string neirong  = gridView3.GetRowCellValue(this.gridView3.FocusedRowHandle, "纪要内容").ToString();
            string shijian  = gridView3.GetRowCellValue(this.gridView3.FocusedRowHandle, "会议时间").ToString();
            string id       = gridView3.GetRowCellValue(this.gridView3.FocusedRowHandle, "id").ToString();

            string sql           = "select 纪要上传人 from tb_xiangxi   Where id='" + id + "'";
            string shangchuanren = SQLhelp.ExecuteScalar(sql, CommandType.Text).ToString();


            if (yonghu != "庄卫星")
            {
                MessageBox.Show("非指示项发起人无权限批复!");
                return;
            }

            FrZhishixiangpifu form = new FrZhishixiangpifu();

            form.zerenren = zerenren;
            form.shijian  = shijian;
            form.id       = id;
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                Reload2();
            }
        }
Exemple #2
0
        private void 批复ToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (dataGridViewX3.Rows.Count <= 0)//判断是否选中要删除的行
            {
                MessageBox.Show("请选中行");
                return;
            }

            string zerenren = dataGridViewX3.CurrentRow.Cells["完成责任人3"].Value.ToString();
            string neirong  = dataGridViewX3.CurrentRow.Cells["纪要内容3"].Value.ToString();
            string shijian  = dataGridViewX3.CurrentRow.Cells["会议时间3"].Value.ToString();
            string id       = dataGridViewX3.CurrentRow.Cells["id3"].Value.ToString();

            string sql           = "select 纪要上传人 from tb_xiangxi   Where id='" + id + "'";
            string shangchuanren = SQLhelp.ExecuteScalar(sql, CommandType.Text).ToString();


            if (yonghu != "庄卫星")
            {
                MessageBox.Show("非指示项发起人无权限批复!");
                return;
            }

            FrZhishixiangpifu form = new FrZhishixiangpifu();

            form.zerenren = zerenren;
            form.shijian  = shijian;
            form.id       = id;
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                Reload();
            }
        }
Exemple #3
0
        private void 批复ToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (gridView4.RowCount <= 0)//判断是否选中要删除的行
            {
                MessageBox.Show("请选中行");
                return;
            }

            string zerenren = gridView4.GetRowCellValue(this.gridView4.FocusedRowHandle, "完成责任人").ToString();
            string neirong  = gridView4.GetRowCellValue(this.gridView4.FocusedRowHandle, "纪要内容").ToString();
            string shijian  = gridView4.GetRowCellValue(this.gridView4.FocusedRowHandle, "会议时间").ToString();
            string id       = gridView4.GetRowCellValue(this.gridView4.FocusedRowHandle, "id").ToString();

            FrZhishixiangpifu form = new FrZhishixiangpifu();

            form.zerenren = zerenren;
            form.shijian  = shijian;
            form.id       = id;
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                Reload3();
            }
        }