人事管理系统Set.cpp
上传用户:z_mail1980
上传日期:2007-06-01
资源大小:647k
文件大小:2k
- // 人事管理系统Set.cpp : implementation of the CMySet class
- //
- #include "stdafx.h"
- #include "人事管理系统.h"
- #include "人事管理系统Set.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMySet implementation
- IMPLEMENT_DYNAMIC(CMySet, CRecordset)
- CMySet::CMySet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CMySet)
- m_GZBH = 0;
- m_SZBM = _T("");
- m_JBGZ = 0.0f;
- m_JL = _T("");
- m_ZGLL = 0;
- m_ZGXM = _T("");
- m_ZGXB = _T("");
- m_ZC = _T("");
- m_nFields = 9;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CMySet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=人事管理数据库");
- }
- CString CMySet::GetDefaultSQL()
- {
- return _T("[表1]");
- }
- void CMySet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CMySet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Date(pFX, _T("[工作时间]"), m_GZSJ);
- RFX_Long(pFX, _T("[编号]"), m_GZBH);
- RFX_Text(pFX, _T("[部门]"), m_SZBM);
- RFX_Single(pFX, _T("[基本工资]"), m_JBGZ);
- RFX_Text(pFX, _T("[简历]"), m_JL);
- RFX_Int(pFX, _T("[年龄]"), m_ZGLL);
- RFX_Text(pFX, _T("[姓名]"), m_ZGXM);
- RFX_Text(pFX, _T("[性别]"), m_ZGXB);
- RFX_Text(pFX, _T("[职称]"), m_ZC);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMySet diagnostics
- #ifdef _DEBUG
- void CMySet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CMySet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG