Advertisement
gkpoll

Untitled

Feb 13th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.22 KB | None | 0 0
  1.      
  2.         protected string cPROTOCOLO1 =      "[" + "PROTOCOLO1"      + "]";
  3.         protected string cDOCS_PROTOCOLO1 = "[" + "DOCS_PROTOCOLO1" + "]";
  4.         protected string cPROTOCOLO2 =      "[" + "PROTOCOLO2"      + "]";
  5.         protected string cDOCS_PROTOCOLO2 = "[" + "DOCS_PROTOCOLO2" + "]";
  6.         protected string cENTRE_OUTROS =    "[" + "ENTRE_OUTROS"    + "]";
  7.  
  8.         protected override DataTable criaESalvaArquivoCSV(List<IdentificationNumber> confirmadosParaReceber)
  9.         {
  10.             // colunas com nomes reservados:
  11.             // FcDtec.DTEC_COLUNA_RESERVADA_ID_ORIGEM
  12.             // FcDtec.DTEC_COLUNA_RESERVADA_ANEXO_1
  13.  
  14.             List<string> listaNomesColunas = new List<string>
  15.             {
  16.                 cPROTOCOLO1,
  17.                 cDOCS_PROTOCOLO1,
  18.                 cPROTOCOLO2,
  19.                 cDOCS_PROTOCOLO2,
  20.                 cENTRE_OUTROS,
  21.                 FcDtec.DTEC_COLUNA_RESERVADA_ID_ORIGEM
  22.                 //,FcDtec.DTEC_COLUNA_RESERVADA_ANEXO_1  <-- Se tivesse roteiro padrão
  23.             };
  24.             // remove os caracteres "[" e "]"
  25.             listaNomesColunas = listaNomesColunas.Select(s => s.Replace("]", String.Empty).Replace("]", String.Empty)).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement