private void PreencherFormThread()
 {
     infoEnd     = negocioCliente.ConsultarEnderecoPorIdEnd(infoServ.seridend);
     infoCep     = negocioCliente.ConsultarCep(infoEnd.Cep);
     infoCliente = negocioCliente.ConsultarClientePorId(infoServ.seridcliente);
     infoEletro  = negocioServ.ConsultarEletroId(infoServ.serideletro);
 }
Example #2
0
        private string ConsultarIdEnd(int Id)
        {
            EnderecoInfo enderecoInfo = new EnderecoInfo();

            string End     = string.Empty;
            string endComp = string.Empty;

            enderecoInfo = clienteNegocios.ConsultarEnderecoPorIdEnd(Id);

            endComp = "BAIRRO: " + enderecoInfo.endBairro + ", " + Environment.NewLine + "CIDADE: " + enderecoInfo.endCidade + "/" +
                      enderecoInfo.endUf + Environment.NewLine + enderecoInfo.endLogradouro + ", " + Environment.NewLine;
            End = "End.: " + string.Format(@"{0:00\.000\-000}", Convert.ToInt32(enderecoInfo.Cep)) + ", " +
                  enderecoInfo.Complemento + Environment.NewLine + ", Ponto de Ref.: " + enderecoInfo.PontoReferencia;

            endComp += End;
            return(endComp);
        }