Advertisement
gkpoll

Untitled

Feb 11th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1.  IdentificationNumber idInteressado = destinatarioAviso.Requerente;
  2.  
  3.                     string RucInteressado =  graficaVencendo.getRucGrafica().Trim();
  4.  
  5.                     switch (RucInteressado.Length)
  6.                     {
  7.                         case 9: // Inscrição estadual
  8.                             idInteressado = IE.New(RucInteressado);
  9.                             break;
  10.  
  11.                         case 11: // CPF - caso de erro
  12.                             enviaEmailErro(" Erro ao consultar gráficas com data de credenciamento " +
  13.                             "vencendo... Retornado um CPF:" + RucInteressado);
  14.                             continue;
  15.  
  16.                         case 14: // CNPJ
  17.                             idInteressado = Cnpj.New(RucInteressado);
  18.                             break;
  19.  
  20.                         default:
  21.                             enviaEmailErro("Erro ao determinar a identificação da gráfica. " +
  22.                             "Identificador: " + RucInteressado + ".");
  23.                             continue;
  24.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement