Esempio n. 1
0
        private void VincularDados()
        {
            Funcoes.Binding(ref txtCodigo, _fornecedor, "Cod_For");
            Funcoes.Binding(ref txtNome, _fornecedor, "Nome");
            Funcoes.Binding(ref txtFantasia, _fornecedor, "Fantasia");
            Funcoes.Binding(ref txtEndereco, _fornecedor, "Endereco");
            Funcoes.Binding(ref txtNumero, _fornecedor, "Numero");
            Funcoes.Binding(ref txtComplemento, _fornecedor, "Complemento");
            Funcoes.Binding(ref txtBairro, _fornecedor, "Bairro");
            Funcoes.BindingMask(ref txtCep, _fornecedor, "Cep");
            Funcoes.Binding(ref txtInscEstadual, _fornecedor, "Insc_Estadual");
            Funcoes.Binding(ref txtTelefone, _fornecedor, "Fone");
            Funcoes.Binding(ref txtFax, _fornecedor, "Fax");
            Funcoes.Binding(ref txtEmail, _fornecedor, "Email");
            Funcoes.Binding(ref txtObservacao, _fornecedor, "Obs");
            Funcoes.Binding(ref txtNumeroBanco, _fornecedor, "Num_Banco");
            Funcoes.Binding(ref txtNomeBanco, _fornecedor, "Nome_Banco");
            Funcoes.Binding(ref txtNroAgencia, _fornecedor, "Num_Agencia");
            Funcoes.Binding(ref txtNroConta, _fornecedor, "Num_Conta");
            Funcoes.Binding(ref txtNomeTitular, _fornecedor, "Nome_Titular");
            Funcoes.Binding(ref txtNomeDepositante, _fornecedor, "Nome_Despositante");

            Funcoes.Binding(ref txtUsuarioAlterou, _fornecedor, "Usu_Alt");
            Funcoes.Binding(ref txtUsuarioCadastrou, _fornecedor, "Usu_Inc");
        }
Esempio n. 2
0
        private void VincularDados(bool salvar = false)
        {
            Funcoes.Binding(ref txtCodigo, _cidade, "Cod_Cidade");
            Funcoes.Binding(ref txtDescricao, _cidade, "Desc_Cidade");
            Funcoes.BindingMask(ref txtCEP, _cidade, "CEP");
            //Funcoes.Binding(ref txtIdEstado, _cidade, "Id_Estado");
            Funcoes.Binding(ref txtUsuarioAlterou, _cidade, "Usu_Alt");
            Funcoes.Binding(ref txtUsuarioCadastrou, _cidade, "Usu_Inc");



            //txtICMS.txtValor.DataBindings.Clear();
            //txtICMS.txtValor.DataBindings.Add("Text", _cidade, "ICMS", false, DataSourceUpdateMode.OnPropertyChanged);
        }
Esempio n. 3
0
        private void VincularDados()
        {
            Funcoes.Binding(ref txtCodigo, _transportadora, "Cod_Trans");
            Funcoes.Binding(ref txtNome, _transportadora, "Nome");
            Funcoes.Binding(ref txtEndereco, _transportadora, "Endereco");
            Funcoes.Binding(ref txtInscricao, _transportadora, "Insc_Estadual");
            Funcoes.Binding(ref txtFone1, _transportadora, "Fone1");
            Funcoes.Binding(ref txtFone2, _transportadora, "Fone2");
            Funcoes.Binding(ref txtContato, _transportadora, "Contato");
            Funcoes.Binding(ref txtDDD, _transportadora, "DDD");
            Funcoes.Binding(ref txtUsuarioAlterou, _transportadora, "Usu_Alt");
            Funcoes.Binding(ref txtUsuarioCadastrou, _transportadora, "Usu_Inc");
            Funcoes.Binding(ref txtFax, _transportadora, "Fax");
            Funcoes.Binding(ref txtObservacao, _transportadora, "Obs");
            Funcoes.Binding(ref txtNumBanco, _transportadora, "Num_Banco");
            Funcoes.Binding(ref txtNomBanco, _transportadora, "Nome_Banco");
            Funcoes.Binding(ref txtNroAgencia, _transportadora, "Num_Agencia");
            Funcoes.Binding(ref txtNroConta, _transportadora, "Num_Conta");
            Funcoes.Binding(ref txtNomeTitular, _transportadora, "Nome_Titular");
            Funcoes.Binding(ref txtNomeDepositante, _transportadora, "Nome_Despositante");
            Funcoes.Binding(ref txtEmail, _transportadora, "Email");
            Funcoes.Binding(ref txtANTT, _transportadora, "ANTT");
            Funcoes.Binding(ref txtRenavam, _transportadora, "RENAVAN");
            Funcoes.BindingMask(ref txtCEP, _transportadora, "CEP");

            txtCNPJ.txtValor.DataBindings.Clear();
            txtCNPJ.txtValor.DataBindings.Add("Text", _transportadora, "CNPJ");

            chkImportante.Checked = _transportadora.Destaque == "S";

            txtDataNasc.txtData.Clear();
            if (_transportadora.DataNasc != null)
            {
                txtDataNasc.txtData.Text = _transportadora.DataNasc.ToString();
            }

            txtCPF.txtValor.DataBindings.Clear();
            txtCPF.txtValor.DataBindings.Add("Text", _transportadora, "CPF_TRANSP");

            if (_transportadora.Cod_Cidade != null)
            {
                UsrCidade.txtId.Text = Funcoes.StrToNullStr(_transportadora.Cod_Cidade.Value);
            }
        }
