You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.0 KiB
C

#pragma once
#include "GlobalDefine.h"
#include "ProgramLaserTuiHuo.h"
//<2F>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><CBB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ν)
enum EChildViewType
{
_ChildView_NULL = 0,
_ChildView_PCS,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
_ChildView_WorkPrepare,//Ԥ<><D4A4>׼<EFBFBD><D7BC>
_ChildView_WorkWaferCnt,//<2F>ӹ<EFBFBD>Ƭ<EFBFBD><C6AC>ͳ<EFBFBD><CDB3>
_ChildView_Recipe,//recipe
_ChildView_LaserPathState,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>·״̬
_ChildView_LaserDeviceState,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
_ChildView_Robot,//<2F><>Ƭ<EFBFBD><C6AC>е<EFBFBD><D0B5>(<28><><EFBFBD><EFBFBD>׼ֱ<D7BC><D6B1>)
_ChildView_IOState,//IO<49><4F><EFBFBD><EFBFBD>
_ChildView_EventLog,//<2F>¼<EFBFBD><C2BC><EFBFBD>¼
_ChildView_AlarmLog,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼
_ChildView_WaferHistory,//wafer <20>ӹ<EFBFBD><D3B9><EFBFBD>¼
_ChildView_CheckHistory,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼
_ChildView_RealTimeDataHistory,//ʵʱ<CAB5><CAB1><EFBFBD>ݼ<EFBFBD>¼
_ChildView_BeamDataHistory,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݼ<EFBFBD>¼
_ChildView_ConfigHistory,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݼ<EFBFBD>¼
_ChildView_ParHistory,//<2F><><EFBFBD><EFBFBD><EFBFBD>޸ļ<DEB8>¼
_ChildView_DataAnalysis,//<2F><><EFBFBD>ݷ<EFBFBD><DDB7><EFBFBD>
_ChildView_DeviceMaintenance,//<2F>豸ά<E8B1B8><CEAC>
_ChildView_LaserPowCheck,//<2F><><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD>
_ChildView_SysParaSet,//ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
_ChildView_PCS_WaferInfo,//ѡ<><D1A1>port <20><>wafer <20><>Ϣ
_ChildView_PCS_WaferTransfer,//<2F>ֶ<EFBFBD>Wafer <20><><EFBFBD><EFBFBD>
_ChildView_PCS_AnnealCh,//<2F>˻<EFBFBD>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD>Ϣ
_ChildView_RecipeScanAreaEdit,//<2F>˻<EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
_ChildView_LoginHistory,
_ChildView_JobHistory,//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݼ<EFBFBD>¼
};
class CMyDlgView : public CDialogEx
{
DECLARE_DYNAMIC(CMyDlgView)
public:
CMyDlgView(UINT nIDTemplate, CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
virtual ~CMyDlgView();
virtual void OnViewOpen(){};//<2F><>Ӧview <20>򿪵<EFBFBD>ʱ<EFBFBD><CAB1>
virtual void ChangeItemState(){};//<2F><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵĿؼ<C4BF>
virtual void SetTextCtrlItemID(){};//<2F><>ʼ<EFBFBD><CABC>Edit <20>ؼ<EFBFBD>ID
virtual void UpdateLanguageTxt(){};//<2F>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
void SetItemText(int ID,CString Str,bool bFillEdit = true);
int GetIDD(){return m_IDD;};
protected:
DECLARE_MESSAGE_MAP()
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg BOOL PreTranslateMessage(MSG* pMsg);
CMyDlgView *GetChildView(EChildViewType ChildViewType);
void SetActiveView(EChildViewType ChildViewType);
void ExpandTree(CTreeCtrl* pTreeCtrl,HTREEITEM hItem);
protected:
int m_IDD;
vector<CDlgItemStr> m_DlgItemStrVec;//<2F><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>
set<int> m_CtrlColorIDSet;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>edit <20><>ɫ
bool m_bFirstOpen;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>һ<EFBFBD>δ<EFBFBD><CEB4><EFBFBD>
// <20>Ӵ<EFBFBD><D3B4><EFBFBD>λ<EFBFBD><CEBB>
CRect m_rChildRect;
CEdit m_EditChild;
CDialogEx *m_pCurActiveView;//<2F><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>view
EChildViewType m_CurChildViewType;//<2F><>ǰ<EFBFBD><C7B0><EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
EChildViewType m_SwitchChildViewType;//<2F>л<EFBFBD><D0BB><EFBFBD><EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
};
extern CMyDlgView *gChildPCS;
extern CMyDlgView *gChildWorkPrepare;
extern CMyDlgView *gChildWorkWaferCnt;
extern CMyDlgView *gChildRecipe;
extern CMyDlgView *gChildLaserPathState;
extern CMyDlgView *gChildLaserDeviceState;
extern CMyDlgView *gChildRobot;
extern CMyDlgView *gChildIOState;
extern CMyDlgView *gChildLaserPowCheck;
extern CMyDlgView *gChildDeviceMaintenance;
extern CMyDlgView *gChildSysParaSet;
extern CMyDlgView *gChildEventLog;
extern CMyDlgView *gChildAlarmLog;
extern CMyDlgView *gChildWaferHistory;
extern CMyDlgView *gChildCheckHistory;
extern CMyDlgView *gDlgChildRealTimeDataHistory;
extern CMyDlgView *gDlgChildBeamDataHistory;
extern CMyDlgView *gDlgChildConfigHistory;
extern CMyDlgView *gDlgChildJobHistory;
extern CMyDlgView *gChildParaHistory;
extern CMyDlgView *gDlgChildLoginHistory;
extern CMyDlgView *gChildDataAnalysis;
extern CMyDlgView *gChildPCS_WaferInfo;
extern CMyDlgView *gChildPCS_WaferTransfer;
extern CMyDlgView *gChildPCS_AnnealCh;