⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 人员管理系统view.h

📁 通过MFC做的可视化界面,实现简单的人员管理,包括工资的管理和人员的管理,数据用ACCESS存储
💻 H
字号:
// 人员管理系统View.h : interface of the CMyView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_VIEW_H__CB710D8C_2116_48E0_B1B4_E9E4A83B1E60__INCLUDED_)
#define AFX_VIEW_H__CB710D8C_2116_48E0_B1B4_E9E4A83B1E60__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "PersonLaborage.h"
#include "PersonRecord.h"
#include "ListEdit.h"
#include "MyListCtrl.h"


#define WM_DELETE_RECORD  WM_USER+100
#define WM_GIVE_LABORAGE  WM_USER+101
#define WM_ADD_RECORD     WM_USER+102


class CMyView : public CFormView
{
protected: // create from serialization only
	CMyView();
	DECLARE_DYNCREATE(CMyView)

public:

	CToolTipCtrl m_tip;

	CPersonRecord m_PersonRecord;//人员档案数据库表单
	CPersonLaborage m_PersonLaborage;//人员工资数据库表单
	
	CListEdit m_RecordEdit,m_LaborageEdit;//数据库编辑专用

	void ShowPersonRecord(CString sql="");//显示数据库数据到CListCtrl
    void ShowPersonLaborage(CString sql="");//显示数据库数据到CListCtrl

	void SortPersonRecord(BOOL isAsc,int secol);//数据库针对眉头排序,升和降
	void SortPersonLaborage(BOOL isAsc,int secol);//数据库针对眉头排序,升和降

	BOOL m_PersonRecordIsAsc;
	BOOL m_PersonLaborageIsAsc;

	long m_maxid;//最大编号
public:
	//{{AFX_DATA(CMyView)
	enum { IDD = IDD_MY_FORM };
	CEdit	m_LaborageSort;
	CComboBox	m_LaborageComboBox;
	CComboBox	m_LaboragenexusComboBox;
	CComboBox	m_RecordComboBox;
	CMyListCtrl	m_RecordList;
	CMyListCtrl	m_LaborageList;
	CString	m_recordsort;
	CString	m_recordsqlsort;
	CString	m_laboragesqlsort;
	CString	m_laboragesort;
	//}}AFX_DATA
    void DeleteRecord();
	void GiveLaborage();
	void AddRecord();
// Attributes
public:
	CMyDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMyView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMyView)
	afx_msg void OnMonthManage();
	afx_msg void OnGiveAllLanlorage();
	afx_msg void OnColumnclickRecordlist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnColumnclickLaboragelist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRecordFind();
	afx_msg void OnRecordFindall();
	afx_msg void OnRecordSqlfind();
	afx_msg void OnLaborageSqlfind();
	afx_msg void OnLaborageFind();
	afx_msg void OnLaborageFindall();
	afx_msg void OnHomepage();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDblclkRecordlist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkLaboragelist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnGethelp();
	afx_msg void OnViewAllrecord();
	afx_msg void OnChangePassword();
	afx_msg void OnLaborageSqlupdate();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 人员管理系统View.cpp
inline CMyDoc* CMyView::GetDocument()
   { return (CMyDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VIEW_H__CB710D8C_2116_48E0_B1B4_E9E4A83B1E60__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -