Esempio n. 1
0
        private void botaoPesquisaDevolucao(object sender, EventArgs e)
        {
            int    campo = 0;
            string valor = "";

            if (textdevcodigo.Enabled)
            {
                campo = 1;
                valor = textdevcodigo.Text;
            }
            if (maskeddevcpf.Enabled)
            {
                campo = 2;
                valor = maskeddevcpf.Text;
            }
            if (textdevnome.Enabled)
            {
                campo = 3;
                valor = textlocnome.Text;
            }
            Devolucao          dev = new Devolucao(usuarioID);
            ConfirmaClienteDev cli = new ConfirmaClienteDev(dev, valor, campo);

            dev.Show();
            cli.Show();
        }
Esempio n. 2
0
        public void botaoPesqNome_Click(object sender, EventArgs e)
        {
            string valor = textNomeCli.Text;
            int    campo = 3;

            if (!textNomeCli.Text.Equals(""))
            {
                formConfirma = new ConfirmaClienteDev(this, valor, campo);
                formConfirma.Show();
            }
        }
Esempio n. 3
0
        public void botaoPesqCpf_Click(object sender, EventArgs e)
        {
            string valor = maskedCPFCli.Text;
            int    campo = 2;

            if (maskedCPFCli.Text.Length == 11)
            {
                formConfirma = new ConfirmaClienteDev(this, valor, campo);
                formConfirma.Show();
            }
        }