SDC C-Project CF Review 프로그램
LYW
2022-08-05 5f12658f37fed156e67b3318542c98f359341ffd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#pragma once
#include "CHCommonControls/GridCtrl.h"
#include "CHCommonControls/GridCell.h"
#include "CHCommonControls/GridCellCombo.h"
#include "CHCommonControls/GridCellCheck.h"
#include "CHCommonControls/FontStatic.h"
#include "afxwin.h"
#include "CHCommonControls/GridCtrl.h"
#include "DlgReflowMasterImage.h"
#define PLAN_INFO_GRID_COL_COUNT                2
#define LIGHT_INFO_GRID_ROW_COUNT                5
#define AFM_RECIPE_INFO_GRID_ROW_COUNT            6
#define SCHEDULE_INFO_GRID_ROW_COUNT            2 
#define SCHEDULE_INFO_GRID_COL_COUNT            5
#define SCHEDULE_RANGE_CNT_INFO_GRID_ROW_COUNT    2 
#define SCHEDULE_RANGE_CNT_INFO_GRID_COL_COUNT    4
#define REFLOW_PARAMETER_GRID_COL_COUNT            11
#define REFLOW_PARAMETER_GRID_ROW_COUNT            3
#define USER_DEFECT_INFO_GRID_COL_COUNT            8
 
// [2017:5:12]-[WEZASW] : BOE B7 ¼³ºñÀÇ Lens Index ¼³Á¤(RecipeEditor¿ÍÀÇ ¸ÉÇÎ)
enum RECIPE_MAGNIFICATION    { RECIPE_MAGNIFICATION_X2=0, RECIPE_MAGNIFICATION_X5, RECIPE_MAGNIFICATION_X10, RECIPE_MAGNIFICATION_X20, RECIPE_MAGNIFICATION_X50, RECIPE_MAGNIFICATION_COUNT };
enum RECIPE_REFLOW_CELLSIDE { RECIPE_REFLOW_CELLSIDE_TOP=0, RECIPE_REFLOW_CELLSIDE_LEFT, RECIPE_REFLOW_CELLSIDE_RIGHT,RECIPE_REFLOW_CELLSIDE_LEFTTOP, RECIPE_REFLOW_CELLSIDE_RIGHTTOP,
                              RECIPE_REFLOW_CELLSIDE_LEFTBOTTOM, RECIPE_REFLOW_CELLSIDE_RIGHTBOTTOM, RECIPE_REFLOW_CELLSIDE_BOTTOM, RECIPE_REFLOW_CELLSID_LEFTNOTCH, RECIPE_REFLOW_CELLSID_RIGHTNOTCH,
                              RECIPE_REFLOW_CELLSIDE_COUNT};
const CString strRecipeReflowCellside[RECIPE_REFLOW_CELLSIDE_COUNT] = {_T("TOP"), _T("LEFT"), _T("RIGHT"), _T("LT"), _T("RT"), _T("LB"), _T("RB"), _T("BOTTOM"), _T("LNOTCH"), _T("RNOTCH")};
enum RECIPE_REFLOW_INSPECTIONMODE { RECIPE_INSPECTIONMODE_REVIEW = 0, RECIPE_INSPECTIONMODE_WSI, RECIPE_INSPECTIONMODE_REVIEW_WSI, RECIPE_INSPECTIONMODE_REVIEW_WSI_USER, RECIPE_INSPECTIONMODE_REVIEW_USER, RECIPE_INSPECTIONMODE_REVIEW_WSI_MULTI_SHOT, RECIPE_INSPECTIONMODE_COUNT };
const CString strRecipeInspectionMode[RECIPE_INSPECTIONMODE_COUNT] = { _T("REFLOW"), _T("WSIREFLOW"), _T("REV&WSI"),_T("WSIUSER"),_T("USER"),_T("WSIMULTISHOT") };
 
 
 
// CDlgCommon ´ëÈ­ »óÀÚÀÔ´Ï´Ù.
 
class CDlgCommon : public CDialog
{
    DECLARE_DYNAMIC(CDlgCommon)
 
public:
    CDlgCommon(CWnd* pParent = NULL);   // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù.
    virtual ~CDlgCommon();
 
public:
    void InitPlanInfoGridControl();
    void FillPlanInfo();
 
    void InitLightInfoGridControl();
    void FillLightInfoInfo();
    void InitAFMRecipeGridControl();
    void FillAFMRecipeInfo();
    void InitScheduleGridControl();
    void FillScheduleInfo();
    void InitScheduleRangeCntGridControl();
    void FillScheduleRangeCntInfo();
    
    void InitReflowParameterGridControl();
    void FillReflowParameter();
    void InitUserDefectInfoGridControl();
    void FillUserDefectInfo();
 
    void UpdateDialogData();
    void UpdateSelectGlassSlot();
 
