uncertainweightpackform.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef UNCERTAINWEIGHTPACKFORM_H
  2. #define UNCERTAINWEIGHTPACKFORM_H
  3. #include <QWidget>
  4. #include "handle/remotepackconfig.h"
  5. #include "struct_/packinfo.h"
  6. //#include "httprequestid.h"
  7. //#include "handle/database.h"
  8. //#include "handle/autopackutils.h"
  9. #include "QTimer"
  10. //#include "handle/selectspecs.h"
  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. void on_searchButton_clicked();
  31. public slots:
  32. void upconfig(const DaBaoConfig & config);
  33. void upDengjiInfo(const QList<DengJiConfigItem> & dengJis);
  34. void init();
  35. void changeSpecs();
  36. void xuanZe_clicked(int row);
  37. void del_clicked(int row);
  38. void Makeup_clicked(int row);
  39. public:
  40. void setTableWidget();
  41. void addTableWidget(QSharedPointer<BoxInfo> box);
  42. signals:
  43. void back();
  44. private:
  45. Ui::UncertainWeightPackForm *ui;
  46. ProjectInfo _info;
  47. QSharedPointer<PackInfo> packinfo;
  48. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  49. RemotePackConfig packConfig;
  50. HttpRequest _request;
  51. // AutoPackUtils aputils;
  52. bool autoRead;
  53. // SelectSpecs specs;
  54. double netNum = 0.00;
  55. bool istubeNumTure;
  56. int tubeNumMax;
  57. int tubeNumMin;
  58. };
  59. #endif // UNCERTAINWEIGHTPACKFORM_H