Exemple #1
0
        public void Exportar(EnderecoCep endereco)
        {
            if (endereco == null)
            {
                return;
            }

            int lastRow = worksheet.LastRowUsed().RowNumber() + 1;
            var row     = lastRow.ToString();

            worksheet.Cell($"A{row}").Value = endereco.Cep;
            worksheet.Cell($"B{row}").Value = endereco.Bairro;
            worksheet.Cell($"C{row}").Value = endereco.Cidade;
            worksheet.Cell($"D{row}").Value = endereco.Complemento;
            worksheet.Cell($"E{row}").Value = endereco.Logradouro;
            worksheet.Cell($"F{row}").Value = endereco.Uf;
            worksheet.Cell($"G{row}").Value = endereco.DataProcessamento;
            worksheet.Cell($"H{row}").Value = endereco.StatusProcessamento;
            worksheet.Cell($"I{row}").Value = endereco.ErroProcessamento;

            workbook.Save();

            Console.WriteLine(endereco.DataProcessamento);
        }
Exemple #2
0
 public void Exportar(EnderecoCep enderecoCepDto)
 {
     Console.WriteLine(enderecoCepDto.Cep + " - " + enderecoCepDto.DataProcessamento);
 }