fixedweightpackform.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef FIXEDWEIGHTPACKFORM_H
  2. #define FIXEDWEIGHTPACKFORM_H
  3. #include <QWidget>
  4. #include "handle/remotepackconfig.h"
  5. #include "packinfo.h"
  6. //#include "httprequestid.h"
  7. #include "handle/danjumuban.h"
  8. #include "handle/database.h"
  9. #include "handle/autopackutils.h"
  10. #include "QTimer"
  11. #include "handle/selectspecs.h"
  12. namespace Ui {
  13. class FixedWeightPackForm;
  14. }
  15. class FixedWeightPackForm : public QWidget
  16. {
  17. Q_OBJECT
  18. public:
  19. explicit FixedWeightPackForm(QWidget *parent = nullptr);
  20. ~FixedWeightPackForm();
  21. inline void setProInfo(const ProjectInfo & info){_info = info;}
  22. private slots:
  23. void on_pushBack_clicked();
  24. void on_pushStart_clicked();
  25. void on_addBoxList_clicked();
  26. void on_addPackList_clicked();
  27. void calcData();
  28. void on_pushPiLiang_clicked();
  29. void on_searchButton_clicked();
  30. public slots:
  31. void upconfig(const DaBaoConfig & config);
  32. void upDengjiInfo(const QList<DengJiConfigItem> & dengJis);
  33. void init();
  34. void changeSpecs();
  35. void xuanze_clicked(int row);
  36. signals:
  37. void back();
  38. private:
  39. Ui::FixedWeightPackForm *ui;
  40. ProjectInfo _info;
  41. QSharedPointer<PackInfo> packinfo;
  42. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  43. RemotePackConfig packConfig;
  44. HttpRequest _request;
  45. DanJuMuBan djmb;
  46. double netNum = 0.00;
  47. AutoPackUtils aputils;
  48. SelectSpecs specs;
  49. };
  50. #endif // FIXEDWEIGHTPACKFORM_H