Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MTSys.WebApp.Dominio.Interfaces;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MTSys.WebApp.Dominio.Entidades
- {
- public class Pessoa : IEntidadeBase, IFixo
- {
- [Key]
- public int PessoaID { get; set; }
- [Obrigatorio]
- [Display(Name = "Tipo de Pessoa")]
- public int TipoPessoaID { get; set; }
- [Obrigatorio]
- [Display(Name = "Sexo")]
- public int SexoID { get; set; }
- [Display(Name = "CPF/CNPJ")]
- public string CNPJCPF { get; set; }
- [Display(Name = "Identificação Interna / Matrícula")]
- public string IdentificacaoInterna { get; set; }
- [Obrigatorio]
- [Display(Name = "Nome/Nome Fantasia")]
- public string Nome { get; set; }
- #region Dados Pessoa Física
- [Display(Name = "Dt. de Nascimento")]
- public DateTime? DtNascto { get; set; }
- [Display(Name = "Estado Civil")]
- public int? EstadoCivilID { get; set; }
- [Display(Name = "Raça / Cor")]
- public int? RacaCorID { get; set; }
- [Display(Name = "RG")]
- public string RG { get; set; }
- [Display(Name = "RG - Orgão Emissor")]
- public string RGOrgaoEmissor { get; set; }
- [Display(Name = "RG - Dt. Emissão")]
- public DateTime? RGDtEmissao { get; set; }
- [Display(Name = "Pai")]
- public string Pai { get; set; }
- [Display(Name = "Mãe")]
- public string Mae { get; set; }
- #endregion
- #region Dados Pessoa Juridica
- [Display(Name = "Razão Social")]
- public string RazaoSocial { get; set; }
- [Display(Name = "IE (Inscrição Estadual)")]
- public string InscricaoEstadual { get; set; }
- [Display(Name = "IM (Inscrição Municipal)")]
- public string InscricaoMunicipal { get; set; }
- [Display(Name = "CNAE Principal")]
- public int? CNAESubClasseID { get; set; }
- [Display(Name = "Dt. Fundação")]
- public DateTime? DtFundacao { get; set; }
- #endregion
- [Display(Name = "Foto / Logo")]
- public string FotoLogo { get; set; }
- [Display(Name = "E-mail")]
- [Email]
- public string Email { get; set; }
- [Display(Name = "Telefone")]
- public string Telefone { get; set; }
- public string Filial { get; set; }
- public string Profissional { get; set; }
- public string Paciente { get; set; }
- public string Cliente { get; set; }
- public string Funcionario { get; set; }
- public string Fornecedor { get; set; }
- public string Transportadora { get; set; }
- public string AcessoAoSistema { get; set; }
- #region Campos não mapeados
- [NotMapped]
- [Display(Name = "Filial")]
- public bool EFilial { get { return Filial == "S" ? true : false; } set { Filial = value ? "S" : "N"; } }
- [NotMapped]
- [Display(Name = "Profissional")]
- public bool EProfissional { get { return Profissional == "S" ? true : false; } set { Profissional = value ? "S" : "N"; } }
- [NotMapped]
- [Display(Name = "Cliente")]
- public bool EPaciente { get { return Paciente == "S" ? true : false; } set { Paciente = value ? "S" : "N"; } }
- [NotMapped]
- [Display(Name = "Cliente")]
- public bool ECliente { get { return Cliente == "S" ? true : false; } set { Cliente = value ? "S" : "N"; } }
- [NotMapped]
- [Display(Name = "Funcionário")]
- public bool EFuncionario { get { return Funcionario == "S" ? true : false; } set { Funcionario = value ? "S" : "N"; } }
- [NotMapped]
- [Display(Name = "Fornecedor")]
- public bool EFornecedor { get { return Fornecedor == "S" ? true : false; } set { Fornecedor = value ? "S" : "N"; } }
- [NotMapped]
- [Display(Name = "Transportadora")]
- public bool ETransportadora { get { return Transportadora == "S" ? true : false; } set { Transportadora = value ? "S" : "N"; } }
- [NotMapped]
- [Display(Name = "Acessa o Sistema")]
- public bool TemAcessoAoSistema { get { return AcessoAoSistema == "S" ? true : false; } set { AcessoAoSistema = value ? "S" : "N"; } }
- #endregion
- public virtual ICollection<Endereco> Enderecos { get; set; }
- #region DadosInterface
- public string Fixo { get; set; }
- public string Status { get; set; }
- public string Apagado { get; set; }
- public int VisaoID { get; set; }
- public int UsuCad { get; set; }
- public DateTime DtCad { get; set; }
- public int UsuAlt { get; set; }
- public DateTime DtAlt { get; set; }
- public int? UsuApagado { get; set; }
- public DateTime? DtApagado { get; set; }
- #endregion
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement