ProviderDlg.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #if !defined(AFX_ProviderDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_ProviderDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ProviderDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ProviderDlg form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. class ProviderDlg : public CFormView
  14. {
  15. CArray<CStringArray, CStringArray>m_List1array;
  16. CString m_oldid;
  17. CString m_oldname;
  18. protected:
  19. ProviderDlg(); // protected constructor used by dynamic creation
  20. DECLARE_DYNCREATE(ProviderDlg)
  21. // Form Data
  22. public:
  23. //{{AFX_DATA(ProviderDlg)
  24. enum { IDD = IDD_DLGProvider };
  25. CSortListCtrl2 m_List1;
  26. CStatic m_static1;
  27. CString m_address;
  28. CString m_bz;
  29. CString m_fax;
  30. CString m_id;
  31. CString m_name;
  32. CString m_netaddress;
  33. CString m_phone;
  34. //}}AFX_DATA
  35. // Attributes
  36. public:
  37. // Operations
  38. public:
  39. BOOL IsExist();
  40. BOOL IsExistID();
  41. BOOL IsExistName();
  42. void GetData();
  43. void ListSelChange();
  44. void ClearCtrl();
  45. void FillGrid();
  46. // Overrides
  47. // ClassWizard generated virtual function overrides
  48. //{{AFX_VIRTUAL(ProviderDlg)
  49. public:
  50. virtual void OnInitialUpdate();
  51. virtual BOOL PreTranslateMessage(MSG* pMsg);
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. virtual ~ProviderDlg();
  58. #ifdef _DEBUG
  59. virtual void AssertValid() const;
  60. virtual void Dump(CDumpContext& dc) const;
  61. #endif
  62. // Generated message map functions
  63. //{{AFX_MSG(ProviderDlg)
  64. afx_msg void OnBUTsave();
  65. afx_msg void OnBUTdel();
  66. afx_msg void OnBUTclose();
  67. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  68. afx_msg void OnBUTadd();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. };
  72. /////////////////////////////////////////////////////////////////////////////
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_ProviderDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)