clOnlineExam.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef CLONLINEEXAM_H
  2. #define CLONLINEEXAM_H
  3. #include <QWidget>
  4. #include <QTimer>
  5. #include "clObjectiveScore.h"
  6. #include "CHttpBll.h"
  7. #include "clOperation.h"
  8. namespace Ui {
  9. class clOnlineExam;
  10. }
  11. class clOnlineExam : public QWidget
  12. {
  13. Q_OBJECT
  14. signals:
  15. void enterExam(CL_OPERATION_TYPE cot, __int64 nExamId, __int64 nExamStudentId,
  16. QString sCourseCode, QString sCourseName);
  17. public:
  18. explicit clOnlineExam(QWidget *parent = nullptr);
  19. ~clOnlineExam();
  20. void setUI(const int nWidth, const int nHeight);
  21. void refreshExam();
  22. private slots:
  23. void onQueryExamList(CQueryExamList queryExamList);
  24. void onQueryExamEndList(CQueryExamEndList queryExamEndList);
  25. private:
  26. void showEvent(QShowEvent *event);
  27. QString getWeekCycles(std::vector<int> vWeek);
  28. Ui::clOnlineExam *ui;
  29. std::shared_ptr<QTimer> m_pObjectiveScoreTimer;
  30. std::shared_ptr<clObjectiveScore> m_pObjectiveScore;
  31. std::vector<CExamCourseInfo> m_vOnlieExamList;
  32. std::vector<CExamCourseInfo> m_vOnlieEndExamList;
  33. };
  34. #endif // CLONLINEEXAM_H