Exemplo n.º 1
0
        public void ShowForm2_Add()
        {
            int           i        = Convert.ToInt32(lblbianhao.Text);
            frmCheckSpuse frmcheck = new frmCheckSpuse();

            frmcheck.GetID = Convert.ToInt32(lblbianhao.Text);
            dbtblNumberInfo num = new dbtblNumberInfo();

            if (num.GetPersonSex(i) == 1)
            {
                frmcheck.PeiOuSex = 0;
            }
            else
            {
                frmcheck.PeiOuSex = 1;
            }
            frmcheck.ShowORAdd = 1;
            frmcheck.Show();
        }
Exemplo n.º 2
0
        public void ShowForm2()
        {
            if (txtnumpeiou.Text == "未婚配" || txtnumpeiou.Text == "")
            {
                MessageBox.Show("此人未有婚配", "提示");
                return;
            }
            int           i        = Convert.ToInt32(lblbianhao.Text);
            frmCheckSpuse frmcheck = new frmCheckSpuse();

            frmcheck.GetID = Convert.ToInt32(lblbianhao.Text);
            dbtblNumberInfo num = new dbtblNumberInfo();

            if (num.GetPersonSex(i) == 1)
            {
                frmcheck.PeiOuSex = 0;
            }
            else
            {
                frmcheck.PeiOuSex = 1;
            }
            frmcheck.ShowORAdd = 2;
            frmcheck.Show();
        }