Account.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. // 用户管理view窗体;
  21. class Account : public MyFormView
  22. {
  23. CStringArray m_strNameArray; // Jeff:没有注册账号的姓名;
  24. CArray<CStringArray, CStringArray>m_List1arrayBak;
  25. CArray<CStringArray, CStringArray>m_List1array;
  26. BOOL m_bAddNew;
  27. protected:
  28. Account(); // protected constructor used by dynamic creation
  29. DECLARE_DYNCREATE(Account)
  30. // Form Data
  31. public:
  32. //{{AFX_DATA(Account)
  33. enum { IDD = IDD_DLGAccount };
  34. CSpinButtonCtrl m_spin1;
  35. CComboBox m_comboname; // 用户姓名下拉框;
  36. CSortListCtrl2 m_List1;
  37. CStatic m_static1;
  38. CString m_account;
  39. CString m_psw;
  40. CString m_psw2;
  41. CString m_discount;
  42. CString m_discount2;
  43. //}}AFX_DATA
  44. // Attributes
  45. public:
  46. // Operations
  47. public:
  48. void CommboboxReLoad();
  49. void SetRights(CString rights);
  50. CString GetRights();
  51. BOOL IsExist(CString account,CString name);
  52. void GetData();
  53. void ListSelChange();
  54. void ClearCtrl();
  55. void FillGrid();
  56. // Overrides
  57. // ClassWizard generated virtual function overrides
  58. //{{AFX_VIRTUAL(Account)
  59. public:
  60. virtual void OnInitialUpdate();
  61. protected:
  62. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  63. //}}AFX_VIRTUAL
  64. // Implementation
  65. protected:
  66. virtual ~Account();
  67. #ifdef _DEBUG
  68. virtual void AssertValid() const;
  69. virtual void Dump(CDumpContext& dc) const;
  70. #endif
  71. // Generated message map functions
  72. //{{AFX_MSG(Account)
  73. afx_msg void OnBUTsave();
  74. afx_msg void OnBUTdel();
  75. afx_msg void OnBUTclose();
  76. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  77. afx_msg void OnBUTadd();
  78. afx_msg void OnBUTbm1();
  79. afx_msg void OnBUTbm6();
  80. afx_msg void OnBUTbm2();
  81. afx_msg void OnBUTbm3();
  82. afx_msg void OnBUTbm4();
  83. afx_msg void OnBUTbm5();
  84. afx_msg void OnBUTleftbar();
  85. afx_msg void OnCheck27();
  86. //}}AFX_MSG
  87. DECLARE_MESSAGE_MAP()
  88. };
  89. /////////////////////////////////////////////////////////////////////////////
  90. //{{AFX_INSERT_LOCATION}}
  91. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  92. #endif // !defined(AFX_Account_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)