Пример #1
0
 //当移出文框时事件 验证密码用
 private void txtCust_Leave(object sender, EventArgs e)
 {
     if (txtCust.Text.Trim() != "" && UserHelper.isValidate == false)
     {
         ValidatePass vdp = new ValidatePass(this.txtCust.Text, 1);
         vdp.ga = this;
         vdp.ShowDialog();
         isSN = true;
         txtAdvanceForegift.Focus();
     }
 }
Пример #2
0
        private void lvSameName_DoubleClick(object sender, EventArgs e)
        {
            if (type == 0)
            {
                ah.txtCust.Text = lvSameName.SelectedItems[0].SubItems[0].Text;
                ah.txtName.Text = lvSameName.SelectedItems[0].SubItems[1].Text;
                if (lvSameName.SelectedItems[0].SubItems[2].Text == "男")
                {
                    ah.rdoMan.Checked = true;
                }
                else
                {
                    ah.rdoWaman.Checked = true;
                }
                ah.cboCertificate.Text   = lvSameName.SelectedItems[0].SubItems[3].Text;
                ah.txtCertificateId.Text = lvSameName.SelectedItems[0].SubItems[4].Text;
                ah.txtAddress.Text       = lvSameName.SelectedItems[0].SubItems[5].Text;
                ah.txtContactTel.Text    = lvSameName.SelectedItems[0].SubItems[6].Text;

                this.Close();
                if (ah.txtCust.Text != "")
                {
                    ValidatePass vp = new ValidatePass(ah.txtCust.Text, 0);
                    vp.ah = ah;
                    vp.Show();
                }
            }
            else
            {
                gh.txtCust.Text = lvSameName.SelectedItems[0].SubItems[0].Text;
                gh.txtName.Text = lvSameName.SelectedItems[0].SubItems[1].Text;
                if (lvSameName.SelectedItems[0].SubItems[2].Text == "男")
                {
                    gh.rdoMan.Checked = true;
                }
                else
                {
                    gh.rdoWaman.Checked = true;
                }
                gh.cboCertificate.Text   = lvSameName.SelectedItems[0].SubItems[3].Text;
                gh.txtCertificateId.Text = lvSameName.SelectedItems[0].SubItems[4].Text;
                gh.txtAddress.Text       = lvSameName.SelectedItems[0].SubItems[5].Text;
                gh.txtContactTel.Text    = lvSameName.SelectedItems[0].SubItems[6].Text;

                if (gh.txtCust.Text != "")
                {
                    ValidatePass vp = new ValidatePass(gh.txtCust.Text, 1);
                    vp.ga = gh;
                    vp.Show();
                }

                this.Close();
            }
        }