Example #1
0
 def __init__(self):
     self.seq = SeqInfo()
     self.detail = DetailInfo()
     self.course = CourseInfo()
     self.stu = StuInfo()
     self.sum = SumInfo()
     self.ini = IniInfo()
Example #2
0
 def __init__(self, tec_id, course_id, course_filename, stu_filename):
     self.course = CourseInfo()
     self.stu = StuInfo()
     self.tim = TimeWindows()
     self.section = self.tim.get_now_section()
     self.tecid = tec_id
     self.courseid = course_id
     self.classnames = self.get_checkin_classnames(tec_id, course_id,
                                                   course_filename)
     self.stuids = self.get_checkin_stuids(self.classnames, stu_filename)
     self.seqid = str(self.tim.get_now_section())
     self.starttime = self.tim.get_time2()
     self.sampletime = ""
Example #3
0
 def select_courseid(self, tec_id):
     c = CourseInfo()
     all_info = c.get_all_course_info("../internal/courseProgress.csv")
     the_tec_info = c.get_course_info_from_teacher_id(tec_id, all_info)
     course_names = c.get_course_names(the_tec_info)
     course_ids = c.get_course_ids(the_tec_info)
     i = 1
     print "课头序号|课程名|课头号"
     for a_course_name in course_names:
         print str(i) + "      " + a_course_name.decode('utf-8') + "      " + course_ids[i - 1]
         i += 1
     select = raw_input("请选择要考勤的课头号的序号:")
     select = int(select)
     if select > 0 and select <= len(course_names):
         select_id = course_ids[select - 1]
         return select_id
     else:
         print "别闹!没有这个选项"
         return