Worker.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #if !defined(AFX_Worker_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_Worker_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Worker.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // Worker form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. class Worker : public MyFormView //Ô±¹¤ÉèÖÃ;
  14. {
  15. Image *m_pImg;
  16. CString m_oldid;
  17. CString m_oldname;
  18. CArray<CStringArray, CStringArray>m_List1array;
  19. CArray<CStringArray, CStringArray>m_List1arrayBak;
  20. protected:
  21. Worker(); // protected constructor used by dynamic creation
  22. DECLARE_DYNCREATE(Worker)
  23. // Form Data
  24. public:
  25. //{{AFX_DATA(Worker)
  26. enum { IDD = IDD_DLGWorker2 };
  27. CComboBox m_combolevel; // ÎļþȨÏ޵ȼ¶;
  28. CComboBox m_combodimission;
  29. CComboBox m_combomarry;
  30. CComboBox m_combosex;
  31. CComboBox m_combobm;
  32. CSortListCtrl2 m_List1;
  33. CStatic m_static1;
  34. CString m_bz;
  35. CString m_sex;
  36. CString m_id;
  37. CString m_phone;
  38. CString m_address;
  39. CString m_name;
  40. CString m_address2;
  41. CString m_idno;
  42. CString m_loginno1;
  43. CString m_loginno2;
  44. //}}AFX_DATA
  45. // Attributes
  46. public:
  47. // Operations
  48. public:
  49. BOOL IsExist();
  50. BOOL IsExistID();
  51. BOOL IsExistName();
  52. void GetData();
  53. void ListSelChange();
  54. void ClearCtrl();
  55. void FillGrid();
  56. // Overrides
  57. // ClassWizard generated virtual function overrides
  58. //{{AFX_VIRTUAL(Worker)
  59. public:
  60. virtual void OnInitialUpdate();
  61. virtual BOOL PreTranslateMessage(MSG* pMsg);
  62. protected:
  63. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  64. //}}AFX_VIRTUAL
  65. // Implementation
  66. protected:
  67. virtual ~Worker();
  68. #ifdef _DEBUG
  69. virtual void AssertValid() const;
  70. virtual void Dump(CDumpContext& dc) const;
  71. #endif
  72. // Generated message map functions
  73. //{{AFX_MSG(Worker)
  74. afx_msg void OnBUTsave();
  75. afx_msg void OnBUTdel();
  76. afx_msg void OnBUTclose();
  77. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  78. afx_msg void OnBUTadd();
  79. afx_msg void OnBUTAutoGet();
  80. afx_msg void OnBUTload();
  81. afx_msg void OnBUTdel2();
  82. afx_msg void OnPaint();
  83. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  84. //}}AFX_MSG
  85. DECLARE_MESSAGE_MAP()
  86. };
  87. /////////////////////////////////////////////////////////////////////////////
  88. //{{AFX_INSERT_LOCATION}}
  89. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  90. #endif // !defined(AFX_Worker_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)