uncertainweightpackform.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef UNCERTAINWEIGHTPACKFORM_H
  2. #define UNCERTAINWEIGHTPACKFORM_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. namespace Ui {
  12. class UncertainWeightPackForm;
  13. }
  14. class UncertainWeightPackForm : public QWidget
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit UncertainWeightPackForm(QWidget *parent = nullptr);
  19. ~UncertainWeightPackForm();
  20. inline void setProInfo(const ProjectInfo & info){_info = info;}
  21. private slots:
  22. void on_pushBack_clicked();
  23. void on_pushStart_clicked();
  24. void on_addBoxList_clicked();
  25. void on_addPackList_clicked();
  26. void calcData();
  27. void on_handleRead_2_clicked();
  28. void on_tongshuguding_currentIndexChanged(const QString &arg1);
  29. void on_tongshuxianzhi_stateChanged(int arg1);
  30. public slots:
  31. void upconfig(const DaBaoConfig & config);
  32. void upDengjiInfo(const QList<DengJiConfigItem> & dengJis);
  33. void init();
  34. signals:
  35. void back();
  36. private:
  37. Ui::UncertainWeightPackForm *ui;
  38. ProjectInfo _info;
  39. QSharedPointer<PackInfo> packinfo;
  40. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  41. RemotePackConfig packConfig;
  42. HttpRequest _request;
  43. AutoPackUtils aputils;
  44. bool autoRead;
  45. double netNum = 0.00;
  46. bool istubeNumTure;
  47. int tubeNumMax;
  48. int tubeNumMin;
  49. };
  50. #endif // UNCERTAINWEIGHTPACKFORM_H