uncertainweightpackform.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #ifndef UNCERTAINWEIGHTPACKFORM_H
  2. #define UNCERTAINWEIGHTPACKFORM_H
  3. #include <QWidget>
  4. #include "handle/remotepackconfig.h"
  5. #include "struct_/packinfo.h"
  6. #include "QTimer"
  7. #include "QMessageBox"
  8. #include "globalinfo.h"
  9. #include "editboxinfodialog.h"
  10. namespace Ui {
  11. class UncertainWeightPackForm;
  12. }
  13. class UncertainWeightPackForm : public QWidget
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit UncertainWeightPackForm(QWidget *parent = nullptr);
  18. ~UncertainWeightPackForm();
  19. void setProInfo(const QSharedPointer<ProjectInfo> & info);
  20. private slots:
  21. void on_addBoxList_clicked();
  22. void on_addPackList_clicked();
  23. void calcData();
  24. void on_tongshuguding_currentIndexChanged(const QString &arg1);
  25. void on_tongshuxianzhi_stateChanged(int arg1);
  26. void on_searchButton_clicked();
  27. void on_pushContinue_clicked();
  28. void on_showMaoZhong_stateChanged(int);
  29. void on_pushEditBatch_clicked();
  30. void on_pushNoSyncList_clicked();
  31. void on_pushSync_clicked();
  32. void on_backButton_clicked();
  33. void on_dingzhong_clicked();
  34. void on_ruku_stateChanged(int arg1);
  35. private:
  36. void updateTableWidget(QList<QSharedPointer<ProjectInfo>> & list);
  37. void init();
  38. void xuanZe_clicked(QString batchno);
  39. void del_clicked(int row);
  40. void Makeup_clicked(int row);
  41. void checkPackInfo();
  42. void EditBatch();
  43. public slots:
  44. void upconfig();
  45. void upDengjiInfo();
  46. void changeSpecs();
  47. void upWare();
  48. public:
  49. void addTableWidget(QSharedPointer<BoxInfo> box, int row);
  50. void restTableWidget();
  51. void upSum();
  52. void edit_clicked(int row);
  53. void save();
  54. signals:
  55. void back();
  56. void NoSyncList();
  57. void dingzhong();
  58. void backup(int i);
  59. private:
  60. Ui::UncertainWeightPackForm *ui;
  61. QSharedPointer<ProjectInfo> _info;
  62. QSharedPointer<PackInfo> packinfo;
  63. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  64. HttpRequest _request;
  65. // AutoPackUtils aputils;
  66. bool autoRead;
  67. bool isRuku = false;
  68. // SelectSpecs specs;
  69. QList<QSharedPointer<ProjectInfo>> prolist;
  70. GlobalInfo * glo = GlobalInfo::this_();
  71. PackInfoSeed2Server *packServer;
  72. PackInfoManger *Manger;
  73. double netNum = 0.00;
  74. double gross_weight = 0.0;
  75. bool istubeNumTure;
  76. int tubeNumMax;
  77. int tubeNumMin;
  78. };
  79. #endif // UNCERTAINWEIGHTPACKFORM_H