clopPaperDetail.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef CLOPPAPERDETAIL_H
  2. #define CLOPPAPERDETAIL_H
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. namespace Ui {
  6. class clopPaperDetail;
  7. }
  8. class clopPaperDetail : public QWidget
  9. {
  10. Q_OBJECT
  11. signals:
  12. void heightChange(int nHeight);
  13. public:
  14. explicit clopPaperDetail(__int64 nExamRecordDataId, QString sCourseCode, bool bFromCache = false, QWidget *parent = nullptr);
  15. ~clopPaperDetail();
  16. int setUI(const int nWidth);
  17. private slots:
  18. void on_btn_expandPaper_clicked();
  19. void onFindExamRecordDataEntity(CFindExamRecordDataEntity findExamRecordDataEntity);
  20. void onGetExamRecordPaperStruct(CGetExamRecordPaperStruct getExamRecordPaperStruct);
  21. void onGetExamRecordQuestions(CGetExamRecordQuestions getExamRecordQuestions);
  22. void onGetQuestion(CGetQuestion getQuestion);
  23. private:
  24. void initQuestion(Json::Value jBody);
  25. void setStudentAnswer(int nOrder, QString sStudentAnswer);
  26. Ui::clopPaperDetail *ui;
  27. __int64 m_nExamId;
  28. QString m_sPaperType;
  29. __int64 m_nExamRecordDataId;
  30. QString m_sCourseCode;
  31. std::vector<CPaperGroupStruct> m_vPaperGroupStruct;
  32. bool m_bFromCache;
  33. };
  34. #endif // CLOPPAPERDETAIL_H