Exemple #1
0
        /// <summary>
        ///  Devuelve los datos de todos las Competencias de un Puesto por empresa y gerencia
        /// </summary>
        /// <param name="empresa_id">Id de la empresa cuyas competencias por puesto se desea consultar</param>
        /// <param name="gerencia_id">Id de la gerencia cuyas competencias por puesto se desea consultar</param>
        /// <returns> List de BE_COMPETENCIAS_POR_PUESTO con los objetos de la entidad, que a su vez representan la tabla COMPETENCIAS_PUESTOS de la base de datos.En caso no existan datos devuelve nothing </returns>
        public List <BE_COMPETENCIAS_POR_PUESTO> SeleccionarCompetenciasPorPuesto(Guid empresa_id, Guid gerencia_id)
        {
            List <BE_COMPETENCIAS_POR_PUESTO> oListaCompetenciasPorPuesto = new List <BE_COMPETENCIAS_POR_PUESTO>();

            List <BE_COMPETENCIAS_POR_PUESTO> oListaCompetenciasPorPuestoConEmpresa = new List <BE_COMPETENCIAS_POR_PUESTO>();

            oListaCompetenciasPorPuesto = new DA_COMPETENCIAS_POR_PUESTO().SeleccionarCompetenciasPorPuesto();

            if (oListaCompetenciasPorPuesto != null)
            {
                foreach (var item in oListaCompetenciasPorPuesto)
                {
                    if (item.EMPRESA_ID == empresa_id && item.oBE_GERENCIA.ID == gerencia_id)
                    {
                        oListaCompetenciasPorPuestoConEmpresa.Add(item);
                    }
                }
            }

            return(oListaCompetenciasPorPuestoConEmpresa);
        }
Exemple #2
0
        /// <summary>
        /// devuelve el codigo del valor requerido por Puesto de Personal
        /// </summary>
        /// <param name="oBE_COMPE_PUESTO_PERSONAL">Objeto BE_EVALUACIONES_COMPETENCIAS_PUESTOS_PERSONAL con todos sus campos llenos</param>
        public int SeleccionarValorRequerido(BE_EVALUACIONES_COMPETENCIAS_PUESTOS_PERSONAL oBE_COMPE_PUESTO_PERSONAL)
        {
            DA_COMPETENCIAS_POR_PUESTO DA_COMPETENCIAS_POR_PUESTO = new DA_COMPETENCIAS_POR_PUESTO();

            return(DA_COMPETENCIAS_POR_PUESTO.SeleccionarValorRequerido(oBE_COMPE_PUESTO_PERSONAL));
        }