private void dgvReview_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }

            DataGridViewColumnCollection columns = this.dgvReview.Columns;

            switch (columns[e.ColumnIndex].Name)
            {
            case "选择部门":

                if (e.ColumnIndex == 0)
                {
                    FormQueryInfo frm = QueryInfoDialog.GetDepartment();

                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        dgvReview.CurrentRow.Cells[2].Value = frm.GetStringDataItem("部门名称");
                        dgvReview.CurrentRow.Cells[1].Value = frm.GetStringDataItem("部门代码");
                    }
                }

                break;
            }
        }
        private void btnAskDepartment_Click(object sender, EventArgs e)
        {
            FormQueryInfo dialog = QueryInfoDialog.GetDepartment();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                txtAskDepartment.Text = dialog.GetStringDataItem("部门名称");
            }
        }