def __init__(self, cuil, apellido, nombre, sueldobasico, antiguedad,
              carrera, cargo, catedra, areadeinvestigacion,
              tipodeinvestigacion, categoria, importeextra):
     Docente.__init__(self, cuil, apellido, nombre, sueldobasico,
                      antiguedad, carrera, cargo, catedra,
                      areadeinvestigacion, tipodeinvestigacion, categoria,
                      importeextra)
     Investigador.__init__(self, cuil, apellido, nombre, sueldobasico,
                           antiguedad, carrera, cargo, catedra,
                           areadeinvestigacion, tipodeinvestigacion,
                           categoria, importeextra)
     self.__categoria = categoria
     self.__importeextra = importeextra
示例#2
0
 def RegistroDocente(self):
     print('>>>>>REGISTRANDO DOCENTE<<<<<')
     cuil = ValidaCadenaAlfanumerica('Ingrese cuil: ')
     apellido = ValidaCadenaAlfabetica('Ingrese apellido: ')
     nombre = ValidaCadenaAlfabetica('Ingrese nombre: ')
     sueldobasico = ValidaEntero('Ingrese sueldo básico: ')
     antiguedad = ValidaEntero('Ingrese años de antiguedad: ')
     carrera = input('Ingrese carrera en la que dicta clases: ')
     cargo = input('Ingrese cargo que ocupa: ')
     catedra = input('Ingrese cátedra: ')
     docente = Docente(cuil, apellido.capitalize(), nombre.capitalize(),
                       sueldobasico, antiguedad, carrera.capitalize(),
                       cargo.capitalize(), catedra.capitalize())
     return docente
示例#3
0
    def opcion1(self,personal):
        os.system('cls')
        pos=input("Ingrese la posicion a insertar (Distinto de 0): ")
        try:
            pos=int(pos)
            if(pos==0 or pos>int(personal.getTope())):
                raise IndexError
            agente=input("Docente ---> (D)\nInvestigador ---> (I)\nPersonal de apoyo ---> (P)\nDocente Investigador ---> (DI) \nOpcion: ")
            agente=agente.lower()
            os.system('cls')
            if(agente=='d'):        #Carga de datos Docentes
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                carrera=input("Carrera: ")
                cargo=input("Cargo: ")
                catedra=input("Cátedra: ")
                docente=Docente(cuil,apellido,nombre,sueldobasico,antig,carrera,cargo,catedra)
                personal.InsertarAgente(pos,docente)
                print("***Docente***")
                time.sleep(1)

            if(agente=='i'):            # Carga datos Investigador
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                areainv=input("Area de Investigacion: ")
                tipoinv=input("Tipo de investigacion: ")
                inves=Investigador(cuil,apellido,nombre,sueldobasico,antig,areainv,tipoinv)
                personal.InsertarAgente(pos,inves)

            if(agente=='p'):            # Carga datos Personal de apoyo
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                categ=input("Categoria: ")
                pers=PersonalApoyo(cuil,apellido,nombre,sueldobasico,antig,categ)
                personal.InsertarAgente(pos,pers)

            if(agente=='di'):            # Carga datos Docente Investigador
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                carrera=input("Carrera: ")
                cargo=input("Cargo: ")
                catedra=input("Cátedra: ")

                areainv=input("Area de Investigacion: ")
                tipoinv=input("Tipo de investigacion: ")
                
                catincent=input("Categoria en el prog. de Incentivos (I, II, III, IV o V): ")
                impextra=float(input("Importe Extra: "))

                pers=DocenteInvestigador(cuil,apellido,nombre,sueldobasico,antig,carrera,cargo,catedra,areainv,tipoinv,catincent,impextra)
                personal.InsertarAgente(pos,pers)

        except ValueError:
            print("Debe ingresar un valor numerico. ")
            time.sleep(1)
        except IndexError:
            print("No es posible insertar en esta posicion. ")
            time.sleep(1)
