Beispiel #1
0
        private void MatchSefip(ref EnterpriseModel e, string data)
        {
            Match sefip = Regex.Match(data, RegexPatterns.SEFIP_CODE);

            if (sefip.Success)
            {
                enterprise.SefipCode = sefip.ToString().Trim();
            }
        }
Beispiel #2
0
        private void MatchCnpj(ref EnterpriseModel e, string data)
        {
            Match cnpj = Regex.Match(data, RegexPatterns.CNPJ);

            if (cnpj.Success)
            {
                enterprise.Cnpj = cnpj.ToString().Trim();
            }
        }
Beispiel #3
0
        private void MatchCompetenceDate(ref EnterpriseModel e, string data)
        {
            Match competence = Regex.Match(data, RegexPatterns.COMPETENCE_DATE);

            if (competence.Success)
            {
                string[] aux = competence.ToString().Trim().Split("/");
                enterprise.CompetenceMonth = int.Parse(aux[0]);
                enterprise.CompetenceYear  = int.Parse(aux[1]);
            }
        }