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

📄 public.h

📁 这是采用mfc编写的工资管理系统
💻 H
字号:
#if !defined(AFX_PUBLIC_H__5AB1B75D_1769_4975_88EF_EA258573BD18__INCLUDED_)
#define AFX_PUBLIC_H__5AB1B75D_1769_4975_88EF_EA258573BD18__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CPublic.h : header file
//
#include "ADOConn.h"
/////////////////////////////////////////////////////////////////////////////
// CPersonInfo window

/***************************************************************
数据类型:结构体
功能描述:属性列结构体,包括数据库中每一条记录所对应属性名和相应的值
*****************************************************************/
typedef struct _property
{
	CString name;
	CString value;
}Prop;

/******************************************************
数据类型:结构体
功能描述:属性列结构体,包括数据库中所有属性名和相应的值
******************************************************/
typedef struct _datarecord
{
	//主属性和主属性个数
	Prop *mainProp;
	int nCount;

	//非主属性和非主属性个数
	Prop *smpProp;
	int smpCount;
}DataRecord;

/**********************************************************************
文件名:CPublic.h
文件类型:head file
功能描述:公共访问类,封装了人事信息管理和考勤管理相关类中常用的一些功能
创建人:张国
版本号:1.0
**********************************************************************/
class CPublic : public CWnd
{
// Construction
public:
	CPublic();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPublic)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetBkBitmap(CWnd *pParent,UINT nIDResource);
	BOOL SaveKaoqinData(const DataRecord &record1,const CString &table1,const DataRecord &record2,const CString &table2);
	BOOL SavePersonData(const CString &table,const _property main[],UINT nCount,const _property prop[],UINT propCount);
	BOOL InitListCtrl(CListCtrl &listCtrl,const CString colTitle[],UINT width[],int nCount);
	void OnKillfocusEdit(const CString &strID,CString &strName);
	BOOL LoadData(CListCtrl &listCtrl,const CString parameter[],UINT nCount,const CString &DBtable);
	virtual ~CPublic();

	// Generated message map functions
protected:
	//{{AFX_MSG(CPublic)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	ADOConn m_ado;
};

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

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

#endif // !defined(AFX_PUBLIC_H__5AB1B75D_1769_4975_88EF_EA258573BD18__INCLUDED_)

⌨️ 快捷键说明

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