104 lines
2.8 KiB
C++
104 lines
2.8 KiB
C++
#if !defined(AFX_NONCLIENTSDLG_H__12A88141_2588_11D4_964F_00C0F02C4B69__INCLUDED_)
|
|
#define AFX_NONCLIENTSDLG_H__12A88141_2588_11D4_964F_00C0F02C4B69__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// NonClientsDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CNonClientsDlg dialog
|
|
#include "gzcombo.h"
|
|
#include "gzrset.h"
|
|
#include "label.h"
|
|
|
|
class CNonClientsDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
void Security();
|
|
void DisableAll(bool disable);
|
|
void SetReturnString(CString* strReturn);
|
|
CString m_strSelectedContact;
|
|
void SetType(long* pType);
|
|
long m_lListType;
|
|
void FillList();
|
|
CNonClientsDlg(CWnd* pParent = NULL); // standard constructor
|
|
~CNonClientsDlg();
|
|
CSpApp* m_pApp;
|
|
GZRset* rs;
|
|
//v1.9.4.4 - added to confirm no dupes in company name before attempting to update
|
|
GZRset* rs2;
|
|
|
|
CString * m_pstrReturnValue;
|
|
bool m_bAddMode;
|
|
//Save fields
|
|
bool SaveField(CEdit* edControl,CString fldname,bool AllowEmpty);
|
|
bool UpdateModified(bool IsNew);
|
|
//-------------------------------
|
|
// Dialog Data
|
|
//{{AFX_DATA(CNonClientsDlg)
|
|
enum { IDD = IDD_NONCLIENTS };
|
|
CEdit m_edAccount;
|
|
CButton m_btnDone;
|
|
CLabel m_lblHistory;
|
|
CStatic m_lblList;
|
|
CLabel m_lblWebsite;
|
|
CLabel m_lblEmail;
|
|
CEdit m_edWebsite;
|
|
CEdit m_edPhone;
|
|
CEdit m_edNotes;
|
|
CgzCombo m_cbList;
|
|
CEdit m_edFax;
|
|
CEdit m_edEmail;
|
|
CButton m_btnDelete;
|
|
CEdit m_edContact;
|
|
CEdit m_edCompName;
|
|
CEdit m_edAddress;
|
|
CButton m_btnAdd;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CNonClientsDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CNonClientsDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnCloseupList();
|
|
afx_msg void OnAdd();
|
|
afx_msg void OnKillfocusAddress();
|
|
afx_msg void OnKillfocusCompname();
|
|
afx_msg void OnKillfocusContact();
|
|
afx_msg void OnDelete();
|
|
afx_msg void OnKillfocusEmail();
|
|
afx_msg void OnKillfocusFax();
|
|
afx_msg void OnKillfocusNotes();
|
|
afx_msg void OnKillfocusPhone();
|
|
afx_msg void OnKillfocusWebsite();
|
|
afx_msg void OnLblemail();
|
|
afx_msg void OnLblwebsite();
|
|
afx_msg void OnDone();
|
|
afx_msg void OnOk();
|
|
afx_msg void OnHistory();
|
|
afx_msg void OnKillfocusEdacct();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
// v 1.9.4.4 addition - returns true if the company name entered already exists in the table
|
|
bool IsDupeCompany(CString strNewCompanyName);
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_NONCLIENTSDLG_H__12A88141_2588_11D4_964F_00C0F02C4B69__INCLUDED_)
|