Exemple #1
0
        public bool verificargestor(string nombrePer, string contrasena)
        {
            Gestores ges = new Gestores();

            ges.SetNombPerfilGS(nombrePer);
            ges.SetContrasenaGS(contrasena);
            datosgestor dtg = new datosgestor();

            if (dtg.existegestor(ges) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
        public bool EliminarGestores(string cod)
        {
            //Validar si existente
            datosgestor dato = new datosgestor();
            Gestores    ges  = new Gestores();

            ges.SetMatriculaGS(cod);
            int op = dato.EliminarGestores(ges);

            if (op == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #3
0
        public bool AgregarGestores(Gestores ges)
        {
            int cantFilas = 0;

            datosgestor dato = new datosgestor();

            if (dato.existegestor(ges) == false)
            {
                cantFilas = dato.AgregarGestores(ges);
            }

            if (cantFilas == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #4
0
        /*public Gestores get(Gestores cod)
         * {
         *  datosgestor dato = new datosgestor();
         *  Gestores ges = new Gestores();
         *  ges.SetMatriculaGS(cod);
         *  return dato.getGestores(ges);
         * }*/

        public Gestores get(Gestores ges)
        {
            datosgestor dato = new datosgestor();

            return(dato.getGestores(ges));
        }
Exemple #5
0
        public DataTable getTabla()
        {
            datosgestor dato = new datosgestor();

            return(dato.GetTablaGestores());
        }