    void OnSetMaster(BOOL bSetMaster, int dir, CPoint* reflowPoints);
 
public:
    int m_nSelectPlanIdx;
    int m_nLightCount;
    int m_nAFMCount;
    /*< LYW 20220525 - #4157 ADD Start >*/
    UINT m_nradioGantryMode;
    /*< LYW 20220525 - #4157 ADD End >*/
    BOOL m_bSelectGlassSlot[TOTAL_GLASS_SLOT_COUNT];
    CFontStatic* m_ctrlStaticGlassSlot[TOTAL_GLASS_SLOT_COUNT];
 
// ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù.
    enum { IDD = IDD_DIALOG_REVIEW_RCP_EDITOR_COMMON };
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Áö¿øÀÔ´Ï´Ù.
 
    DECLARE_MESSAGE_MAP()
public:
    CDlgReflowMasterImage m_MasterDlg[3];
    CDlgReflowMasterImage m_ImageDlg;
 
    afx_msg void OnBnClickedButtonLoadMaster();
 
    /*< LYW 20220525 - #4157 ADD Start >*/
    afx_msg void OnClickRadioGantryMode(UINT ID);
    /*< LYW 20220525 - #4157 ADD End >*/
 
    afx_msg void OnBnClickedButtonRcpReviewReset();
    afx_msg void OnBnClickedButtonRcpReviewApply();
    afx_msg void OnGlassSlotClick(UINT nID);
    virtual BOOL OnInitDialog();
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    afx_msg void OnEnChangeEditRcpReviewPlanCount();
    afx_msg void OnEnChangeEditRcpReviewUserDefectCount();
    afx_msg void OnPlanInfoGridClick(NMHDR *pNotifyStruct, LRESULT* pResult);
    afx_msg void OnSelChange(NMHDR *pNotifyStruct, LRESULT* pResult);
    afx_msg void OnClickImageInfo(NMHDR *pNotifyStruct, LRESULT* pResult);
    afx_msg void OnUserPitch(int xpos, int xpitch, int xcount, int ypos, int ypitch, int ycount,int dir, int mode);
 
    int m_nPlanCount;
    int m_nUserDefectCount;
    CComboBox m_ctrlComboGlassType;
    CButton        m_ctrlAutoLight;
 
    CGridCtrl m_ctrlGridPlanInfo;
 
    CGridCtrl m_ctrlGridLightInfo;
    CGridCtrl m_ctrlGridAFMRecipeInfo;
    CGridCtrl m_ctrlGridReflowParameter;
    CGridCtrl m_ctrlGridUserDefectInfo;
    CGridCtrl m_ctrlGridScheduleInfo;
    CGridCtrl m_ctrlGridScheduleRangeCntInfo;
 
    CFontStatic m_ctrlStaticGlassSlot_01;
    CFontStatic m_ctrlStaticGlassSlot_02;
    CFontStatic m_ctrlStaticGlassSlot_03;
    CFontStatic m_ctrlStaticGlassSlot_04;
    CFontStatic m_ctrlStaticGlassSlot_05;
    CFontStatic m_ctrlStaticGlassSlot_06;
    CFontStatic m_ctrlStaticGlassSlot_07;
    CFontStatic m_ctrlStaticGlassSlot_08;
    CFontStatic m_ctrlStaticGlassSlot_09;
    CFontStatic m_ctrlStaticGlassSlot_10;
    CFontStatic m_ctrlStaticGlassSlot_11;
    CFontStatic m_ctrlStaticGlassSlot_12;
    CFontStatic m_ctrlStaticGlassSlot_13;
    CFontStatic m_ctrlStaticGlassSlot_14;
    CFontStatic m_ctrlStaticGlassSlot_15;
    CFontStatic m_ctrlStaticGlassSlot_16;
    CFontStatic m_ctrlStaticGlassSlot_17;
    CFontStatic m_ctrlStaticGlassSlot_18;
    CFontStatic m_ctrlStaticGlassSlot_19;
    CFontStatic m_ctrlStaticGlassSlot_20;
    CFontStatic m_ctrlStaticGlassSlot_21;
    CFontStatic m_ctrlStaticGlassSlot_22;
    CFontStatic m_ctrlStaticGlassSlot_23;
    CFontStatic m_ctrlStaticGlassSlot_24;
    CFontStatic m_ctrlStaticGlassSlot_25;
    CFontStatic m_ctrlStaticGlassSlot_26;
    CFontStatic m_ctrlStaticGlassSlot_27;
    CFontStatic m_ctrlStaticGlassSlot_28;
    CFontStatic m_ctrlStaticGlassSlot_ALL_Select;
    CFontStatic m_ctrlStaticGlassSlot_ALL_Deselect;
 
    CButton m_ctrlCheckTopReview;
    afx_msg void OnBnClickedButtonUserPitchInput();
    CComboBox m_ctrlComboGlassOrigin;
    afx_msg void OnBnClickedButton4();
    int m_nReflowPixelScale;
};