EquipDataCylinder.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /**************************************************************************************************
  2. 版本所有(C), 2020-2022, 北京普达迪泰
  3. ***************************************************************************************************
  4. 文 件 名: EquipDataCylinder.h
  5. 功能描述: 实体类-圆柱
  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 EquipDataCylinder : public CObject
  19. {
  20. public:
  21. EquipDataCylinder();
  22. virtual ~EquipDataCylinder();
  23. // 任务ID
  24. DWORD m_iTaskId;
  25. // 设备编号
  26. CString m_szEquipCode;
  27. // 项目ID
  28. DWORD m_iItemId;
  29. // 子项目ID
  30. DWORD m_iSubItemId;
  31. // 标题
  32. CString m_szCylinderTitle;
  33. // 编码
  34. CString m_szCylinderCode;
  35. // 终点1
  36. DOUBLE m_fPoint1X;
  37. DOUBLE m_fPoint1Y;
  38. DOUBLE m_fPoint1Z;
  39. // 终点2
  40. DOUBLE m_fPoint2X;
  41. DOUBLE m_fPoint2Y;
  42. DOUBLE m_fPoint2Z;
  43. // 长度
  44. DOUBLE m_fCylinderLength;
  45. // 半径
  46. DOUBLE m_fCylinderRadius;
  47. // 描述
  48. CString m_szCylinderDesc;
  49. public:
  50. // TaskID
  51. void SetTaskId(DWORD iTaskId) { m_iTaskId = iTaskId; }
  52. DWORD GetTaskId() const { return m_iTaskId; }
  53. // 设备编号
  54. void SetEquipCode(LPCTSTR szEquipCode) { m_szEquipCode = szEquipCode; }
  55. CString GetEquipCode() const { return m_szEquipCode; }
  56. // 项目ID
  57. void SetItemId(int iItemId) { m_iItemId = iItemId; }
  58. DWORD GetItemId() const { return m_iItemId; }
  59. // 子项目ID
  60. void SetSubItemId(int iSubItemId) { m_iSubItemId = iSubItemId; }
  61. DWORD GetSubItemId() const { return m_iSubItemId; }
  62. // 标题
  63. void SetCylinderTitle(LPCTSTR szCylinderTitle) { m_szCylinderTitle = szCylinderTitle; }
  64. CString GetCylinderTitle() const { return m_szCylinderTitle; }
  65. // 编码
  66. void SetCylinderCode(LPCTSTR szCylinderCode) { m_szCylinderCode = szCylinderCode; }
  67. CString GetCylinderCode() const { return m_szCylinderCode; }
  68. // 终点1
  69. void SetPoint1X(DOUBLE fPoint1X) { m_fPoint1X = fPoint1X; }
  70. DOUBLE GetPoint1X() const { return m_fPoint1X; }
  71. void SetPoint1Y(DOUBLE fPoint1Y) { m_fPoint1Y = fPoint1Y; }
  72. DOUBLE GetPoint1Y() const { return m_fPoint1Y; }
  73. void SetPoint1Z(DOUBLE fPoint1Z) { m_fPoint1Z = fPoint1Z; }
  74. DOUBLE GetPoint1Z() const { return m_fPoint1Z; }
  75. // 终点2
  76. void SetPoint2X(DOUBLE fPoint2X) { m_fPoint2X = fPoint2X; }
  77. DOUBLE GetPoint2X() const { return m_fPoint2X; }
  78. void SetPoint2Y(DOUBLE fPoint2Y) { m_fPoint2Y = fPoint2Y; }
  79. DOUBLE GetPoint2Y() const { return m_fPoint2Y; }
  80. void SetPoint2Z(DOUBLE fPoint2Z) { m_fPoint2Z = fPoint2Z; }
  81. DOUBLE GetPoint2Z() const { return m_fPoint2Z; }
  82. // 半径
  83. void SetCylinderRadius(DOUBLE fCylinderRadius) { m_fCylinderRadius = fCylinderRadius; }
  84. DOUBLE GetCylinderRadius() const { return m_fCylinderRadius; }
  85. // Length
  86. void SetCylinderLength(DOUBLE fCylinderLength) { m_fCylinderLength = fCylinderLength; }
  87. DOUBLE GetCylinderLength() const { return m_fCylinderLength; }
  88. // 描述
  89. void SetCylinderDesc(LPCTSTR szCylinderDesc) { m_szCylinderDesc = szCylinderDesc; }
  90. CString GetCylinderDesc() const { return m_szCylinderDesc; }
  91. };