예제 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            var a = new PesquisaCliente(ClienteRepository);

            if (a.ShowDialog() == DialogResult.OK)
            {
                cliente         = a.cli;
                txtcliente.Text = a.cli.Cli_nome;
            }
        }
        private void btn_pesqCliente_Click(object sender, EventArgs e)
        {
            var a = new PesquisaCliente(ClienteRepository);

            if (a.ShowDialog() == DialogResult.OK)
            {
                txt_idCli.Text       = a.cli.Cli_cod.ToString();
                txt_nomeCliente.Text = a.cli.Cli_nome;
                CarregaFazendas();
            }
        }
예제 #3
0
        private void Btn_pesqCliente_Click(object sender, EventArgs e)
        {
            var a = new PesquisaCliente(ClienteRepository);

            if (a.ShowDialog() == DialogResult.OK)
            {
                txt_id.Text           = a.cli.Cli_cod.ToString();
                txt_nomeCliente.Text  = a.cli.Cli_nome;
                dateTimePicker1.Value = a.cli.Cli_dataliberacao;
                mask_limite.Text      = a.cli.Cli_limite.ToString().PadLeft(11, ' ');
                mask_fiado.Text       = a.cli.Cli_saldofiado.ToString().PadLeft(11, ' ');
                txt_endereco.Text     = a.cli.Cli_endereco;
                txt_bairro.Text       = a.cli.Cli_bairro;
                mask_cep.Text         = a.cli.Cli_cep;
                mask_numero.Text      = a.cli.Cli_numero.ToString();
                txt_complemento.Text  = a.cli.Cli_complemento;
                txt_cidade.Text       = a.cli.Cidade.Cid_nome;
                txt_rg.Text           = a.cli.Cli_rg;
                mask_cpf.Text         = a.cli.Cli_cpf;
                mask_telefone.Text    = a.cli.Cli_telefone;

                mask_fiado.Enabled = false;
            }
        }