SDC C-Project CF Review 프로그램
KYH
2021-06-07 e21f80c0b3c303c8f38859cc7652822f2da2913c
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
#pragma once
 
#include "CHCommonControls/GridCtrl.h"
#include "CHCommonControls/GridCell.h"
#include "CHCommonControls/GridCellCombo.h"
#include "CHCommonControls/GridCellCheck.h"
#include "CHReviewRecipe/RcpFilteringInfo.h"
#include "CHReviewRecipe/RcpPriorityInfo.h"
#include "afxwin.h"
 
#define PRIORITY_INFO_GRID_COL_COUNT        7
 
// CDlgReview ´ëÈ­ »óÀÚÀÔ´Ï´Ù.
 
class CDlgReview : public CDialog
{
    DECLARE_DYNAMIC(CDlgReview)
 
public:
    CDlgReview(int nType, int nMachineType = 0, CWnd* pParent = NULL);   // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù.
    virtual ~CDlgReview();
 
// ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù.
    enum { IDD = IDD_DIALOG_REVIEW_RCP_EDITOR_REVIEW };
    
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Áö¿øÀÔ´Ï´Ù.
    
    
    DECLARE_MESSAGE_MAP()
public:
    CButton m_ctrlSortType;
    CButton m_ctrlSortType2;
    CButton m_ctrlSortOrder;
    CButton m_ctrlSortOrder2;
    CButton m_ctrlSortPriority;        // None
    CButton m_ctrlSortPriority2;    // Circle
    CButton m_ctrlSortPriority3;    // Scratch
    CButton m_ctrlSortPriority4;    // Bubble
    CButton    m_ctrlAutoLight;
 
    CGridCtrl m_ctrlGridLightInfo;
    CGridCtrl m_ctrlGridAFMRecipeInfo;
    CGridCtrl m_ctrlGridFilterinfo;
 
    int m_nLightCount;
    int m_nAFMCount;
    int m_nFilterCount;
 
public:
    afx_msg void OnBnClickedButtonReviewReset();
    afx_msg void OnBnClickedButtonReviewApply();
    afx_msg void OnEnChangeEditRcpFilterCount();
    afx_msg void OnGridClick(NMHDR *pNotifyStruct, LRESULT* pResult);
 
    void InitFilterGridControl();
 
    void FillFilterInfo(int nType);
    void InitLightInfoGridControl();
    void FillLightInfoInfo(int nType);
    void InitAFMRecipeGridControl();
    void FillAFMRecipeInfo(int nType);
 
    void SetFilterInfo(int nType);
    void SetLightAFMInfo(int nType);
 
    void UpdateDialogData(int nType);
    virtual BOOL OnInitDialog();
 
    void SetReviewCount(int reviewCount);
    int GetMachineType(){return m_nMachineType;}
protected:
    int m_nType;
    int m_nMachineType;
    int m_nReviewCount;
    int GetDefectType(CString strDefectName);
 
    void    SizeOptionSetting(int nIndex);
public:
    CComboBox m_comboctrlSortPriority;
    double m_dDefocusValue;
    CButton m_ctrlDefocusAlarm;
};