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"
//子界面的类型(顺序无所谓)
enum EChildViewType
{
_ChildView_NULL = 0,
_ChildView_PCS,//生产流界面
_ChildView_WorkPrepare,//预热准备
_ChildView_WorkWaferCnt,//加工片数统计
_ChildView_Recipe,//recipe
_ChildView_LaserPathState,//激光光路状态
_ChildView_LaserDeviceState,//激光器状态
_ChildView_Robot,//传片机械手(包括准直器)
_ChildView_IOState,//IO界面
_ChildView_EventLog,//事件记录
_ChildView_AlarmLog,//报警记录
_ChildView_WaferHistory,//wafer 加工记录
_ChildView_CheckHistory,//检测记录
_ChildView_RealTimeDataHistory,//实时数据记录
_ChildView_BeamDataHistory,//光斑数据记录
_ChildView_ConfigHistory,//光斑数据记录
_ChildView_ParHistory,//参数修改记录
_ChildView_DataAnalysis,//数据分析
_ChildView_DeviceMaintenance,//设备维护
_ChildView_LaserPowCheck,//功率点检
_ChildView_SysParaSet,//系统参数设置
_ChildView_PCS_WaferInfo,//选中port 的wafer 信息
_ChildView_PCS_WaferTransfer,//手动Wafer 传输
_ChildView_PCS_AnnealCh,//退火腔室信息
_ChildView_RecipeScanAreaEdit,//退火图形区域编辑
_ChildView_LoginHistory,
_ChildView_JobHistory,//光斑数据记录
};
class CMyDlgView : public CDialogEx
{
DECLARE_DYNAMIC(CMyDlgView)
public:
CMyDlgView(UINT nIDTemplate, CWnd* pParent = NULL); // 标准构造函数
virtual ~CMyDlgView();
virtual void OnViewOpen(){};//响应view 打开的时候
virtual void ChangeItemState(){};//检查是否需要锁定界面上的控件
virtual void SetTextCtrlItemID(){};//初始化Edit 控件ID
virtual void UpdateLanguageTxt(){};//切换语言显示
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;//用来判断显示内容是否变化
set<int> m_CtrlColorIDSet;//用来控制edit 颜色
bool m_bFirstOpen;//是否第一次打开
// 子窗口位置
CRect m_rChildRect;
CEdit m_EditChild;
CDialogEx *m_pCurActiveView;//当前激活的view
EChildViewType m_CurChildViewType;//当前的子界面类型
EChildViewType m_SwitchChildViewType;//切换的子界面类型
};
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;