From 33f077385d8f15b0aec64e5be280738f451d6ae1 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 25 四月 2025 13:49:08 +0800
Subject: [PATCH] 1.补充完善CJobDataS的函数;
---
SourceCode/Bond/Servo/CJobDataS.h | 24 ++++++++
SourceCode/Bond/Servo/CJobDataS.cpp | 126 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 150 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CJobDataS.cpp b/SourceCode/Bond/Servo/CJobDataS.cpp
index cc07f63..f474931 100644
--- a/SourceCode/Bond/Servo/CJobDataS.cpp
+++ b/SourceCode/Bond/Servo/CJobDataS.cpp
@@ -102,6 +102,132 @@
m_strGlass2Id = pszId;
}
+ int CJobDataS::getJobType()
+ {
+ return m_nJobType;
+ }
+
+ void CJobDataS::setJobType(int type)
+ {
+ m_nJobType = type;
+ }
+
+ int CJobDataS::getMaterialsType()
+ {
+ return m_nMaterialsType;
+ }
+
+ void CJobDataS::setMaterialsType(int type)
+ {
+ m_nMaterialsType = type;
+ }
+
+ int CJobDataS::getProductType()
+ {
+ return m_nProductType;
+ }
+
+ void CJobDataS::setProductType(int type)
+ {
+ m_nProductType = type;
+ }
+
+ int CJobDataS::getDummyType()
+ {
+ return m_nDummyType;
+ }
+
+ void CJobDataS::setDummyType(int type)
+ {
+ m_nDummyType = type;
+ }
+
+ int CJobDataS::getSkipFlag()
+ {
+ return m_nSkipFlag;
+ }
+
+ void CJobDataS::setSkipFlag(int flag)
+ {
+ m_nSkipFlag = flag;
+ }
+
+ int CJobDataS::getProcessFlag()
+ {
+ return m_nProcessFlag;
+ }
+
+ void CJobDataS::setProcessFlag(int flag)
+ {
+ m_nProcessFlag = flag;
+ }
+
+ int CJobDataS::getProcessResonCode()
+ {
+ return m_nProcessResonCode;
+ }
+
+ void CJobDataS::setProcessResonCode(int code)
+ {
+ m_nProcessResonCode = code;
+ }
+
+ int CJobDataS::getLastGlassFlag()
+ {
+ return m_nLastGlassFlag;
+ }
+
+ void CJobDataS::setLastGlassFlag(int flag)
+ {
+ m_nLastGlassFlag = flag;
+ }
+
+ int CJobDataS::getFirstGlassFlag()
+ {
+ return m_nFirstGlassFlag;
+ }
+
+ void CJobDataS::setFirstGlassFlag(int flag)
+ {
+ m_nFirstGlassFlag = flag;
+ }
+
+ int CJobDataS::getQTime(int index)
+ {
+ if (0 <= index && index <= 2) {
+ return m_nQTime[index];
+ }
+
+ return 0;
+ }
+
+ void CJobDataS::setQTime(int index, int time)
+ {
+ if (0 <= index && index <= 2) {
+ m_nQTime[index] = time;
+ }
+ }
+
+ int CJobDataS::getQTimeOverFlag()
+ {
+ return m_nQTimeOverFlag;
+ }
+
+ void CJobDataS::setQTimeOverFlag(int flag)
+ {
+ m_nQTimeOverFlag = flag;
+ }
+
+ int CJobDataS::getMasterRecipe()
+ {
+ return m_nMasterRecipe;
+ }
+
+ void CJobDataS::setMasterRecipe(int recipe)
+ {
+ m_nMasterRecipe = recipe;
+ }
+
std::string& CJobDataS::getProductRecipeId()
{
return m_strProductRecipeId;
diff --git a/SourceCode/Bond/Servo/CJobDataS.h b/SourceCode/Bond/Servo/CJobDataS.h
index 757832a..a2e3964 100644
--- a/SourceCode/Bond/Servo/CJobDataS.h
+++ b/SourceCode/Bond/Servo/CJobDataS.h
@@ -23,6 +23,30 @@
void setGlass1Id(const char* pszId);
std::string& getGlass2Id();
void setGlass2Id(const char* pszId);
+ int getJobType();
+ void setJobType(int type);
+ int getMaterialsType();
+ void setMaterialsType(int type);
+ int getProductType();
+ void setProductType(int type);
+ int getDummyType();
+ void setDummyType(int type);
+ int getSkipFlag();
+ void setSkipFlag(int flag);
+ int getProcessFlag();
+ void setProcessFlag(int flag);
+ int getProcessResonCode();
+ void setProcessResonCode(int code);
+ int getLastGlassFlag();
+ void setLastGlassFlag(int flag);
+ int getFirstGlassFlag();
+ void setFirstGlassFlag(int flag);
+ int getQTime(int index);
+ void setQTime(int index, int time);
+ int getQTimeOverFlag();
+ void setQTimeOverFlag(int flag);
+ int getMasterRecipe();
+ void setMasterRecipe(int recipe);
std::string& getProductRecipeId();
void setProductRecipeId(const char* pszId);
std::string& getPCode();
--
Gitblit v1.9.3