Exemplo n.º 1
0
        //为当前对象添加附件
        private void 添加附件ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string getName = sqlDataView[0, sqlDataView.CurrentCell.RowIndex].Value.ToString();
            string getSFZ  = sqlDataView[7, sqlDataView.CurrentCell.RowIndex].Value.ToString();
            AddFJ  AF      = new AddFJ();

            AF.getInitName = getName;
            AF.getInitSFZ  = getSFZ;
            AF.ShowDialog();
        }
Exemplo n.º 2
0
        //添加附件按钮
        private void btnAddFJ_Click(object sender, EventArgs e)
        {
            if (jcrname.Text.Trim() == "")
            {
                MessageBox.Show("请先输入姓名", "提示");
                return;
            }
            else if (JCRSFZ.Text.Trim() == "")
            {
                MessageBox.Show("请输入身份证号", "提示");
                return;
            }
            AddFJ AF = new AddFJ();

            AF.getInitName = jcrname.Text.Trim();
            AF.getInitSFZ  = JCRSFZ.Text.Trim();
            AF.ShowDialog();
        }