122 lines
3.2 KiB
C++
122 lines
3.2 KiB
C++
#if !defined(AFX_PMDLG_H__69649FC2_2BEE_11D4_964F_00C0F02C4B69__INCLUDED_)
|
|
#define AFX_PMDLG_H__69649FC2_2BEE_11D4_964F_00C0F02C4B69__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// PMDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPMDlg dialog
|
|
#include "gzcombo.h"
|
|
#include "gzrset.h"
|
|
#include "gzlistbox.h"
|
|
#include "label.h"
|
|
|
|
class CPMDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
void Security();
|
|
~CPMDlg();
|
|
void SaveRepeatOnceOnlyFields();
|
|
void SaveAgeMeterFields();
|
|
void ClearFields();
|
|
void FillFields();
|
|
bool m_bNoRecord;
|
|
void FillRequiredPartsList();
|
|
void FillPartsList();
|
|
void FillPMList();
|
|
void SetCriteria(CString strID);
|
|
CString m_strCriteria;
|
|
bool m_bClientMode;
|
|
void SetMode(bool clientmode);
|
|
CPMDlg(CWnd* pParent = NULL); // standard constructor
|
|
//Save fields
|
|
bool SaveField(CEdit* edControl,CString fldname,bool AllowEmpty);
|
|
bool SaveField(CgzCombo* cbControl,CString fldname);
|
|
bool SaveField(CButton* ckControl,CString fldname);
|
|
bool SaveField(CDateTimeCtrl* dtControl,CString fldname);
|
|
bool UpdateModified();
|
|
//-------------------------------
|
|
CSpApp* m_pApp;
|
|
GZRset* rs;
|
|
GZRset* cbrs;
|
|
bool m_bAddMode;
|
|
CString m_strSelectedPM;
|
|
// Dialog Data
|
|
//{{AFX_DATA(CPMDlg)
|
|
enum { IDD = IDD_PMSCHEDULE };
|
|
CButton m_ckAutoWO;
|
|
CEdit m_edAdvance;
|
|
CStatic m_lblAdvance;
|
|
CgzListBox m_lbParts;
|
|
CStatic m_lblQuantity;
|
|
CStatic m_lblPartsList;
|
|
CButton m_ckRepeat;
|
|
CStatic m_lblMeterMonths;
|
|
CButton m_ckOnceOnly;
|
|
CButton m_ckMeter;
|
|
CButton m_ckAge;
|
|
CEdit m_edQuantity;
|
|
CButton m_btnRemovePart;
|
|
CStatic m_lblPMList;
|
|
CLabel m_lblPart;
|
|
CStatic m_lblNextServiceDate;
|
|
CButton m_lblAgeMeter;
|
|
CEdit m_edNotes;
|
|
CEdit m_edMeterMonths;
|
|
CEdit m_edDescription;
|
|
CDateTimeCtrl m_dtNextService;
|
|
CButton m_ckActive;
|
|
CgzCombo m_cbPMList;
|
|
CgzCombo m_cbParts;
|
|
CButton m_btnDone;
|
|
CButton m_btnDelete;
|
|
CButton m_btnAddPart;
|
|
CButton m_btnAdd;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CPMDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CPMDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnBtndone();
|
|
afx_msg void OnBtnremovepart();
|
|
afx_msg void OnBtnaddpart();
|
|
afx_msg void OnBtnadd();
|
|
afx_msg void OnBtndelete();
|
|
afx_msg void OnCloseupCbparts();
|
|
afx_msg void OnCloseupCbpmlist();
|
|
afx_msg void OnCkactive();
|
|
afx_msg void OnDatetimechangeDtnextservice(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnKillfocusEddescription();
|
|
afx_msg void OnKillfocusEdmetermonths();
|
|
afx_msg void OnKillfocusEdnotes();
|
|
afx_msg void OnLblpart();
|
|
afx_msg void OnCkage();
|
|
afx_msg void OnCkmeter();
|
|
afx_msg void OnCkonceonly();
|
|
afx_msg void OnCkrepeat();
|
|
afx_msg void OnKillfocusEdadvance();
|
|
afx_msg void OnCkautowo();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_PMDLG_H__69649FC2_2BEE_11D4_964F_00C0F02C4B69__INCLUDED_)
|