【VC开源代码栏目提醒】:网学会员为广大网友收集整理了,EmployeeInfoDataSet.cpp,希望对大家有所帮助!
// EmployeeInfoDataSet.cpp: implementation of the CEmployeeInfoDataSet class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ERSDemo.h"
#include "EmployeeInfoDataSet.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CEmployeeInfoDataSet::CEmployeeInfoDataSet()
{
}
CEmployeeInfoDataSet::~CEmployeeInfoDataSet()
{
}
BOOL CEmployeeInfoDataSet::LoadData()
{
return Open("Select * From EmployeeInfo");
}
CString CEmployeeInfoDataSet::GetName()
{
return GetAsString("Name");
}
int CEmployeeInfoDataSet::GetGender()
{
return atoi(GetAsString("Gender"));
}
CString CEmployeeInfoDataSet::GetBirthday()
{
return GetAsString("Birthday");
}
CString CEmployeeInfoDataSet::GetWorkTime()
{
return GetAsString("WorkTime");
}
CString CEmployeeInfoDataSet::GetEducation()
{
return GetAsString("Education");
}
BOOL CEmployeeInfoDataSet::GetMarriage()
{
return GetAsString("Marriage") != "0";
}
BOOL CEmployeeInfoDataSet::GetInsurance()
{
return GetAsString("Insurance") != "0";
}
int CEmployeeInfoDataSet::GetID()
{
return atoi(GetAsString("ID"));
}
BOOL CEmployeeInfoDataSet::LoadByEmployeeID(int EmployeeID)
{
CString SQL;
SQL.Format("Select * From EmployeeInfo Where ID = %d", EmployeeID);
return Open(SQL);
}
CString CEmployeeInfoDataSet::GetResume()
{
return GetAsString("Resume");
}
CString CEmployeeInfoDataSet::GetPhotoPath()
{
return GetAsString("PhotoGraph");
}
上一篇:
EmployeeForm.cpp
下一篇:
jQuery产品分类信息导航特效代码