예제 #1
0
        public DataTable Cargar_Operador(string nombreUsuOpe, string contrasOpe)
        {
            DataTable oDT;

            clsConexion oC = new clsConexion();

            CommandType cT = CommandType.Text;

            oDT = oC.EjecutarCmd(cT, "select IdPersona from Operador where usernameOpe = '" + nombreUsuOpe + "' and passwordOpe = '" + contrasOpe + "'");

            return(oDT);
        }
예제 #2
0
        public DataTable Cargar_Administrador(string nombreUsuarioAdmi, string contraseñaAdmi)
        {
            DataTable oDT;

            clsConexion oC = new clsConexion();

            CommandType cT = CommandType.Text;

            oDT = oC.EjecutarCmd(cT, "select idPersona from Administrador where usernameAdm = '" + nombreUsuarioAdmi + "' and passwordAdm = '" + contraseñaAdmi + "'");

            return(oDT);
        }
예제 #3
0
        public DataTable Cargar_Bitacora()
        {
            DataTable oDT = new DataTable();

            clsConexion oC = new clsConexion();

            CommandType cT = CommandType.Text;

            oDT = oC.EjecutarCmd(cT, "Exec proc_CargarBitacora");

            return(oDT);
        }
예제 #4
0
        public DataTable Cargar_FiltroBitacora(string desscrip, int idP)
        {
            DataTable oDT = new DataTable();

            clsConexion oC = new clsConexion();

            CommandType cT = CommandType.Text;

            oDT = oC.EjecutarCmd(cT, "Exec proc_CargarBitacora '" + desscrip + "', " + idP + "");

            return(oDT);
        }
예제 #5
0
        public DataTable Cargar_InfoUsuario(int IdU)
        {
            DataTable oDT = new DataTable();

            clsConexion oC = new clsConexion();

            CommandType cT = CommandType.Text;

            oDT = oC.EjecutarCmd(cT, "Exec proc_ObtenerUsuarios '" + IdU + "'");

            return(oDT);
        }
예제 #6
0
        public DataTable Cargar_Catalogos(string nombre)
        {
            DataTable oDT = new DataTable();

            clsConexion oC = new clsConexion();

            CommandType cT = CommandType.Text;

            oDT = oC.EjecutarCmd(cT, "Exec proc_CargarCatalogos '" + nombre + "'");


            return(oDT);
        }