106 lines
2.8 KiB
C++
106 lines
2.8 KiB
C++
#if !defined(AFX_PARTSDLG_H__A8498061_28E8_11D4_964F_00C0F02C4B69__INCLUDED_)
|
|
#define AFX_PARTSDLG_H__A8498061_28E8_11D4_964F_00C0F02C4B69__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// PartsDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPartsDlg dialog
|
|
#include "gzcombo.h"
|
|
#include "gzrset.h"
|
|
#include "gzCurrencyFormatter.h"
|
|
#include "label.h"
|
|
#include "afxwin.h"
|
|
|
|
class CPartsDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
void Security();
|
|
void DisableAll(bool disable);
|
|
void SetReturnValue(CString * str);
|
|
void ClearFields();
|
|
void FillList();
|
|
CPartsDlg(CWnd* pParent = NULL); // standard constructor
|
|
~CPartsDlg();
|
|
|
|
//Save fields
|
|
bool SaveField(CEdit* edControl,CString fldname,bool AllowEmpty);
|
|
bool SaveCurrencyField(CEdit *crControl,CString fldname);
|
|
bool SaveField(CgzCombo* cbControl,CString fldname);
|
|
bool SaveField(CButton* ckControl,CString fldname);
|
|
bool UpdateModified();
|
|
//-------------------------------
|
|
CSpApp* m_pApp;
|
|
CgzCurrencyFormatter* cfm;
|
|
GZRset* rs;
|
|
GZRset* rsPrint;
|
|
GZRset* cbrs;
|
|
CString * m_pstrReturnValue;
|
|
bool m_bAddMode;
|
|
bool m_bNoRecord;
|
|
CString m_strSelectedPart;
|
|
// Dialog Data
|
|
//{{AFX_DATA(CPartsDlg)
|
|
enum { IDD = IDD_PARTS };
|
|
CStatic m_lblModified;
|
|
CStatic m_lblPart;
|
|
CEdit m_edRetail;
|
|
CEdit m_edPartNumber;
|
|
CEdit m_edNotes;
|
|
CEdit m_edDescription;
|
|
CEdit m_edCost;
|
|
CButton m_ckActive;
|
|
CgzCombo m_cbReplacedBy;
|
|
CgzCombo m_cbParts;
|
|
CButton m_btnDone;
|
|
CButton m_btnDelete;
|
|
CButton m_btnAdd;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CPartsDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CPartsDlg)
|
|
afx_msg void OnKillfocusEdretail();
|
|
afx_msg void OnKillfocusEdpartnum();
|
|
afx_msg void OnKillfocusEdnotes();
|
|
afx_msg void OnKillfocusEddescription();
|
|
afx_msg void OnKillfocusEdcost();
|
|
afx_msg void OnCkactive();
|
|
afx_msg void OnCloseupCbreplacedby();
|
|
afx_msg void OnCloseupCbparts();
|
|
afx_msg void OnBtndone();
|
|
afx_msg void OnBtndelete();
|
|
afx_msg void OnBtnadd();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnBtnprint();
|
|
virtual void OnOK();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
CLabel m_lblVendors;
|
|
CgzCombo m_cbVendors;
|
|
afx_msg void OnStnClickedLblVendors();
|
|
void FillVendorList(void);
|
|
CString m_strCurrentVendorID;
|
|
afx_msg void OnCbnCloseupCbvendors();
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_PARTSDLG_H__A8498061_28E8_11D4_964F_00C0F02C4B69__INCLUDED_)
|