EMPBIZ.H
// EmpBiz.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CEmpBiz dialog 
 
class CEmpBiz  
{ 
// Construction 
public: 
CEmpBiz();// standard constructor 
~CEmpBiz(); 
 
// Attributes 
public: 
ADORecordset*m_piEmpRecordSet; 
BOOLm_fConnected; 
BOOLm_fRecordsetEmpty; 
 
protected: 
ADOConnection*m_piConnection; 
COleVariantm_varLastGoodRecord; 
 
// Operations 
public: 
BOOLConnectToDatabase(); //Opens a database  
longGetEmployeeId();  
CString GetFirstName();  
CString GetLastName();  
CString GetHomePhone() ; 
CString GetTitle() ; 
voidAddRecord() ; 
voidDeleteRecord();  
BOOLMoveNext() ; 
BOOLMovePrevious();    
BOOLMoveFirst() ; 
BOOLMoveLast();  
BOOLFindForward(CString strCriteria) ; 
voidClearFilter();  
BOOLIsAddMode();  
voidUpdateEmpRec(CString &strFirstName,  
CString &strHomePhone, CString &strLastName, 
CString &strTitle); 
}; 
 
 
#define EMP_EMPLOYEE_IDL"EmployeeID" 
#defineEMP_LAST_NAMEL"LastName" 
#defineEMP_FIRST_NAMEL"FirstName" 
#define EMP_TITLEL"Title" 
#define EMP_HOME_PHONEL"HomePhone"