EquipDataPoint.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**************************************************************************************************
  2. 版本所有(C), 2020-2022, 北京普达迪泰
  3. ***************************************************************************************************
  4. 文 件 名: EquipDataPoint.h
  5. 功能描述: 实体类-Point
  6. 版 本 号: 1.00初版
  7. 作 者: HYF
  8. 生成日期; 2021-12-20
  9. 最近修改:
  10. 函数列表:
  11. 修改历史:
  12. 1.日 期 :2021-12-20
  13. 作 者 : HYF
  14. 修改内容 : 创建文件
  15. **************************************************************************************************/
  16. #pragma once
  17. #include <afx.h>
  18. class EquipDataPoint : public CObject
  19. {
  20. public:
  21. EquipDataPoint();
  22. virtual ~EquipDataPoint();
  23. private:
  24. // 任务ID
  25. DWORD m_iTaskId;
  26. // 设备编号
  27. CString m_szEquipCode;
  28. // 项目ID
  29. DWORD m_iItemId;
  30. // 子项目ID
  31. DWORD m_iSubItemId;
  32. // 标题
  33. CString m_szPointTitle;
  34. // 编码
  35. CString m_szPointCode;
  36. // 理论值
  37. DOUBLE m_fPointEX;
  38. DOUBLE m_fPointEY;
  39. DOUBLE m_fPointEZ;
  40. // 实际值
  41. DOUBLE m_fPointAX;
  42. DOUBLE m_fPointAY;
  43. DOUBLE m_fPointAZ;
  44. // 总量
  45. DOUBLE m_fPointTotal;
  46. // 描述
  47. CString m_szPointDesc;
  48. public:
  49. // TaskID
  50. void SetTaskId(DWORD iTaskId) { m_iTaskId = iTaskId; }
  51. DWORD GetTaskId() const { return m_iTaskId; }
  52. // 设备编号
  53. void SetEquipCode(LPCTSTR szEquipCode) { m_szEquipCode = szEquipCode; }
  54. CString GetEquipCode() const { return m_szEquipCode; }
  55. // 项目ID
  56. void SetItemId(int iItemId) { m_iItemId = iItemId; }
  57. DWORD GetItemId() const { return m_iItemId; }
  58. // 子项目ID
  59. void SetSubItemId(int iSubItemId) { m_iSubItemId = iSubItemId; }
  60. DWORD GetSubItemId() const { return m_iSubItemId; }
  61. // 标题
  62. void SetPointTitle(LPCTSTR szPointTitle) { m_szPointTitle = szPointTitle; }
  63. CString GetPointTitle() const { return m_szPointTitle; }
  64. // 编码
  65. void SetPointCode(LPCTSTR szPointCode) { m_szPointCode = szPointCode; }
  66. CString GetPointCode() const { return m_szPointCode; }
  67. // 理论值
  68. void SetPointEX(DOUBLE fPointEX) { m_fPointEX = fPointEX; }
  69. DOUBLE GetPointEX() const { return m_fPointEX; }
  70. void SetPointEY(DOUBLE fPointEY) { m_fPointEY = fPointEY; }
  71. DOUBLE GetPointEY() const { return m_fPointEY; }
  72. void SetPointEZ(DOUBLE fPointEZ) { m_fPointEZ = fPointEZ; }
  73. DOUBLE GetPointEZ() const { return m_fPointEZ; }
  74. // 实际值
  75. void SetPointAX(DOUBLE fPointAX) { m_fPointAX = fPointAX; }
  76. DOUBLE GetPointAX() const { return m_fPointAX; }
  77. void SetPointAY(DOUBLE fPointAY) { m_fPointAY = fPointAY; }
  78. DOUBLE GetPointAY() const { return m_fPointAY; }
  79. void SetPointAZ(DOUBLE fPointAZ) { m_fPointAZ = fPointAZ; }
  80. DOUBLE GetPointAZ() const { return m_fPointAZ; }
  81. // 总量
  82. void SetPointTotal(DOUBLE fPointTotal) { m_fPointTotal = fPointTotal; }
  83. DOUBLE GetPointTotal() const { return m_fPointTotal; }
  84. // 描述
  85. void SetPointDesc(LPCTSTR szPointDesc) { m_szPointDesc = szPointDesc; }
  86. CString GetPointDesc() const { return m_szPointDesc; }
  87. protected:
  88. DECLARE_SERIAL(EquipDataPoint)
  89. };