#ifndef UNCERTAINWEIGHTPACKFORM_H #define UNCERTAINWEIGHTPACKFORM_H #include #include "handle/remotepackconfig.h" #include "packinfo.h" //#include "httprequestid.h" #include "handle/danjumuban.h" #include "handle/database.h" #include "handle/autopackutils.h" #include "QTimer" #include "handle/danjumuban.h" #include "handle/selectspecs.h" namespace Ui { class UncertainWeightPackForm; } class UncertainWeightPackForm : public QWidget { Q_OBJECT public: explicit UncertainWeightPackForm(QWidget *parent = nullptr); ~UncertainWeightPackForm(); inline void setProInfo(const ProjectInfo & info){_info = info;} private slots: void on_pushBack_clicked(); void on_pushStart_clicked(); void on_addBoxList_clicked(); void on_addPackList_clicked(); void calcData(); void on_handleRead_2_clicked(); void on_tongshuguding_currentIndexChanged(const QString &arg1); void on_tongshuxianzhi_stateChanged(int arg1); void on_searchButton_clicked(); public slots: void upconfig(const DaBaoConfig & config); void upDengjiInfo(const QList & dengJis); void init(); void changeSpecs(); void xuanZe_clicked(int row); void del_clicked(int row); void Makeup_clicked(int row); public: void setTableWidget(); void addTableWidget(QSharedPointer box); signals: void back(); private: Ui::UncertainWeightPackForm *ui; ProjectInfo _info; QSharedPointer packinfo; QMap dengjiMap;// RemotePackConfig packConfig; HttpRequest _request; AutoPackUtils aputils; DanJuMuBan djmb; bool autoRead; SelectSpecs specs; double netNum = 0.00; bool istubeNumTure; int tubeNumMax; int tubeNumMin; }; #endif // UNCERTAINWEIGHTPACKFORM_H