예제 #1
0
        //Dashboard Socio

        public Int64 GetSocioInteresesCount(int idSocio)
        {
            var DbHelper = new DBBase(strConnection);
            var sql      = "SELECT COUNT(*) FROM sociotags WHERE socio_id=" + idSocio;

            return((Int64)DbHelper.ExecuteScalar(sql));
        }
예제 #2
0
        private Int64 GetSociosCount(filterSocio filtro)
        {
            var DbHelper = new DBBase(strConnection);
            var sql      = @"SELECT COUNT(s.id) FROM socio s {filtro_socio} and ISNULL(s.fechaBaja)";

            sql = sql.Replace("{filtro_socio}", filtro.getFilterSqlSocio());
            return((Int64)DbHelper.ExecuteScalar(sql));
        }
예제 #3
0
        public object ExecuteScalar(string consulta)
        {
            var DbHelper = new DBBase(strConnection);

            return(DbHelper.ExecuteScalar(consulta));
        }
예제 #4
0
        private Int64 GetAsistenciasCount()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM asistencia"));
        }
예제 #5
0
        private Int64 GetEventosDetalleFinalizados()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM detalleevento where fechaHasta < NOW() AND ISNULL(fechaBaja)"));
        }
예제 #6
0
        private Int64 GetEspaciosCount()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM espaciocomun where ISNULL(fechaBaja)"));
        }
예제 #7
0
        private Int64 GetEventosNuevos()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM evento where ISNULL(fechaBaja) AND Estado = 'Nuevo'"));
        }
예제 #8
0
        private Int64 GetCursosEnProgresoCount()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM evento where ISNULL(fechaBaja) AND Estado = 'Progreso'"));
        }
예제 #9
0
        private Int64 GetSecretariosCount()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM secretario WHERE ISNULL(fechaBaja)"));
        }
예제 #10
0
        private Int64 GetSociosActivosCount()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM socio where ISNULL(fechaBaja) AND Estado = 'Activo'"));
        }
예제 #11
0
        private Int64 GetSociosSistemaCount()
        {
            var DbHelper = new DBBase(strConnection);

            return((Int64)DbHelper.ExecuteScalar("SELECT COUNT(*) FROM socio where ISNULL(fechaBaja)"));
        }