示例#4
0
    def opcion2(self,personal):
        try:
            agente=input("Docente ---> (D)\nInvestigador ---> (I)\nPersonal de apoyo ---> (P)\nDocente Investigador ---> (DI) \nOpcion: ")
            agente=agente.lower()
            os.system('cls')
            if(agente=='d'):                 #Carga de datos Docentes
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                carrera=input("Carrera: ")
                cargo=input("Cargo: ")
                catedra=input("Cátedra: ")
                docente=Docente(cuil,apellido,nombre,sueldobasico,antig,carrera,cargo,catedra)
                personal.AgregarAgente(docente)
                print("***Docente***")
                time.sleep(1)

            if(agente=='i'):                     # Carga datos Investigador
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                areainv=input("Area de Investigacion: ")
                tipoinv=input("Tipo de investigacion: ")
                inves=Investigador(cuil,apellido,nombre,sueldobasico,antig,areainv,tipoinv)
                personal.AgregarAgente(inves)

            if(agente=='p'):            # Carga datos Personal de apoyo
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                categ=input("Categoria: ")
                pers=PersonalApoyo(cuil,apellido,nombre,sueldobasico,antig,categ)
                personal.AgregarAgente(pers)

            if(agente=='di'):                    # Carga datos Docente Investigador
                cuil=input("Cuil: ")
                apellido=input("Apellido: ")
                nombre=input("Nombre: ")
                sueldobasico=float(input("Sueldo Básico: "))
                antig=int(input("Antiguedad: "))

                carrera=input("Carrera: ")
                cargo=input("Cargo: ")
                catedra=input("Cátedra: ")

                areainv=input("Area de Investigacion: ")
                tipoinv=input("Tipo de investigacion: ")
                
                catincent=input("Categoria en el prog. de Incentivos : ")
                impextra=float(input("Importe Extra: "))

                pers=DocenteInvestigador(cuil,apellido,nombre,sueldobasico,antig,carrera,cargo,catedra,areainv,tipoinv,catincent,impextra)
                personal.AgregarAgente(pers)

        except ValueError:
            print("Debe ingresar un valor numerico. ")
示例#5
0
 def getSueldo(self):
     total=Docente.getSueldo(self)+self.__importeExtra
     return total
