Пример #1
0
 def __init__(self,name,price,period,school_nid):
     self.nid=identifier.Nid(self.db_path)
     self.name=name
     self.price=price
     self.period=period
     self.school_nid=school_nid
     self.create_time = time.strftime('%Y-%m-%d %X')
Пример #2
0
 def __init__(self, name):
     """
     初始化
     :param name: 学校名称
     """
     self.nid = identifier.Nid(School.role)
     self.name = name
     self.income = 0
Пример #3
0
 def __init__(self,username,password,name,level,school_nid):
     self.nid=identifier.Nid(self.db_path)
     self.username=username
     self.password=password
     self.name=name
     self.level=level
     self.school_nid=school_nid
     self.__account=0
     self.create_time=time.strftime('%Y-%m-%d %X')
Пример #4
0
 def __init__(self, course_id, teacher_id):
     """
     初始化
     :param course_id: 课程ID
     :param teacher_id: 老师ID
     """
     self.nid = identifier.Nid(CourseToTeacher.role)
     self.course_id = course_id
     self.teacher_id = teacher_id
Пример #5
0
 def __init__(self,username,password,name,age,mobile,school_nid,classes_nid):
     self.nid=identifier.Nid(self.db_path)
     self.username=username
     self.password=password
     self.name=name
     self.age=age
     self.mobile=mobile
     self.school_nid=school_nid
     self.classes_nid=classes_nid
     self.score=None
     self.create_time = time.strftime('%Y-%m-%d %X')
Пример #6
0
 def __init__(self, mobile, password, name):
     """
     创建管理员对象
     :param mobile: 管理员手机号码
     :param password: 管理员密码
     :param name: 管理员名称
     """
     self.nid = identifier.Nid(Admin.role)
     self.mobile = mobile
     self.password = password
     self.name = name
     self.create_time = time.strftime('%Y-%m-%d')
Пример #7
0
 def __init__(self, mobile, password, name, level):
     """
     初始化
     :param name: 老师名称
     :param level: 老师级别
     """
     self.nid = identifier.Nid(Teacher.role)
     self.mobile = mobile
     self.password = password
     self.name = name
     self.level = level
     self.__account = 0
Пример #8
0
 def __init__(self, name, tuition, school_id, course_to_teacher_list):
     """
     初始化
     :param name: 班级名称
     :param tuition: 学费
     :param school_id: 学校ID
     :param course_to_teacher_list: 课程对应的老师列表 [ CourseToTeacher, CourseToTeacher ]
     """
     self.nid = identifier.Nid(Classes.role)
     self.name = name
     self.tuition = tuition
     self.school_id = school_id
     self.course_to_teacher_list = course_to_teacher_list
Пример #9
0
 def __init__(self, name, price, period, school_id):
     """
     初始化
     :param name: 课程名称
     :param price: 课程价格
     :param period: 课程周期
     :param school_id: 学校ID,学校ID是一个对象,具有get_obj_by_uuid方法,以此获取学校对象(其中包含学校信息)
     """
     self.nid = identifier.Nid(Course.role)
     self.name = name
     self.price = price
     self.period = period
     self.school_id = school_id
Пример #10
0
 def __init__(self, mobile, password, name, age, classes_id):
     """
     初始化
     :param mobile: 学生手机号码
     :param password: 学生手机密码
     :param name: 学生名称
     :param age: 学生年龄
     :param classes_id: 班级ID
     """
     self.nid = identifier.Nid(Student.role)
     self.mobile = mobile
     self.password = password
     self.name = name
     self.age = age
     self.classes_id = classes_id
     self.score = Score(self.nid)
Пример #11
0
 def __init__(self,name,addr):
     self.nid=identifier.Nid(self.db_path)
     self.name=name
     self.addr=addr
     self.create_time = time.strftime('%Y-%m-%d %X')
     self.__income = 0
Пример #12
0
 def __init__(self,username,password):
     self.nid=identifier.Nid(self.db_path)
     self.username=username
     self.password=password
     self.create_time = time.strftime('%Y-%m-%d')
Пример #13
0
 def __init__(self,course_nid,teacher_nid):
     self.nid=identifier.Nid(self.db_path)
     self.course_nid=course_nid
     self.teacher_nid=teacher_nid
     self.school_nid=self.teacher_nid.get_obj_by_uuid().school_nid
     self.create_time = time.strftime('%Y-%m-%d %X')
Пример #14
0
 def __init__(self,name,school_nid,course_to_teacher_list):
     self.nid=identifier.Nid(self.db_path)
     self.name=name
     self.school_nid=school_nid
     self.course_to_teacher_list=course_to_teacher_list
     self.create_time = time.strftime('%Y-%m-%d %X')