Esempio n. 4
0
        private void VincularDados(bool salvar = false)
        {
            txtCNPJ.txtValor.Text = _empresa.CNPJ;
            Funcoes.Binding(ref txtCodigo, _empresa, "Cod_Empresa");
            Funcoes.Binding(ref txtNome, _empresa, "Nome");
            Funcoes.Binding(ref txtVersao, _empresa, "Versao");
            Funcoes.Binding(ref txtEndereco, _empresa, "Endereco");
            Funcoes.Binding(ref txtBairro, _empresa, "Bairro");
            Funcoes.Binding(ref txtNumero, _empresa, "Numero");
            Funcoes.Binding(ref txtCidade, _empresa, "Desc_Cidade");
            Funcoes.BindingMask(ref txtCep, _empresa, "Cep");
            Funcoes.Binding(ref txtEstado, _empresa, "Estado");
            Funcoes.Binding(ref txtFone, _empresa, "Fone");
            Funcoes.Binding(ref txtFax, _empresa, "Fax");
            Funcoes.Binding(ref txtEmail, _empresa, "Email");
            Funcoes.Binding(ref txtInscricao, _empresa, "Insc_Estadual");

            Funcoes.Binding(ref txtUsuarioAlterou, _empresa, "Usu_Alt");
            Funcoes.Binding(ref txtUsuarioCadastrou, _empresa, "Usu_Inc");
        }
Esempio n. 5
0
        private void VincularDados()
        {
            Funcoes.Binding(ref txtCodigo, _cliente, "Cod_Cliente");
            Funcoes.Binding(ref txtNome, _cliente, "Nome");
            Funcoes.Binding(ref txtFantasia, _cliente, "Fantasia");
            Funcoes.Binding(ref txtEndereco, _cliente, "Endereco");
            Funcoes.Binding(ref txtNumero, _cliente, "Numero");
            Funcoes.Binding(ref txtComplemento, _cliente, "Complemento");
            Funcoes.Binding(ref txtBairro, _cliente, "Bairro");
            Funcoes.BindingMask(ref txtCep, _cliente, "Cep");
            Funcoes.Binding(ref txtInscEstadual, _cliente, "Insc_Estadual");
            Funcoes.Binding(ref txtRG, _cliente, "RG");
            Funcoes.Binding(ref txtTelefone, _cliente, "Fone");
            Funcoes.Binding(ref txtFax, _cliente, "Fax");
            Funcoes.Binding(ref txtEmail, _cliente, "Email");
            Funcoes.Binding(ref txtObservacao, _cliente, "Obs");


            Funcoes.Binding(ref txtUsuarioAlterou, _cliente, "Usu_Alt");
            Funcoes.Binding(ref txtUsuarioCadastrou, _cliente, "Usu_Inc");
        }
Esempio n. 6
0
        private void VincularDados()
        {
            Funcoes.Binding(ref txtCodigo, _motorista, "Cod_Motorista");
            Funcoes.Binding(ref txtNome, _motorista, "Nome");
            Funcoes.Binding(ref txtEndereco, _motorista, "Endereco");
            Funcoes.Binding(ref txtBairro, _motorista, "Bairro");
            Funcoes.BindingMask(ref txtCep, _motorista, "Cep");
            Funcoes.Binding(ref txtFoneCelular, _motorista, "Fone1");
            Funcoes.Binding(ref txtFoneFixo, _motorista, "Fone2");
            Funcoes.Binding(ref txtPlacaVeiculo, _motorista, "Placa");
            Funcoes.Binding(ref txtPlacaReboque1, _motorista, "Placa_Reboque1");
            Funcoes.Binding(ref txtPlacaReboque2, _motorista, "Placa_Reboque2");
            Funcoes.Binding(ref txtPlacaReboque3, _motorista, "Placa_Reboque3");
            Funcoes.Binding(ref txtCnh, _motorista, "CNH");
            Funcoes.Binding(ref txtRenavan, _motorista, "RENAVAN");
            Funcoes.Binding(ref txtObservacao, _motorista, "Obs");
            Funcoes.Binding(ref txtUFTrans, _motorista, "Estado_CPF");

            Funcoes.Binding(ref txtUsuarioAlterou, _motorista, "Usu_Alt");
            Funcoes.Binding(ref txtUsuarioCadastrou, _motorista, "Usu_Inc");
        }