selectvalueform.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef SELECTVALUEFORM_H
  2. #define SELECTVALUEFORM_H
  3. #include <QWidget>
  4. #include "configinfo.h"
  5. #include "handle/httprequest.h"
  6. #include "globalinfo.h"
  7. namespace Ui {
  8. class SelectValueForm;
  9. }
  10. //TODO: 小宋 从GlobalInfo::this_()->project().values() 取出所有,保存,然后自己保存下标在上层做分页
  11. class SelectValueForm : public QWidget
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit SelectValueForm(QWidget *parent = nullptr);
  16. ~SelectValueForm();
  17. // void getInfo(int page, int pageListNum = 20);
  18. inline void setStatus(int staus){status = staus;}
  19. public slots:
  20. void Start();
  21. signals:
  22. void back();
  23. void backFandU();
  24. void selectProject(QString batchno);
  25. private slots:
  26. void result(int code, const QJsonObject & body);
  27. void refPage(int page, int pageListNum = 20);
  28. void parseObject(const QJsonObject & obj);
  29. void on_pushPrev_clicked();
  30. void on_pushNext_clicked();
  31. void on_searchButton_clicked();
  32. void on_backMainButton_clicked();
  33. void on_pushButton_2_clicked();
  34. void on_back_Button_clicked();
  35. void on_closeButton_clicked();
  36. private:
  37. Ui::SelectValueForm *ui;
  38. int nowPage;
  39. int pageListNum;
  40. int totlePage;
  41. int totleNum;
  42. HttpRequest _request;
  43. int status;
  44. QList<QSharedPointer<ProjectInfo>> prolist;
  45. GlobalInfo *glo = GlobalInfo::this_();
  46. };
  47. #endif // SELECTVALUEFORM_H