uncertainweightpackform.h 1.7 KB

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