fixedweightpackform.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. void del_clicked(int row);
  37. void Makeup_clicked(int row);
  38. public:
  39. void setTableWidget();
  40. void addTableWidget(QSharedPointer<BoxInfo> box);
  41. signals:
  42. void back();
  43. private:
  44. Ui::FixedWeightPackForm *ui;
  45. ProjectInfo _info;
  46. QSharedPointer<PackInfo> packinfo;
  47. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  48. RemotePackConfig packConfig;
  49. HttpRequest _request;
  50. DanJuMuBan djmb;
  51. double netNum = 0.00;
  52. AutoPackUtils aputils;
  53. SelectSpecs specs;
  54. int row;
  55. };
  56. #endif // FIXEDWEIGHTPACKFORM_H