Account.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #if !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Account.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // Account form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. #include "MyFormView.h"
  14. /*
  15. #ifdef BASIC_VERSION
  16. enum { IDD = IDD_DLGAccount2 };
  17. #else
  18. enum { IDD = IDD_DLGAccount };
  19. #endif*/
  20. /**
  21. * 控件随窗口变化的控制单元
  22. **/
  23. // 用户管理view窗体;
  24. class Account : public MyFormView
  25. {
  26. CStringArray m_strNameArray; // Jeff:没有注册账号的姓名;
  27. CArray<CStringArray, CStringArray>m_List1arrayBak;
  28. CArray<CStringArray, CStringArray>m_List1array;
  29. BOOL m_bAddNew;
  30. protected:
  31. Account(); // protected constructor used by dynamic creation
  32. DECLARE_DYNCREATE(Account)
  33. // Form Data
  34. public:
  35. //{{AFX_DATA(Account)
  36. enum { IDD = IDD_DLGAccount };
  37. CSpinButtonCtrl m_spin1;
  38. CComboBox m_comboname; // 用户姓名下拉框;
  39. CSortListCtrl2 m_List1;
  40. CStatic m_static1;
  41. CString m_account;
  42. CString m_psw;
  43. CString m_psw2;
  44. CString m_discount;
  45. CString m_discount2;
  46. //}}AFX_DATA
  47. // Attributes
  48. public:
  49. // Operations
  50. public:
  51. void CommboboxReLoad();
  52. void SetRights(CString rights);
  53. CString GetRights();
  54. BOOL IsExist(CString account,CString name);
  55. void GetData();
  56. void ListSelChange();
  57. void ClearCtrl();
  58. void FillGrid();
  59. // Overrides
  60. // ClassWizard generated virtual function overrides
  61. //{{AFX_VIRTUAL(Account)
  62. public:
  63. virtual void OnInitialUpdate();
  64. protected:
  65. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  66. //}}AFX_VIRTUAL
  67. // Implementation
  68. protected:
  69. virtual ~Account();
  70. #ifdef _DEBUG
  71. virtual void AssertValid() const;
  72. virtual void Dump(CDumpContext& dc) const;
  73. #endif
  74. // Generated message map functions
  75. //{{AFX_MSG(Account)
  76. afx_msg void OnBUTsave();
  77. afx_msg void OnBUTdel();
  78. afx_msg void OnBUTclose();
  79. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  80. afx_msg void OnBUTadd();
  81. afx_msg void OnBUTbm1();
  82. afx_msg void OnBUTbm6();
  83. afx_msg void OnBUTbm2();
  84. afx_msg void OnBUTbm3();
  85. afx_msg void OnBUTbm4();
  86. afx_msg void OnBUTbm5();
  87. afx_msg void OnBUTleftbar();
  88. afx_msg void OnCheck27();
  89. afx_msg void OnBnClickedResetpwBtn();
  90. //}}AFX_MSG
  91. DECLARE_MESSAGE_MAP()
  92. //static CRect m_rct;
  93. INT m_nPurviewCounts;
  94. static BOOL CALLBACK EnumChildProc_Accout(HWND hwnd, LPARAM lParam);
  95. };
  96. /////////////////////////////////////////////////////////////////////////////
  97. //{{AFX_INSERT_LOCATION}}
  98. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  99. #endif // !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)