12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- // TableHospitalclient.h : CTableHospitalclient 类的实现
- // CTableHospitalclient 实现
- // 代码生成在 2014年9月24日, 17:26
- #include "stdafx.h"
- #include "TableHospitalclient.h"
- IMPLEMENT_DYNAMIC(CTableHospitalclient, CRecordset)
- CTableHospitalclient::CTableHospitalclient(CDatabase* pdb)
- : CRecordset(pdb)
- {
- m_id = L"";
- m_checkmsg = L"";
- m_name1 = L"";
- m_name2 = L"";
- m_sex = L"";
- m_check1 = L"";
- m_birthdaytype = L"";
- m_birthday = L"";
- m_pregnancydays = L"";
- m_date1 = L"";
- m_type = L"";
- m_phone1 = L"";
- m_nFields = 12;
- m_nDefaultType = dynaset;
- }
- //#error 安全问题:连接字符串可能包含密码。
- // 此连接字符串中可能包含明文密码和/或其他重要
- // 信息。请在查看完此连接字符串并找到所有与安全
- // 有关的问题后移除 #error。可能需要将此密码存
- // 储为其他格式或使用其他的用户身份验证。
- CString CTableHospitalclient::GetDefaultConnect()
- {
- return _T("ODBC;DSN");
- }
- CString CTableHospitalclient::GetDefaultSQL()
- {
- return _T("[dbo].[hospitalclient]");
- }
- void CTableHospitalclient::DoFieldExchange(CFieldExchange* pFX)
- {
- pFX->SetFieldType(CFieldExchange::outputColumn);
- // RFX_Text() 和 RFX_Int() 这类宏依赖的是
- // 成员变量的类型,而不是数据库字段的类型。
- // ODBC 尝试自动将列值转换为所请求的类型
- RFX_Text(pFX, _T("[id]"), m_id);
- RFX_Text(pFX, _T("[checkmsg]"), m_checkmsg);
- RFX_Text(pFX, _T("[name1]"), m_name1);
- RFX_Text(pFX, _T("[name2]"), m_name2);
- RFX_Text(pFX, _T("[sex]"), m_sex);
- RFX_Text(pFX, _T("[check1]"), m_check1);
- RFX_Text(pFX, _T("[birthdaytype]"), m_birthdaytype);
- RFX_Text(pFX, _T("[birthday]"), m_birthday);
- RFX_Text(pFX, _T("[pregnancydays]"), m_pregnancydays);
- RFX_Text(pFX, _T("[date1]"), m_date1);
- RFX_Text(pFX, _T("[type]"), m_type);
- RFX_Text(pFX, _T("[phone1]"), m_phone1);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CTableHospitalclient 诊断
- #ifdef _DEBUG
- void CTableHospitalclient::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CTableHospitalclient::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG
|