示例#6
0
 def opcion1(self, p, obj):
     os.system("cls")
     band = False
     while not band:
         print('=== INSERTAR AGENTES EN LA COLECCIÓN ===')
         print('1 - Personal de Apoyo')
         print('2 - Docente')
         print('3 - Investigador')
         print('4 - Docente Investigador.')
         op = int(input('Ingrese tipo de agente para insertar: '))
         if op == 1:
             print('>>>>>REGISTRANDO PERSONAL DE APOYO<<<<<')
             cuil = input('Ingrese cuil: ')
             apellido = input('Ingrese apellido: ').capitalize()
             nombre = input('Ingrese nombre: ').capitalize()
             sueldobasico = int(input('Ingrese sueldo básico: '))
             antiguedad = int(input('Ingrese años de antiguedad: '))
             bande = False
             while not bande:
                 print('=== CATEGORÍAS: I | II | III | IV | V ===')
                 categoria = input(
                     'Ingrese categoría(i = I | v = V): ').upper()
                 encontrada = p.validacategoria(categoria)
                 if encontrada != None:
                     categoria = encontrada
                     bande = True
                 else:
                     print('ERROR, categoría incorrecta.')
             posicion = int(input('Ingrese posición para insertar: '))
             unPersonaldeApoyo = PersonaldeApoyo(cuil, apellido, nombre,
                                                 sueldobasico, antiguedad,
                                                 categoria)
             p.insertarElemento(unPersonaldeApoyo, posicion - 1)
             print('\nAGENTE INSERTADO EN LA COLECCIÓN CON ÉXITO.\n')
             band = True
         elif op == 2:
             print('>>>>>REGISTRANDO DOCENTE<<<<<')
             cuil = input('Ingrese cuil: ')
             apellido = input('Ingrese apellido: ').capitalize()
             nombre = input('Ingrese nombre: ').capitalize()
             sueldobasico = int(input('Ingrese sueldo básico: '))
             antiguedad = int(input('Ingrese años de antiguedad: '))
             carrera = input(
                 'Ingrese carrera en la que dicta clases: ').capitalize()
             cargo = input('Ingrese cargo que ocupa: ').capitalize()
             catedra = input('Ingrese cátedra: ').capitalize()
             posicion = int(input('Ingrese posición para insertar: '))
             unDocente = Docente(cuil, apellido, nombre, sueldobasico,
                                 antiguedad, carrera, cargo, catedra)
             p.insertarElemento(unDocente, posicion - 1)
             print('\nAGENTE INSERTADO EN LA COLECCIÓN CON ÉXITO.\n')
             band = True
         elif op == 3:
             print('>>>>>REGISTRANDO INVESTIGADOR<<<<<')
             cuil = input('Ingrese cuil: ')
             apellido = input('Ingrese apellido: ').capitalize()
             nombre = input('Ingrese nombre: ').capitalize()
             sueldobasico = int(input('Ingrese sueldo básico: '))
             antiguedad = int(input('Ingrese años de antiguedad: '))
             areadeinvestigacion = input(
                 'Ingrese área de investigación: ').capitalize()
             tipodeinvestigacion = input(
                 'Ingrese tipo de investigación: ').capitalize()
             posicion = int(input('Ingrese posición para insertar: '))
             unInvestigador = Investigador(cuil, apellido, nombre,
                                           sueldobasico, antiguedad,
                                           areadeinvestigacion,
                                           tipodeinvestigacion)
             p.insertarElemento(unInvestigador, posicion - 1)
             print('\nAGENTE INSERTADO EN LA COLECCIÓN CON ÉXITO.\n')
             band = True
         elif op == 4:
             print('>>>>>REGISTRANDO DOCENTE INVESTIGADOR<<<<<')
             cuil = input('Ingrese cuil: ')
             apellido = input('Ingrese apellido: ').capitalize()
             nombre = input('Ingrese nombre: ').capitalize()
             sueldobasico = int(input('Ingrese sueldo básico: '))
             antiguedad = int(input('Ingrese años de antiguedad: '))
             carrera = input(
                 'Ingrese carrera en la que dicta clases: ').capitalize()
             cargo = input('Ingrese cargo que ocupa: ').capitalize()
             catedra = input('Ingrese cátedra: ').capitalize()
             areadeinvestigacion = input(
                 'Ingrese área de investigación: ').capitalize()
             tipodeinvestigacion = input(
                 'Ingrese tipo de investigación: ').capitalize()
             bande = False
             while not bande:
                 print('=== CATEGORÍAS: I | II | III | IV | V ===')
                 categoria = input(
                     'Ingrese categoría(i = I | v = V): ').upper()
                 encontrada = p.validacategoria(categoria)
                 if encontrada != None:
                     categoria = encontrada
                     bande = True
                 else:
                     print('ERROR, categoría incorrecta.')
             importeextra = int(
                 input(
                     'Ingrese importe extra por docencia e investigación: ')
             )
             posicion = int(input('Ingrese posición para insertar: '))
             unDocenteInvestigador = DocenteInvestigador(
                 cuil, apellido, nombre, sueldobasico, antiguedad, carrera,
                 cargo, catedra, areadeinvestigacion, tipodeinvestigacion,
                 categoria, importeextra)
             p.insertarElemento(unDocenteInvestigador, posicion - 1)
             print('\nAGENTE INSERTADO EN LA COLECCIÓN CON ÉXITO.\n')
             band = True
         else:
             print('ERROR, opción de agente incorrecta.')
     os.system("pause")
 def mostrar(self):
     Investigador.mostrar(self)
     Docente.mostra(self)
     print(
         'CATEGORÍA EN EL PROGRAMA DE INCENTIVOS DE INVESTIGACIÓN: %s | IMPORTE EXTRA POR DOCENCIA E INVESTIGACIÓN: %s | SUELDO: %s'
         % (self.__categoria, self.__importeextra, self.getSueldo()))
 def getSueldo(self):
     return (Docente.getSueldo(self) + self.__importeextra)