示例#1
0
        public RG(EnumUF UF, string NR)
        {
            AssertionConcern.AssertArgumentNotEmptyNotNull(NR, "NR RG");

            this.UF = UF;
            this.NR = NR;
        }
示例#2
0
 public void AtualizarValor(Guid ID_USUARIO, EnumUF UF, string CEP, string LOGRADOURO, string COMPLEMENTO, string BAIRRO, string CIDADE)
 {
     this.ID_USUARIO  = ID_USUARIO;
     this.UF          = UF;
     this.CEP         = CEP;
     this.LOGRADOURO  = LOGRADOURO;
     this.COMPLEMENTO = COMPLEMENTO;
     this.BAIRRO      = BAIRRO;
     this.CIDADE      = CIDADE;
 }
示例#3
0
        public void AtualizaValores(EnumUF UF, string CEP, string LOGRADOURO, string COMPLEMENTO, string BAIRRO, string CIDADE)
        {
            AssertionConcern.AssertArgumentNotEmptyNotNull(CEP, "CEP");
            AssertionConcern.AssertArgumentNotEmptyNotNull(LOGRADOURO, "LOGRADOURO");
            AssertionConcern.AssertArgumentNotEmptyNotNull(BAIRRO, "BAIRRO");
            AssertionConcern.AssertArgumentNotEmptyNotNull(CIDADE, "CIDADE");

            this.UF          = UF;
            this.CEP         = CEP;
            this.LOGRADOURO  = LOGRADOURO;
            this.COMPLEMENTO = COMPLEMENTO;
            this.BAIRRO      = BAIRRO;
            this.CIDADE      = CIDADE;
        }
示例#4
0
        public INota GetNota(EnumUF uf)
        {
            switch (uf)
            {
            case EnumUF.PR:
                return(new NotaPR());

            case EnumUF.SP:
                return(new NotaSP());

            default:
                throw new SystemException("Estado não suportado.");
            }
        }
示例#5
0
        public ENDERECO(Guid ID_USUARIO, EnumUF UF, string CEP, string LOGRADOURO, string COMPLEMENTO, string BAIRRO, string CIDADE)
        {
            AssertionConcern.AssertArgumentNotEmptyNotNull(CEP, "CEP");
            AssertionConcern.AssertArgumentNotEmptyNotNull(LOGRADOURO, "LOGRADOURO");
            AssertionConcern.AssertArgumentNotEmptyNotNull(BAIRRO, "BAIRRO");
            AssertionConcern.AssertArgumentNotEmptyNotNull(CIDADE, "CIDADE");

            this.InicializaVariaveis();

            this.ID_USUARIO  = ID_USUARIO;
            this.UF          = UF;
            this.CEP         = CEP;
            this.LOGRADOURO  = LOGRADOURO;
            this.COMPLEMENTO = COMPLEMENTO;
            this.BAIRRO      = BAIRRO;
            this.CIDADE      = CIDADE;
        }
示例#6
0
 public Empresa(EnumUF uF, string nomeFantasia, string cNPJ)
 {
     UF           = uF;
     NomeFantasia = nomeFantasia;
     CNPJ         = cNPJ;
 }
示例#7
0
 public void AdicionarEndereco(EnumUF UF, string CEP, string LOGRADOURO, string COMPLEMENTO, string BAIRRO, string CIDADE)
 {
     ENDERECO = new ENDERECO(ID_USUARIO, UF, CEP, LOGRADOURO, COMPLEMENTO, BAIRRO, CIDADE);
 }