Files
ayanova7/archive/ayanova 1.9.4 CE final release db schema 171/sp/ModelsDlg.h

116 lines
3.3 KiB
C++

#if !defined(AFX_MODELSDLG_H__19D53F21_27FA_11D4_964F_00C0F02C4B69__INCLUDED_)
#define AFX_MODELSDLG_H__19D53F21_27FA_11D4_964F_00C0F02C4B69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ModelsDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CModelsDlg dialog
#include "gzcombo.h"
#include "gzrset.h"
#include "label.h"
//#include "statusdlg.h"
class CModelsDlg : public CDialog
{
// Construction
public:
bool m_bReadOnly;
void Security();
bool m_bListByDescription;
void EnableFields(bool bEnable);
bool m_bNoRecords;
~CModelsDlg();
bool m_bAddMode;
void FillFields();
CString m_strSelectedModel;
void FillManufacturerList();
void FillModelList();
void FillCategoryList();
void SetReturnString(CString *strReturn);
//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();
//-------------------------------
CModelsDlg(CWnd* pParent = NULL); // standard constructor
CSpApp* m_pApp;
//The Extra recordset is for filling combo boxes
GZRset* rs;
GZRset* cbrs;
CString * m_pstrReturnValue;
// Dialog Data
//{{AFX_DATA(CModelsDlg)
enum { IDD = IDD_MODELS };
CLabel m_lblByDesc;
CLabel m_lblByModel;
CEdit m_edDescription;
CButton m_btnPM;
CStatic m_lblModels;
CLabel m_lblManufacturer;
CLabel m_lblCategory;
CEdit m_edWarrantyTerms;
CEdit m_edWarrantyMonths;
CEdit m_edNotes;
CEdit m_edModel;
CDateTimeCtrl m_dtIntroduced;
CDateTimeCtrl m_dtDiscontinued;
CButton m_ckLifetime;
CButton m_ckDiscontinued;
CButton m_ckActive;
CgzCombo m_cbModels;
CgzCombo m_cbManufacturers;
CgzCombo m_cbCategories;
CButton m_btnDone;
CButton m_btnDelete;
CButton m_btnAdd;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CModelsDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CModelsDlg)
virtual BOOL OnInitDialog();
afx_msg void OnBtnadd();
afx_msg void OnBtndelete();
afx_msg void OnBtndone();
afx_msg void OnCloseupCbcategories();
afx_msg void OnCloseupCbmanufacturers();
afx_msg void OnCloseupCbmodels();
afx_msg void OnCkdiscontinued();
afx_msg void OnCklifetime();
afx_msg void OnDatetimechangeDtdiscontinued(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDatetimechangeDtintroduced(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnKillfocusEdmodel();
afx_msg void OnKillfocusEdnotes();
afx_msg void OnKillfocusEdwarrantymonths();
afx_msg void OnKillfocusEdwarrantyterms();
afx_msg void OnLblcategory();
afx_msg void OnLblmanufacturer();
afx_msg void OnBtnpm();
afx_msg void OnKillfocusEddescription();
afx_msg void OnLblbymodel();
afx_msg void OnLblbydesc();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MODELSDLG_H__19D53F21_27FA_11D4_964F_00C0F02C4B69__INCLUDED_)