selectvalueform.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. void on_RefreshButton_clicked();
  37. private:
  38. Ui::SelectValueForm *ui;
  39. int nowPage;
  40. int pageListNum;
  41. int totlePage;
  42. int totleNum;
  43. HttpRequest _request;
  44. int status;
  45. QList<QSharedPointer<ProjectInfo>> prolist;
  46. GlobalInfo *glo = GlobalInfo::this_();
  47. };
  48. #endif // SELECTVALUEFORM_H