StudentSet.cpp
资源名称:school.rar [点击查看]
上传用户:rs600066
上传日期:2017-10-16
资源大小:4788k
文件大小:6k
源码类别:
数据库系统
开发平台:
Visual C++
- // StudentSet.cpp : implementation file
- //
- #include "stdafx.h"
- #include "school.h"
- #include "StudentSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CStudentSet
- IMPLEMENT_DYNAMIC(CStudentSet, CRecordset)
- CStudentSet::CStudentSet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CStudentSet)
- m_code = _T("");
- m_name = _T("");
- m_class = _T("");
- m_sex = _T("");
- m_folk = _T("");
- m_political = _T("");
- m_oldname = _T("");
- m_family = _T("");
- m_phone = _T("");
- m_native = _T("");
- m_address = _T("");
- m_department = _T("");
- m_IDCard = _T("");
- m_postcode = _T("");
- m_major = _T("");
- m_edu_sys = _T("");
- m_family_relation1 = _T("");
- m_family_relation2 = _T("");
- m_family_relation3 = _T("");
- m_family_name1 = _T("");
- m_family_name2 = _T("");
- m_family_name3 = _T("");
- m_family_political1 = _T("");
- m_family_political2 = _T("");
- m_family_political3 = _T("");
- m_family_dept1 = _T("");
- m_family_dept2 = _T("");
- m_family_dept3 = _T("");
- m_family_duty1 = _T("");
- m_family_duty2 = _T("");
- m_family_duty3 = _T("");
- m_family_phone1 = _T("");
- m_family_phone2 = _T("");
- m_family_phone3 = _T("");
- m_term1 = _T("");
- m_term2 = _T("");
- m_term3 = _T("");
- m_term4 = _T("");
- m_term5 = _T("");
- m_term6 = _T("");
- m_term7 = _T("");
- m_term8 = _T("");
- m_term9 = _T("");
- m_term10 = _T("");
- m_summary = _T("");
- m_honor_date1 = _T("");
- m_honor_date2 = _T("");
- m_honor_date3 = _T("");
- m_honor_date4 = _T("");
- m_honor_date5 = _T("");
- m_honor_date6 = _T("");
- m_honor_digiest1 = _T("");
- m_honor_digiest2 = _T("");
- m_honor_digiest3 = _T("");
- m_honor_digiest4 = _T("");
- m_honor_digiest5 = _T("");
- m_honor_digiest6 = _T("");
- m_honor_remark1 = _T("");
- m_honor_remark2 = _T("");
- m_honor_remark3 = _T("");
- m_honor_remark4 = _T("");
- m_honor_remark5 = _T("");
- m_honor_remark6 = _T("");
- m_nFields = 66;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CStudentSet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=school");
- }
- CString CStudentSet::GetDefaultSQL()
- {
- return _T("[student]");
- }
- void CStudentSet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CStudentSet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[code]"), m_code);
- RFX_Text(pFX, _T("[name]"), m_name);
- RFX_Text(pFX, _T("[class]"), m_class);
- RFX_Text(pFX, _T("[sex]"), m_sex);
- RFX_Text(pFX, _T("[folk]"), m_folk);
- RFX_Text(pFX, _T("[political]"), m_political);
- RFX_Text(pFX, _T("[oldname]"), m_oldname);
- RFX_Text(pFX, _T("[family]"), m_family);
- RFX_Text(pFX, _T("[phone]"), m_phone);
- RFX_Text(pFX, _T("[native]"), m_native);
- RFX_Date(pFX, _T("[enroll_date]"), m_enroll_date);
- RFX_Date(pFX, _T("[graduate_date]"), m_graduate_date);
- RFX_Text(pFX, _T("[address]"), m_address);
- RFX_Date(pFX, _T("[birthday]"), m_birthday);
- RFX_Text(pFX, _T("[department]"), m_department);
- RFX_Text(pFX, _T("[IDCard]"), m_IDCard);
- RFX_Text(pFX, _T("[postcode]"), m_postcode);
- RFX_Text(pFX, _T("[major]"), m_major);
- RFX_Text(pFX, _T("[edu_sys]"), m_edu_sys);
- RFX_Text(pFX, _T("[family_relation1]"), m_family_relation1);
- RFX_Text(pFX, _T("[family_relation2]"), m_family_relation2);
- RFX_Text(pFX, _T("[family_relation3]"), m_family_relation3);
- RFX_Text(pFX, _T("[family_name1]"), m_family_name1);
- RFX_Text(pFX, _T("[family_name2]"), m_family_name2);
- RFX_Text(pFX, _T("[family_name3]"), m_family_name3);
- RFX_Text(pFX, _T("[family_political1]"), m_family_political1);
- RFX_Text(pFX, _T("[family_political2]"), m_family_political2);
- RFX_Text(pFX, _T("[family_political3]"), m_family_political3);
- RFX_Text(pFX, _T("[family_dept1]"), m_family_dept1);
- RFX_Text(pFX, _T("[family_dept2]"), m_family_dept2);
- RFX_Text(pFX, _T("[family_dept3]"), m_family_dept3);
- RFX_Text(pFX, _T("[family_duty1]"), m_family_duty1);
- RFX_Text(pFX, _T("[family_duty2]"), m_family_duty2);
- RFX_Text(pFX, _T("[family_duty3]"), m_family_duty3);
- RFX_Text(pFX, _T("[family_phone1]"), m_family_phone1);
- RFX_Text(pFX, _T("[family_phone2]"), m_family_phone2);
- RFX_Text(pFX, _T("[family_phone3]"), m_family_phone3);
- RFX_Text(pFX, _T("[term1]"), m_term1);
- RFX_Text(pFX, _T("[term2]"), m_term2);
- RFX_Text(pFX, _T("[term3]"), m_term3);
- RFX_Text(pFX, _T("[term4]"), m_term4);
- RFX_Text(pFX, _T("[term5]"), m_term5);
- RFX_Text(pFX, _T("[term6]"), m_term6);
- RFX_Text(pFX, _T("[term7]"), m_term7);
- RFX_Text(pFX, _T("[term8]"), m_term8);
- RFX_Text(pFX, _T("[term9]"), m_term9);
- RFX_Text(pFX, _T("[term10]"), m_term10);
- RFX_Text(pFX, _T("[summary]"), m_summary);
- RFX_Text(pFX, _T("[honor_date1]"), m_honor_date1);
- RFX_Text(pFX, _T("[honor_date2]"), m_honor_date2);
- RFX_Text(pFX, _T("[honor_date3]"), m_honor_date3);
- RFX_Text(pFX, _T("[honor_date4]"), m_honor_date4);
- RFX_Text(pFX, _T("[honor_date5]"), m_honor_date5);
- RFX_Text(pFX, _T("[honor_date6]"), m_honor_date6);
- RFX_Text(pFX, _T("[honor_digiest1]"), m_honor_digiest1);
- RFX_Text(pFX, _T("[honor_digiest2]"), m_honor_digiest2);
- RFX_Text(pFX, _T("[honor_digiest3]"), m_honor_digiest3);
- RFX_Text(pFX, _T("[honor_digiest4]"), m_honor_digiest4);
- RFX_Text(pFX, _T("[honor_digiest5]"), m_honor_digiest5);
- RFX_Text(pFX, _T("[honor_digiest6]"), m_honor_digiest6);
- RFX_Text(pFX, _T("[honor_remark1]"), m_honor_remark1);
- RFX_Text(pFX, _T("[honor_remark2]"), m_honor_remark2);
- RFX_Text(pFX, _T("[honor_remark3]"), m_honor_remark3);
- RFX_Text(pFX, _T("[honor_remark4]"), m_honor_remark4);
- RFX_Text(pFX, _T("[honor_remark5]"), m_honor_remark5);
- RFX_Text(pFX, _T("[honor_remark6]"), m_honor_remark6);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CStudentSet diagnostics
- #ifdef _DEBUG
- void CStudentSet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CStudentSet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG