-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoursetable.h
45 lines (36 loc) · 1.07 KB
/
coursetable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef COURSETABLE_H
#define COURSETABLE_H
#include <QWidget>
#include <QStandardItemModel>
#include <QVBoxLayout>
#include "sqltools.h"
#include "autoschedulealg.h"
namespace Ui {
class CourseTable;
}
class CourseTable : public QWidget
{
Q_OBJECT
public:
explicit CourseTable(int identity,QString id,QWidget *parent = 0);
~CourseTable();
private:
Ui::CourseTable *ui;
int identity;
QString id;
SqlTools * sqlTool;
//查询数据库获取课表信息
public slots:
void getCourseToTable();
void getCourse();
void addCourse();
void removeCourse();
void getClassCourse();
void getCoursepoolList();
void addCourseForClass(); //为班级添加课程【修改coursePool表中的开课班级字段】
void removeCourseForClass(); //为班级移出课程【修改coursePool表中的开课班级字段】
void autoScheduleCourse(); //智能排课
QString getDay(int column); //数字转周数,如:1->星期一
QString getSection(int section); //第几大节转小节,如:1->1-2节
};
#endif // COURSETABLE_H