Exemplo n.º 1
0
        public tdocentes(int id, string nombres, string apellidos, string nombrec, string cedula, bool escasado, bool esmasculino, DateTime fechanacimiento, string profesion, RHH.testadolaboral estadolaboral, Empresa.Comun.tcontacto contacto, string decreto, DateTime fechadecreto, byte[] foto, string estadopr, string nss, double sueldobaseactual, bool esfallecido, DateTime fechafallecido, DateTime fechaingresoeducacion, DateTime decretofechapago, Pagos historicopagos)
        {
            //this.Tipo = new Comun.TEstandar(1); // tipo inicial 1;
            this.Id = id;
            this.Nombres = nombres;
            this.Apellidos = apellidos;
            this.Cedula = cedula;
            this.EstadoLaboral = estadolaboral;
            this.HistorialPagos = historicopagos;
            this.Familiares = new Familiares();
            this.EsCasado = escasado;
            this.FechaNacimiento = fechanacimiento;
            this.Profesion = profesion;
            this.Contacto = contacto;
            this.EsMasculino = esmasculino;
            this.NombreCompleto = nombrec;
            this.Foto = foto;
            this.EstadoPR = estadopr;
            this.Nss = nss;
            this.SueldoBrutoActual = sueldobaseactual;
            this.EsFallecido = esfallecido;
            this.FechaFallecido = fechafallecido;
            this.FechaIngresoEducacion = fechaingresoeducacion;

            this.Direccion = new Comun.TDireccion();
        }
Exemplo n.º 2
0
        public tdocente(int id, string nombres, string apellidos, string nombrec, string cedula, bool escasado, bool esmasculino, DateTime fechanacimiento, string profesion, RHH.testadolaboral estadolaboral, Empresa.Comun.tcontacto contacto, string decreto, DateTime fechadecreto, byte[] foto, string estadopr, string nss, double sueldobaseactual, bool esfallecido, DateTime fechafallecido, DateTime fechaingresoeducacion, DateTime decretofechapago, Pagos historicopagos)
        {
            this.Tipo = new Comun.TEstandar(1); // tipo inicial 1;
            this.Id = id;
            this.Nombres = nombres;
            this.Apellidos = apellidos;
            this.Cedula = cedula;
            this.EstadoLaboral = estadolaboral;
            this.HistorialPagos = historicopagos;

            if (!string.IsNullOrEmpty(this.Cedula)) { 
                this.Familiares = new Familiares(cedula);
                this.CalculoRetroActivo();
            } else { 
                this.Familiares = new Familiares(); 
            }

            this.PagosDetalle = new PagoDetalle(this.Cedula);

            this.EsCasado = escasado;
            this.FechaNacimiento = fechanacimiento;
            this.Profesion = profesion;
            this.Contacto = contacto;
            this.FechaPrimerPago = DateTime.MinValue;
            this.EsMasculino = esmasculino;
            this.NombreCompleto = nombrec;
            this.Foto = foto;
            this.EstadoPR = estadopr;
            this.Nss = nss;
            this.SueldoBrutoActual = sueldobaseactual;
            this.EsFallecido = esfallecido;
            this.FechaFallecido = fechafallecido;
            this.FechaIngresoEducacion = fechaingresoeducacion;
            this.SolicitudPJ = new SolicitudPJ(new tdocente(cedula));
            //this.Direccion = new Comun.TDireccion();
            this.Contacto = new Comun.tcontacto();
            this.EsDocente = true;
            this.EsNotificadoFallecido = false;
        }