Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ticketpriceset1.cpp
Package: 火车票预定.rar [view]
Upload User: syx6615
Upload Date: 2007-06-17
Package Size: 99k
Code Size: 2k
Category:
transportation applications
Development Platform:
Visual C++
- // ticketpriceset1.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ticketbook.h"
- #include "ticketpriceset1.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // ticketpriceset1
- IMPLEMENT_DYNAMIC(ticketpriceset1, CRecordset)
- ticketpriceset1::ticketpriceset1(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(ticketpriceset1)
- m_column1 = _T("");
- m_column2 = _T("");
- m_column3 = _T("");
- m_column4 = _T("");
- m_column5 = _T("");
- m_column6 = _T("");
- m_column7 = _T("");
- m_nFields = 7;
- //}}AFX_FIELD_INIT
- m_nDefaultType = dynaset;
- }
- CString ticketpriceset1::GetDefaultConnect()
- {
- return _T("ODBC;DSN=ticketbook");
- }
- CString ticketpriceset1::GetDefaultSQL()
- {
- return _T("[ticketprice]");
- }
- void ticketpriceset1::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(ticketpriceset1)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[站名]"), m_column1);
- RFX_Text(pFX, _T("[软卧(普快)]"), m_column2);
- RFX_Text(pFX, _T("[硬卧(普快)]"), m_column3);
- RFX_Text(pFX, _T("[硬座(普快)]"), m_column4);
- RFX_Text(pFX, _T("[软卧(特快)]"), m_column5);
- RFX_Text(pFX, _T("[硬卧(特快)]"), m_column6);
- RFX_Text(pFX, _T("[硬座(特快)]"), m_column7);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // ticketpriceset1 diagnostics
- #ifdef _DEBUG
- void ticketpriceset1::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void ticketpriceset1::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG