uncertainweightpackform.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. #include "handle/danjumuban.h"
  12. namespace Ui {
  13. class UncertainWeightPackForm;
  14. }
  15. class UncertainWeightPackForm : public QWidget
  16. {
  17. Q_OBJECT
  18. public:
  19. explicit UncertainWeightPackForm(QWidget *parent = nullptr);
  20. ~UncertainWeightPackForm();
  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_handleRead_2_clicked();
  29. void on_tongshuguding_currentIndexChanged(const QString &arg1);
  30. void on_tongshuxianzhi_stateChanged(int arg1);
  31. public slots:
  32. void upconfig(const DaBaoConfig & config);
  33. void upDengjiInfo(const QList<DengJiConfigItem> & dengJis);
  34. void init();
  35. signals:
  36. void back();
  37. private:
  38. Ui::UncertainWeightPackForm *ui;
  39. ProjectInfo _info;
  40. QSharedPointer<PackInfo> packinfo;
  41. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  42. RemotePackConfig packConfig;
  43. HttpRequest _request;
  44. AutoPackUtils aputils;
  45. DanJuMuBan djmb;
  46. bool autoRead;
  47. double netNum = 0.00;
  48. bool istubeNumTure;
  49. int tubeNumMax;
  50. int tubeNumMin;
  51. };
  52. #endif // UNCERTAINWEIGHTPACKFORM_H