CStatisticCounters.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #pragma once
  2. #include "CppSQLite3.h"
  3. #include "dt.h"
  4. #include <string>
  5. #include <windows.h>
  6. #include <mutex>
  7. #include "CConfigBase.h"
  8. #include "CDataBaseOperate.h"
  9. namespace ns_db
  10. {
  11. using namespace std;
  12. #ifdef STATISTIC_COUNTERS_DLL
  13. #define DLL_STATISTIC_COUNTERS_API __declspec(dllexport)
  14. #else
  15. #define DLL_STATISTIC_COUNTERS_API
  16. #endif
  17. typedef struct
  18. {
  19. int Lot; //批次号
  20. int PtIndex; //固晶点编号
  21. int Attribute; //0表示正常数据;1表示接手动允许数据;2表示跳过数据。其它无意义
  22. int X_Offset; //X方向偏差
  23. int X_RefMin; //X方向参考范围小值
  24. int X_RefMax; //X方向参考范围大值
  25. int Y_Offset; //Y方向偏差
  26. int Y_RefMin; //Y方向参考范围小值
  27. int Y_RefMax; //Y方向参考范围大值
  28. int Theta_Offset; //Theta方向偏差
  29. int Theta_RefMin; //Theta方向参考范围小值
  30. int Theta_RefMax; //Theta方向参考范围大值
  31. long Time; //加工时间
  32. } CPK_LIST_STRUCT;
  33. typedef struct
  34. {
  35. string TableType;
  36. int TableId;
  37. string Action;
  38. string StartTime;
  39. string EndTime;
  40. int UseTime;
  41. }ACTION_TIME_STRUCT;
  42. class DLL_STATISTIC_COUNTERS_API CStatisticCounters : public CDataBaseOperate
  43. {
  44. public:
  45. CStatisticCounters();
  46. private:
  47. LONG SaveDB() override;
  48. LONG LoadDB() override;
  49. #pragma region BondHead
  50. private:
  51. std::vector<CONFIG_BASE_STRUCT> m_vecConfig_BondHead;
  52. public:
  53. #pragma endregion
  54. };
  55. }