Пример #1
0
 protected Dotacion crearPersonaDotacion(RowDeDatos row)
 {
     return(new Dotacion(
                row.GetInt("id_persona", 0),
                row.GetInt("legajo", 0),
                row.GetInt("nrodocumento", 0),
                row.GetString("apellido", "Sin Dato"),
                row.GetString("nombre", "Sin Dato"),
                row.GetSmallintAsInt("id_sexo", 0),
                row.GetString("descrip_sexo", "Sin Dato"),
                row.GetString("nivel", "Sin Dato"),
                row.GetString("grado", "Sin Dato"),
                row.GetInt("id_area", 0),
                row.GetString("area", "Sin Dato"),
                row.GetString("area_descrip_corta", "Sin Dato"),
                row.GetString("area_descrip_media", "Sin Dato"),
                row.GetSmallintAsInt("id_planta", -1),
                row.GetString("planta", "Sin Dato"),
                row.GetInt("IdEstudio", -1),
                row.GetString("Nivel_Estudios", "Sin Dato"),
                row.GetString("Titulo_Obtenido", "Sin Dato"),
                row.GetDateTime("FechaNacimiento", DateTime.Today),
                row.GetInt("IdSecretaria", -1),
                row.GetInt("IdSubSecretaria", -1),
                row.GetString("area_descrip_secretaria", "S/Nombre"),
                row.GetString("area_descrip_subsecretaria", "S/Nombre"),
                row.GetString("area_descrip_secretaria_corta", "S/Nombre"),
                row.GetString("area_descrip_subsecretaria_corta", "S/Nombre"),
                row.GetInt("Orden", 999999),
                row.GetString("CUIL", ""),
                row.GetDateTime("FechaIngreso", DateTime.MinValue)
                ));
 }
Пример #2
0
        private static void AgregarAreaCreadaDesdeRowSinBaja(RowDeDatos row, List <Area> areas_del_organigrama)
        {
            var area = new Area(row.GetInt("Id_Area"), row.GetString("Descripcion"), row.GetBoolean("Presenta_DDJJ"));

            area.Jerarquia = row.GetInt("Nivel_Jerarquia");
            area.Orden     = row.GetInt("Orden");
            areas_del_organigrama.Add(area);
        }
Пример #3
0
        private Usuario GetUsuarioDeRow(RowDeDatos row)
        {
            Usuario usuario = new Usuario(row.GetSmallintAsInt("Id"), row.GetString("Alias"), row.GetString("Clave_Encriptada"), !row.GetBoolean("Baja"));

            if (!(row.GetObject("Id_Persona") is DBNull))
            {
                usuario.Owner = repositorio_de_personas.GetPersonaPorId(row.GetInt("Id_Persona"));
            }
            usuario.Verificado = row.GetBoolean("Verificado", false);
            return(usuario);
        }
Пример #4
0
 private MoBi_Bien crearBien(RowDeDatos row)
 {
     return(new MoBi_Bien(
                row.GetInt("Id_Bien", 0),
                row.GetSmallintAsInt("Id_TipoBien", 0),
                row.GetString("Descripcion", "Sin Dato"),
                row.GetInt("Id_Estado_Propiedad", 0),
                row.GetString("Estado_Propiedad", "Sin Dato"),
                row.GetDateTime("Fecha", DateTime.MinValue),
                row.GetInt("id_Receptor", 0),
                row.GetString("Descripcion_Receptor", ""),
                row.GetInt("Id_Area_Propietaria", 0),
                row.GetString("Area_Propietaria", "")
                ));
 }
Пример #5
0
 private PersonaContrato crearPersonaContrato(RowDeDatos row)
 {
     return(new PersonaContrato(
                row.GetInt("Nro_Documento", 0),
                row.GetString("Nombre", "Sin Dato"),
                row.GetString("Apellido", "Sin Dato"),
                row.GetInt("Id_Area_Actual", 0),
                row.GetString("Area_Actual", ""),
                row.GetString("Area_Actual", ""),
                0, //orden
                row.GetInt("NroInforme", 0),
                row.GetString("estado_seleccion_descriptivo", ""),
                row.GetString("estado_seleccion_corto", ""),
                row.GetSmallintAsInt("estado_seleccion", 0), //id_estado,
                row.GetString("CUIL", ""),
                row.GetDateTime("FechaIngreso", DateTime.MinValue)
                ));
 }
Пример #6
0
        private Perfil ArmarPuesto(RowDeDatos row)
        {
            var repo_comite = RepositorioDeComites.Nuevo(this.conexion_bd);

            return(new Perfil(
                       row.GetSmallintAsInt("IdPerfil"),
                       row.GetString("Familia"),
                       row.GetString("Profesion"),
                       row.GetString("Denominacion"),
                       row.GetString("Nivel"),
                       row.GetString("Agrupamiento"),
                       row.GetSmallintAsInt("Vacantes"),
                       row.GetString("Tipo"),
                       row.GetString("Puesto_Numero"),
                       repo_comite.GetComiteById(row.GetSmallintAsInt("IdComite")),
                       row.GetDateTime("PerfilFechaDesde", DateTime.Today),
                       row.GetDateTime("PerfilFechaHasta", DateTime.Today),
                       row.GetBoolean("PerfilBaja", false)
                       ));
        }
Пример #7
0
 private static Area AreaRepetida(RowDeDatos row, List <Area> areas_del_organigrama)
 {
     return(areas_del_organigrama.Find(a => a.Id.Equals(row.GetInt("Id_Area"))));
 }
Пример #8
0
        private DocumentacionRecibida ArmarDocRecibida(RowDeDatos row)
        {
            ItemCv item = new ItemCv(row.GetInt("IdItem"), row.GetString("DescripcionItem"), row.GetSmallintAsInt("IdTabla"));

            return(new DocumentacionRecibida(row.GetInt("IdDocRecibida"), item, row.GetString("Folio"), row.GetInt("idPostulacion"), row.GetDateTime("Fecha")));
        }