示例#1
0
    def one_categoria(self, id):
        try:
            conn = Connection('categoria')
            records = conn.selectOne(id)

            print(f'ID: {records[0]}')
            print(f'Descripcion: {records[1]}')
            print(f'Estado: {records[2]}')
            print('=====================')
            return records
        except Exception as ex:
            print(ex)
示例#2
0
    def one_periodo(self, id):
        try:
            conn = Connection('periodo')
            records = conn.selectOne(id)

            print(f'ID: {records[0]}')
            print(f'Mes: {records[1]}')
            print(f'Año: {records[2]}')
            print(f'Estado: {records[3]}')
            print('=====================')
            return records
        except Exception as ex:
            print(ex)
示例#3
0
    def one_curso(self, id):
        try:
            conn = Connection('curso')
            records = conn.selectOne(id)

            print(f'ID: {records[0]}')
            print(f'Curso: {records[1]}')
            print(f'Categoria: {records[2]}')
            print(f'Estado: {records[3]}')
            print('=====================')
            return records
        except Exception as ex:
            print(ex)
示例#4
0
    def one_alumno(self, id):
        try:
            conn = Connection('alumno')
            records = conn.selectOne(id)

            print(f'ID: {records[0]}')
            print(f'Nombres: {records[1]}')
            print(f'Apellido_Paterno: {records[2]}')
            print(f'Apellido_Materno: {records[3]}')
            print(f'Fecha_Nacimiento: {records[4]}')
            print(f'DNI: {records[5]}')
            print(f'Correo: {records[6]}')
            print(f'Telefono: {records[7]}')
            print(f'Estado: {records[8]}')
            print('=====================')
            return records
        except Exception as ex:
            print(ex)
示例#5
0
 def one_docente(self,id):
     conn = Connection('docente')
     conn.selectOne(id)