Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 3
0
        public object ExecuteScalar(string consulta)
        {
            var DbHelper = new DBBase(strConnection);

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

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

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

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

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

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

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

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

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