Advertisement
gkpoll

Untitled

Feb 12th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.36 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.Replace("[",String.Empty).Replace("]",String.Empty),
  17.                 cDOCS_PROTOCOLO1.Replace("[",String.Empty).Replace("]",String.Empty),
  18.                 cPROTOCOLO2.Replace("[",String.Empty).Replace("]",String.Empty),
  19.                 cDOCS_PROTOCOLO2.Replace("[",String.Empty).Replace("]",String.Empty),
  20.                 cENTRE_OUTROS.Replace("[",String.Empty).Replace("]",String.Empty),
  21.                 FcDtec.DTEC_COLUNA_RESERVADA_ID_ORIGEM
  22.                 //,FcDtec.DTEC_COLUNA_RESERVADA_ANEXO_1  <-- Se tivesse roteiro padrão
  23.             };
  24.  
  25.             DataTable listaBaseCSV = this.criaNovaTabelaParaCSV(listaNomesColunas);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement