#if !defined(AFX_CLIENTSRA_H__992FAD64_D5A5_4CCF_A1AE_AD3F5224139B__INCLUDED_) #define AFX_CLIENTSRA_H__992FAD64_D5A5_4CCF_A1AE_AD3F5224139B__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // ClientsRA.h : header file // ///////////////////////////////////////////////////////////////////////////// // CClientsRA dialog #include "gzrset.h" //#include "label.h" //#include "gzlistbox.h" #include "gzcombo.h" #include "gzk.h" class CClientsRA : public CDialog { // Construction public: ~CClientsRA(); CString m_strCurrentClient; CClientsRA(CWnd* pParent = NULL); // standard constructor CSpApp* m_pApp; GZRset* rs; bool m_bAddMode; // Dialog Data //{{AFX_DATA(CClientsRA) enum { IDD = IDD_CLIENTS_RA }; CStatic m_lblHistory; CEdit m_edPassword; CEdit m_edPrivateNotes; CEdit m_edLoginID; CButton m_ckWOReports; CButton m_ckViewWorkorders; CButton m_ckViewStatus; CButton m_ckViewRequests; CButton m_ckRequestService; CgzCombo m_cbClient; CgzCombo m_cbAccount; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CClientsRA) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CClientsRA) virtual void OnOK(); virtual BOOL OnInitDialog(); afx_msg void OnCloseupCbclient(); afx_msg void OnCloseupCbaccount(); afx_msg void OnClientRaAdd(); afx_msg void OnClientRaClose(); afx_msg void OnClientRaDelete(); afx_msg void OnKillfocusEdloginid(); afx_msg void OnKillfocusEdprivatenotes(); afx_msg void OnKillfocusEdpw(); afx_msg void OnCkworeports(); afx_msg void OnCkviewworkorders(); afx_msg void OnCkviewstatus(); afx_msg void OnCkviewrequests(); afx_msg void OnCkrequestService(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: bool SaveRecord(bool bUpdate); void HandleMenuMode(); void FillFields(); void ClearAllEntries(); void AllowEntry(bool bAllow); CString m_strCurrentAccount; void FillAccountList(); void FillClientList(); public: // Used by saverecord and OnKillFocusEdLoginID to prevent looping error dialog bool m_bDontCallSaveRecord; }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_CLIENTSRA_H__992FAD64_D5A5_4CCF_A1AE_AD3F5224139B__INCLUDED_)