示例#1
0
def add_group():
    return facade.add("groups", Group(generate_group_name(), create_id_list(lambda: add_student())))
示例#2
0
def add_employee():
    return facade.add("employees",
                      Employee(generate_person_name(), generate_surname(), generate_patronymic(), generate_id(),
                               "сотрудник"))
示例#3
0
def add_head():
    return facade.add("heads",
                      Employee(generate_person_name(), generate_surname(), generate_patronymic(), generate_id(),
                               "руководитель"))
示例#4
0
def add_student():
    return facade.add("students",
                      Student(generate_person_name(), generate_surname(), generate_patronymic(), generate_id(), 1600))
示例#5
0
def add_teacher():
    return facade.add("teachers",
                      Person(generate_person_name(), generate_surname(), generate_patronymic(), generate_id()))
示例#6
0
def add_scientific_educational():
    return facade.add("scientific_educational", Scientific_Educational(create_id_list(lambda: add_megaFaculty())))
示例#7
0
def add_university():
    facade.add("university",
                      University("ИТМО", generate_id(), add_head(), add_address(),
                                 [add_administrative(), add_scientific_educational()]))
示例#8
0
def add_unit(name):
    return facade.add(name, Unit(name, generate_id(), create_id_list(lambda: add_employee()), add_head()))
示例#9
0
def add_administrative():
    return facade.add("administrative", Administrative(add_unit("ректорат"), add_unit("бухгалтерия")))
示例#10
0
def add_address():
    return facade.add("address", Address("Санкт-Петербург", "Кроверский проспект 49", "197101"))
示例#11
0
def add_megaFaculty():
    return facade.add("megaFaculties",
                      Faculty(generate_name("мегафакультет"), generate_id(), add_head(),
                              create_id_list(lambda: add_employee()), create_id_list(lambda: add_faculty())))
示例#12
0
def add_chair():
    return facade.add("chairs",
                      Chair(generate_name("Кафедра"), generate_id(), add_head(),
                            create_id_list(lambda: add_teacher()), create_id_list(lambda: add_eduProgram())))
示例#13
0
def add_eduProgram():
    return facade.add("eduPrograms",
                      EduProgram(generate_name("Образовательная программа"), add_studyYear()))
示例#14
0
def add_studyYear():
    return facade.add("studyYear", StudyYear("2018/2019", create_id_list(lambda: add_group())))