Beispiel #1
0
        public List<AuditoriaIntelectual> ObtenerEmpleadoAud(string pardocagrupador)
        {
            TablaAuditoriaIntelectualSQL tablaAuditoria = new TablaAuditoriaIntelectualSQL();

            List<AuditoriaIntelectual> lista = new List<AuditoriaIntelectual>();
            lista = tablaAuditoria.ObtenerAgrupador(pardocagrupador);
            //List<AuditoriaIntelectual> lista = tablaAuditoria.ObtenerAgrupador(pardocagrupador);
            if (lista != null)
            {
                this.log = "Se recuperaron " + lista.Count.ToString() + " registros del agrupador";
                return lista;
            }
            else
            {
                if (tablaAuditoria.Log == "VACIO")
                {
                    this.log = "No existen empleados por agrupador en SQL";
                }
                else
                {
                    this.log = tablaAuditoria.Log;
                }
                return null;
            }
        }
Beispiel #2
0
        public DataTable InsertaCapacitaciones(Capacitaciones capacitaciones)
        {
            TablaAuditoriaIntelectualSQL tablaAuditoriaIntelectual = new TablaAuditoriaIntelectualSQL();

            DataTable datos = tablaAuditoriaIntelectual.InsertaCapacitaciones(capacitaciones);

            if (datos != null)
            {
                this.log = "OK";
                return datos;
            }
            else
            {
                this.log = tablaAuditoriaIntelectual.Log;
                return null;
            }
        }