fixedweightpackform.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef FIXEDWEIGHTPACKFORM_H
  2. #define FIXEDWEIGHTPACKFORM_H
  3. #include <QWidget>
  4. #include "handle/remotepackconfig.h"
  5. #include "QTimer"
  6. #include "globalinfo.h"
  7. #include "handle/packinfoseed2server.h"
  8. #include "handle/packinfomanger.h"
  9. namespace Ui {
  10. class FixedWeightPackForm;
  11. }
  12. class FixedWeightPackForm : public QWidget
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit FixedWeightPackForm(QWidget *parent = nullptr);
  17. ~FixedWeightPackForm();
  18. void setProInfo(const QSharedPointer<ProjectInfo> & info);
  19. private slots:
  20. void on_pushBack_clicked();
  21. void on_addBoxList_clicked();
  22. void on_addPackList_clicked();
  23. void calcData();
  24. void on_pushPiLiang_clicked();
  25. void on_searchButton_clicked();
  26. void on_pushContinue_clicked();
  27. void on_showMaoZhong_stateChanged(int);
  28. void on_pushEditBatch_clicked();
  29. public slots:
  30. void upconfig(/*const DaBaoConfig & config*/);
  31. void upDengjiInfo(/*const QList<DengJiConfigItem> & dengJis*/);
  32. void changeSpecs();
  33. void xuanZe_clicked(QString batchno);
  34. void del_clicked(int row);
  35. void Makeup_clicked(int row);
  36. void edit_clicked(int row);
  37. private:
  38. void init();
  39. void checkPackInfo();
  40. void addTableWidget(QSharedPointer<BoxInfo> box, int row);
  41. void restTableWidget();
  42. void updateTableWidget(QList<QSharedPointer<ProjectInfo>> & list);
  43. void upSum();
  44. signals:
  45. void back();
  46. private:
  47. Ui::FixedWeightPackForm *ui;
  48. QSharedPointer<ProjectInfo> _info;
  49. QSharedPointer<PackInfo> packinfo;
  50. QMap<QString,DengJiConfigItem> dengjiMap;// <name,详细信息>
  51. RemotePackConfig packConfig;
  52. HttpRequest _request;
  53. QList<QSharedPointer<ProjectInfo>> prolist;
  54. GlobalInfo * glo = GlobalInfo::this_();
  55. PackInfoSeed2Server *packServer;
  56. PackInfoManger *Manger;// = GlobalInfo::this_()->packInfoManger();
  57. double netNum = 0.00;
  58. double gross_weight = 0.0;
  59. int row;
  60. };
  61. #endif // FIXEDWEIGHTPACKFORM_H