#pragma once #include "Global_Define.h" typedef struct _HISTORY_RESULT_SAVE_HEADER { BOOL bResult; int nInsStageNo; int nDefectCnt; int nCrackCount; int nBrokenCount; int nChipCount; int nChamferCount; int nBurrCount; int nUnknownCount; int nProAlarmResultCountA; int nProAlarmResultCountB; int nProAlarmResultCountC; int nProAlarmResultCountD; BOOL bProfileJudge[MAX_PROFILE_SETTING_COUNT]; int nProfileDiff[MAX_PROFILE_SETTING_COUNT]; BOOL bChamferJudgeUp[MAX_PROFILE_SETTING_COUNT]; int nChamferThickUp[MAX_PROFILE_SETTING_COUNT]; BOOL bChamferJudgeDn[MAX_PROFILE_SETTING_COUNT]; int nChamferThickDn[MAX_PROFILE_SETTING_COUNT]; int nAVGProfileDiff[MAX_VIEWINFO_GRD_CNT + 2]; int nAVGChamferThickUp[MAX_VIEWINFO_GRD_CNT + 2]; int nAVGChamferThickDn[MAX_VIEWINFO_GRD_CNT + 2]; } HISTORY_RESULT_SAVE_HEADER, *pHISTORY_RESULT_SAVE_HEADER; typedef struct _HISTORY_RESULT_SAVE_ { char szEndTime[100]; char szGlassID[100]; char szHostID[100]; HISTORY_RESULT_SAVE_HEADER Header; _HISTORY_RESULT_SAVE_() { ZeroMemory(this, sizeof(_HISTORY_RESULT_SAVE_)); } } HISTORY_RESULT_SAVE, *pHISTORY_RESULT_SAVE; typedef struct _HISTORY_RESULT : public HISTORY_RESULT_SAVE_HEADER { CString strGlassID; CString strHostID; CString strEndTime; _HISTORY_RESULT() { Reset(); } void Reset() { strGlassID.Empty(); strHostID.Empty(); strEndTime.Empty(); nInsStageNo = -1; nDefectCnt = 0; bResult = TRUE; ZeroMemory(bProfileJudge,sizeof(BOOL)*MAX_PROFILE_SETTING_COUNT); ZeroMemory(bChamferJudgeUp,sizeof(BOOL)*MAX_PROFILE_SETTING_COUNT); ZeroMemory(bChamferJudgeDn,sizeof(BOOL)*MAX_PROFILE_SETTING_COUNT); ZeroMemory(nProfileDiff,sizeof(int)*MAX_PROFILE_SETTING_COUNT); ZeroMemory(nChamferThickUp,sizeof(int)*MAX_PROFILE_SETTING_COUNT); ZeroMemory(nChamferThickDn,sizeof(int)*MAX_PROFILE_SETTING_COUNT); } } HISTORY_RESULT, *pHISTORY_RESULT;