uncertainweightpackform.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. void del_clicked(int row);
  40. void Makeup_clicked(int row);
  41. public:
  42. void setTableWidget();
  43. void addTableWidget(QSharedPointer<BoxInfo> box);
  44. signals:
  45. void back();
  46. private:
  47. Ui::UncertainWeightPackForm *ui;
  48. ProjectInfo _info;
  49. QSharedPointer<PackInfo> packinfo;
  50. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  51. RemotePackConfig packConfig;
  52. HttpRequest _request;
  53. AutoPackUtils aputils;
  54. DanJuMuBan djmb;
  55. bool autoRead;
  56. SelectSpecs specs;
  57. double netNum = 0.00;
  58. bool istubeNumTure;
  59. int tubeNumMax;
  60. int tubeNumMin;
  61. };
  62. #endif // UNCERTAINWEIGHTPACKFORM_H