コード例 #1
0
ファイル: Form_jgdr.cs プロジェクト: wangronghua/PEIS_Autoz
        private void bt_input_Click(object sender, EventArgs e)
        {
            if (dg_jyjgmx.RowCount < 1 || dg_djsqry.RowCount < 1)
            {
                MessageBox.Show("请选择你要导入的人员信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            DataGridViewRow dgr   = dg_djsqry.CurrentRow;
            string          djlsh = dgr.Cells["djlsh"].Value.ToString();

            string result = lisbiz.Exec_Proc_LisInput(djlsh);

            if (result == "1")
            {
                MessageBox.Show("导入成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                dg_djsqry.Rows.Remove(dgr);
                dt.Rows.Clear();
            }
            else
            {
                MessageBox.Show("导入失败,请联系管理员!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }