Exemplo n.º 1
0
def create_course():
    print('=' * 15, "添加课程", '=' * 15)
    school_list = common.get_school_list_interface()
    print("已有学校列表:")
    print(school_list)
    school_name = input("输入要选择的学校:")
    print("已有课程列表:")
    print(common.get_course_list_interface(school_name))
    flg, msg = manager.create_course_interface(school_name)
    print(msg)
    return flg
Exemplo n.º 2
0
def choose_group():
    print("已有学校列表:", end='')
    print(common.get_school_list_interface())
    school_name = input("输入要选择的学校:")
    print("已有课程列表:", end='')
    print(common.get_course_list_interface(school_name))
    course_name = input("输入要选择的课程:")
    print("已有班级列表:", end='')
    print(common.get_group_list_interface(school_name, course_name))
    group_name = input("输入班级名称:")
    flg, msg = common.add_group_student_interface(school_name, course_name,
                                                  group_name,
                                                  user_data['name'])
    print(msg)
    return flg
Exemplo n.º 3
0
def create_group():
    print('=' * 15, "添加班级", '=' * 15)
    school_list = common.get_school_list_interface()
    print("已有学校列表:", end='')
    print(school_list)
    school_name = input("输入要选择的学校:")
    print("已有课程列表:", end='')
    print(common.get_course_list_interface(school_name))
    course_name = input("输入要选择的课程:")
    print("已有老师列表:", end='')
    print(common.get_teacher_list_interface(school_name))
    teacher_name = input("输入班级老师:")
    print("已有班级列表:", end='')
    print(common.get_group_list_interface(school_name, course_name))
    flg, msg = manager.create_group_interface(school_name, course_name,
                                              teacher_name)
    print(msg)
    return flg
Exemplo n.º 4
0
def set_group_teacher():
    print('=' * 15, "添加班级", '=' * 15)
    print("已有学校列表:", end='')
    print(common.get_school_list_interface())
    school_name = input("输入要选择的学校:")
    print("已有课程列表:", end='')
    print(common.get_course_list_interface(school_name))
    course_name = input("输入要选择的课程:")
    print("已有班级列表:", end='')
    print(common.get_group_list_interface(school_name, course_name))
    group_name = input("输入班级名称:")
    print("已有老师列表:", end='')
    print(common.get_teacher_list_interface(school_name))
    teacher_name = input("输入要设置的老师:")
    flg, msg = manager.set_group_teacher_interface(school_name, course_name,
                                                   group_name, teacher_name)
    print(msg)
    return flg