Exemple #1
0
 public virtual void limpar()
 {
     this.Id                = 0;
     this.Ativo             = "N";
     this.Celular           = "";
     this.CodCargoPrincipal = 0;
     this.Cpf               = 0;
     this.DataAdmissao      = new DateTime();
     this.DataSaida         = new DateTime();
     this.Email             = "";
     this.Nome              = "";
     this.Setor             = "";
     this.Telefone          = "";
     this.AdmCargoPrincipal = new AdmCargo();
 }
Exemple #2
0
 public AdmFuncionario(FuncionarioVO f) : base()
 {
     this.Id                = f.Id;
     this.Ativo             = (f.Ativo ? "S" : "N");
     this.Celular           = f.Celular;
     this.CodCargoPrincipal = f.CodCargoPrincipal;
     this.Cpf               = f.Cpf;
     this.DataAdmissao      = f.DataAdmissao;
     this.DataSaida         = f.DataSaida;
     this.Email             = f.Email;
     this.Nome              = f.Nome;
     this.Setor             = f.Setor;
     this.Telefone          = f.Telefone;
     this.AdmCargoPrincipal = new AdmCargo(f.CargoPrincipal);
 }
Exemple #3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            AdmCargo outro = (AdmCargo)obj;

            if (outro == null)
            {
                return(false);
            }
            if (Id.Equals(outro.Id))
            {
                return(true);
            }
            return(false);
        }