private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0 && e.RowIndex >= 0)
            {
                foreach (DataGridViewRow row in dataGridView1.Rows)
                {
                    row.Cells[e.ColumnIndex].Value = false;
                }
                dataGridView1.Rows[e.RowIndex].Cells[0].Value = true;
            }

            if (e.ColumnIndex == 8 && e.RowIndex >= 0)
            {
                if (this.usrKind != "业务员")
                {
                    MessageBox.Show("用户权限不够!", "提示");
                    return;
                }

                if (this.dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString() != "通过")
                {
                    MessageBox.Show("该计划尚未审批通过,不能录入!", "错误");
                    return;
                }
                运输周计划录入 dlg = new 运输周计划录入(this.dataGridView1.Rows[e.RowIndex].Cells["ID"].Value.ToString(), "上报");
                dlg.ShowDialog();
            }
        }
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0 && e.RowIndex >= 0)
            {
                foreach (DataGridViewRow row in dataGridView1.Rows)
                {
                    row.Cells[e.ColumnIndex].Value = false;
                }
                dataGridView1.Rows[e.RowIndex].Cells[0].Value = true;
            }

            if (e.RowIndex >= 0 && e.ColumnIndex == 8 && this.dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString() == "未下达")
            {
                if (this.usrKind != "审批员")
                {
                    MessageBox.Show("用户权限不够!", "提示");
                    return;
                }

                达调度令 dlg = new  达调度令(this.dataGridView1.Rows[e.RowIndex].Cells["ID"].Value.ToString(), "月");
                dlg.ShowDialog();
            }

            if (e.ColumnIndex == 9)
            {
                运输周计划录入 dlg = new 运输周计划录入(this.dataGridView1.Rows[e.RowIndex].Cells["ID"].Value.ToString(), "下达");
                dlg.ShowDialog();
            }
        }