示例#1
0
        private void botaoPesquisaLocacao(object sender, EventArgs e)
        {
            int    campo = 0;
            string valor = "";

            if (textloccodigo.Enabled)
            {
                campo = 1;
                valor = textloccodigo.Text;
            }
            if (maskedloccpf.Enabled)
            {
                campo = 2;
                valor = maskedloccpf.Text;
            }
            if (textlocnome.Enabled)
            {
                campo = 3;
                valor = textlocnome.Text;
            }
            Locacao         loc = new Locacao(usuarioID);
            ConfirmaCliente cli = new ConfirmaCliente(loc, valor, campo);

            loc.Show();
            cli.Show();
        }
示例#2
0
        public void botaoPesqNome_Click(object sender, EventArgs e)
        {
            string valor = textNomeCli.Text;
            int    campo = 3;

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

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