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

📄 teacher.h

📁 我上载了那么多怎么都说已经有上载的啦
💻 H
字号:
// Teacher.h: interface for the CTeacher class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEACHER_H__86DAB71C_356E_41BE_874A_44B3B43D5C15__INCLUDED_)
#define AFX_TEACHER_H__86DAB71C_356E_41BE_874A_44B3B43D5C15__INCLUDED_

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

class CTeacher  
{
public:
	CTeacher();
	CTeacher(const CString& strName, const CString& strSex, int nTitleID,  
		const CString& strPhone, const CString& strEMail, const CString& strExperience);
	virtual ~CTeacher();

	CTeacher(const CTeacher&);
	CTeacher& operator = (const CTeacher&);

	static CTeacher CreateInst(CString strSql);
	static BOOL Create(CTeacher& );
	static BOOL Update(CTeacher& );
	static BOOL Delete(CTeacher& );

	BOOL Create(BOOL bUpdate = FALSE);
	BOOL Update();
	BOOL Delete();

	static BOOL Validate(const CString& strLoginName, CString strPassword);

	CString GetName() const {
		return m_strName;
	}
	CString GetSex() const {
		return m_strSex;
	}
	int GetTitleID() const {
		return m_nTitleID;
	}
	CString GetPhone() const {
		return m_strPhone;
	}
	CString GetEMail() const {
		return m_strEMail;
	}
	CString GetExperience() const {
		return m_strExperience;
	}
	CString GetTitle(CMapStringToString& map)
	{
		CString key, strTitle;
		key.Format("%d",GetTitleID());
		if( map.Lookup(key,strTitle) )
		{
			return strTitle;
		}
		return "";
	}

	void SetName(const CString& sUsername ) {
		m_strName = sUsername;
	}
	void SetSex(const CString& sSex) {
		m_strSex = sSex;
	}
	void SetTitleID(int nTitleID) {
		m_nTitleID = nTitleID;
	}
	void SetPhone(const CString& sPhone) {
		m_strPhone = sPhone;
	}
	void SetEMail(const CString& sEMail ) {
		m_strEMail = sEMail;
	}
	void SetExperience(const CString& sExp) {
		m_strExperience = sExp;
	}
	void SetPassword(CString& sPassword);
protected:
	CString m_strName;
	CString m_strSex;
	int m_nTitleID;
	CString m_strPhone;
	CString m_strEMail;
	CString m_strExperience;
	CString m_strPassword;
};

#endif // !defined(AFX_TEACHER_H__86DAB71C_356E_41BE_874A_44B3B43D5C15__INCLUDED_)

⌨️ 快捷键说明

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