private void bt_Add_Click(object sender, EventArgs e)
        {
            tempCodeSenderDirlID = -1;
            A_FrmDirectionalManage_Add frmDma = new A_FrmDirectionalManage_Add(this);

            frmDma.ShowDialog();
        }
        private void dgv_Main_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                blIsSee = true;

                tempCodeSenderDirlID = int.Parse(dgv_Main.Rows[e.RowIndex].Cells["CodeSenderDirlID"].Value.ToString());
                A_FrmDirectionalManage_Add frmDma = new A_FrmDirectionalManage_Add(this);
                frmDma.ShowDialog();

                blIsSee = false;
            }
        }
        private void bt_Laws_Click(object sender, EventArgs e)
        {
            int i = 0;

            int intUpDateID = -1;

            try
            {
                foreach (DataGridViewRow dgvr in dgv_Main.Rows)
                {
                    if (dgvr.Cells["cl"].Value != null && int.Parse(dgvr.Cells["cl"].Value.ToString()) == 1)
                    {
                        intUpDateID = Convert.ToInt32(dgvr.Cells["CodeSenderDirlID"].Value.ToString());
                        i          += 1;
                    }
                }
            }
            catch
            {
                intUpDateID = -1;
                i           = 0;
            }
            if (i == 0)
            {
                MessageBox.Show("请选择要修改的方向性", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else if (i > 1)
            {
                MessageBox.Show("所选方向性不能大于1个,请重新选择!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else
            {
                tempCodeSenderDirlID = intUpDateID;

                A_FrmDirectionalManage_Add frmDma = new A_FrmDirectionalManage_Add(this);
                frmDma.ShowDialog();
            }
        }
        private void dgv_Main_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                blIsSee = true;

                tempCodeSenderDirlID = int.Parse(dgv_Main.Rows[e.RowIndex].Cells["CodeSenderDirlID"].Value.ToString());
                A_FrmDirectionalManage_Add frmDma = new A_FrmDirectionalManage_Add(this);
                frmDma.ShowDialog();

                blIsSee = false;
            }
        }
        private void bt_Laws_Click(object sender, EventArgs e)
        {
            int i = 0;

            int intUpDateID = -1;

            try
            {
                foreach (DataGridViewRow dgvr in dgv_Main.Rows)
                {
                    if (dgvr.Cells["cl"].Value != null && int.Parse(dgvr.Cells["cl"].Value.ToString()) == 1)
                    {
                        intUpDateID = Convert.ToInt32(dgvr.Cells["CodeSenderDirlID"].Value.ToString());
                        i += 1;
                    }
                }
            }
            catch
            {
                intUpDateID = -1;
                i = 0;
            }
            if (i == 0)
            {
                MessageBox.Show("请选择要修改的方向性", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else if (i > 1)
            {
                MessageBox.Show("所选方向性不能大于1个,请重新选择!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else
            {
                tempCodeSenderDirlID = intUpDateID;

                A_FrmDirectionalManage_Add frmDma = new A_FrmDirectionalManage_Add(this);
                frmDma.ShowDialog();
            }

        }
 private void bt_Add_Click(object sender, EventArgs e)
 {
     tempCodeSenderDirlID = -1;
     A_FrmDirectionalManage_Add frmDma = new A_FrmDirectionalManage_Add(this);
     frmDma.ShowDialog();
 }