uncertainweightpackform.h 1.8 KB

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