LAPTOP-SNT8I5JK\Boounion
2025-05-13 2d69213b1b41b5b039e5dc6f6b7c55d53fd03037
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
#pragma once
#include "afxdialogex.h"
#include "ListCtrlEx.h"
#include "ProductionLogManager.h"
 
 
// CProductionLogDlg 对话框
<<<<<<< HEAD
 
//class CProductionLogDlg : public CDialogEx
//{
//    DECLARE_DYNAMIC(CProductionLogDlg)
//
//public:
//    CProductionLogDlg(CWnd* pParent = nullptr);   // 标准构造函数
//    virtual ~CProductionLogDlg();
//
//private:
//    void InitRxWindow();
//    void Resize();
//    void UpdatePageData();
//    void UpdatePageControls();
//    void FillDataToListCtrl(CListCtrl* pListCtrl, const std::vector<ProductionStep>& vecSteps);
//    void InsertStepData(CListCtrl* pListCtrl, const ProductionStep& step);
//    std::string getCurrentTimeString();
//
//private:
//    COLORREF m_crBkgnd;
//    HBRUSH m_hbrBkgnd;
//    IObserver* m_pObserver;
//
//    // 搜索关键字
//    std::string m_strKeyword;
//    std::string m_strProductId;
//    std::string m_strBatchNo;
//    std::string m_strDeviceId;
//    std::string m_strOperatorName;
//    std::string m_strStatus;
//
//    // 页码
//    int m_nCurPage;
//    int m_nTotalPages;
//
//    // 日期
//    int m_nDateTimeFlag;
//    char m_szTimeStart[64];
//    char m_szTimeEnd[64];
//
//    // 控件
//    CDateTimeCtrl m_dateTimeStart;
//    CDateTimeCtrl m_dateTimeEnd;
//    CListCtrlEx m_listCtrl;
//
//// 对话框数据
//#ifdef AFX_DESIGN_TIME
//    enum { IDD = IDD_DIALOG_PRODUCTION_LOG };
//#endif
//
//protected:
//    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
//    virtual BOOL OnInitDialog();
//    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//    afx_msg void OnDestroy();
//    afx_msg void OnClose();
//    afx_msg void OnSize(UINT nType, int cx, int cy);
//    afx_msg void OnCbnSelchangeComboDatetime();
//    afx_msg void OnBnClickedButtonSearch();
//    afx_msg void OnBnClickedButtonExport();
//    afx_msg void OnBnClickedButtonPrevPage();
//    afx_msg void OnBnClickedButtonNextPage();
//    DECLARE_MESSAGE_MAP()
//};
=======
/*
class CProductionLogDlg : public CDialogEx
{
    DECLARE_DYNAMIC(CProductionLogDlg)
 
public:
    CProductionLogDlg(CWnd* pParent = nullptr);   // 标准构造函数
    virtual ~CProductionLogDlg();
 
private:
    void InitRxWindow();
    void Resize();
    void UpdatePageData();
    void UpdatePageControls();
    void FillDataToListCtrl(CListCtrl* pListCtrl, const std::vector<ProductionStep>& vecSteps);
    void InsertStepData(CListCtrl* pListCtrl, const ProductionStep& step);
    std::string getCurrentTimeString();
 
private:
    COLORREF m_crBkgnd;
    HBRUSH m_hbrBkgnd;
    IObserver* m_pObserver;
 
    // 搜索关键字
    std::string m_strKeyword;
    std::string m_strProductId;
    std::string m_strBatchNo;
    std::string m_strDeviceId;
    std::string m_strOperatorName;
    std::string m_strStatus;
 
    // 页码
    int m_nCurPage;
    int m_nTotalPages;
 
    // 日期
    int m_nDateTimeFlag;
    char m_szTimeStart[64];
    char m_szTimeEnd[64];
 
    // 控件
    CDateTimeCtrl m_dateTimeStart;
    CDateTimeCtrl m_dateTimeEnd;
    CListCtrlEx m_listCtrl;
 
// 对话框数据
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_DIALOG_PRODUCTION_LOG };
#endif
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
    virtual BOOL OnInitDialog();
    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
    afx_msg void OnDestroy();
    afx_msg void OnClose();
    afx_msg void OnSize(UINT nType, int cx, int cy);
    afx_msg void OnCbnSelchangeComboDatetime();
    afx_msg void OnBnClickedButtonSearch();
    afx_msg void OnBnClickedButtonExport();
    afx_msg void OnBnClickedButtonPrevPage();
    afx_msg void OnBnClickedButtonNextPage();
    DECLARE_MESSAGE_MAP()
};
*/
>>>>>>> clh