freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫(kù)原理課程設(shè)計(jì)--客房管理系統(tǒng)-資料下載頁(yè)

2025-08-07 06:56本頁(yè)面
  

【正文】 w(CREATESTRUCTamp。 cs)。 protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo)。 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)。 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)。 //}}AFX_VIRTUAL// Implementationpublic: virtual ~CMy1View()。ifdef _DEBUG virtual void AssertValid() const。 virtual void Dump(CDumpContextamp。 dc) const。endifprotected:// Generated message map functionsprotected: //{{AFX_MSG(CMy1View) // NOTE the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP()}。ifndef _DEBUG // debug version in inline CMy1Doc* CMy1View::GetDocument() { return (CMy1Doc*)m_pDocument。 }endif///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.endif // !defined(AFX_1VIEW_H__D5742DEA_A7A8_4672_82BD_684859AACDCF__INCLUDED_)// : implementation of the ADOConn class.////////////////////////////////////////////////////////////////////////include include ifdef _DEBUGundef THIS_FILEstatic char THIS_FILE[]=__FILE__。define new DEBUG_NEWendif//////////////////////////////////////////////////////////////////////// Construction/Destruction//////////////////////////////////////////////////////////////////////ADO::ADO(){}ADO::~ADO(){}// 初始化—連接數(shù)據(jù)庫(kù)void ADO::OnInitADO(){ // 初始化OLE/COM庫(kù)環(huán)境 ::CoInitialize(NULL)。 try { // 創(chuàng)建Connection對(duì)象 ()。 // 設(shè)置連接字符串,必須是BSTR型或者_(dá)bstr_t類型 //sql server _bstr_t strConnect =Provider=。Integrated Security=SSPI。Persist Security Info=False。User ID=stt。Initial Catalog=HrSys。Data Source=MAYMINA。 _bstr_t strConnect =Provider=。Password=123。Persist Security Info=True。User ID=lzp。Initial Catalog=StuCou。Data Source=.。 //_bstr_t strConnect =Provider=。Password=sys。User ID=sys。Data Source=mydb。Persist Security Info=True。 //m_pConnectionOpen(strConnect,adConnectUnspecified)。 //oracle _bstr_t strConnect =Provider=。Password=system。Persist Security Info=True。User ID=system。Data Source=hrsys。 m_pConnectionOpen(strConnect,adModeUnknown)。 } // 捕捉異常 catch(__error e) { // 顯示錯(cuò)誤信息 AfxMessageBox(())。 }}// 執(zhí)行查詢_RecordsetPtramp。 ADO::GetRecordSet(_bstr_t bstrSQL){ try { // 連接數(shù)據(jù)庫(kù),如果Connection對(duì)象為空,則重新連接數(shù)據(jù)庫(kù) if(m_pConnection==NULL) OnInitADO()。 // 創(chuàng)建記錄集對(duì)象 (__uuidof(Recordset))。 // 取得表中的記錄 m_pRecordsetOpen(bstrSQL,(),adOpenDynamic,adLockOptimistic,adCmdText)。 } // 捕捉異常 catch(__error e) { // 顯示錯(cuò)誤信息 AfxMessageBox(())。 } // 返回記錄集 return m_pRecordset。} // 執(zhí)行SQL語(yǔ)句,Insert Update _variant_tBOOL ADO::ExecuteSQL(_bstr_t bstrSQL){// _variant_t RecordsAffected。 try { // 是否已經(jīng)連接數(shù)據(jù)庫(kù) if(m_pConnection == NULL) OnInitADO()。 // Connection對(duì)象的Execute方法:(_bstr_t CommandText, // VARIANT * RecordsAffected, long Options ) // 其中CommandText是命令字串,通常是SQL命令。 // 參數(shù)RecordsAffected是操作完成后所影響的行數(shù), // 參數(shù)Options表示CommandText的類型:adCmdText文本命令;adCmdTable表名 // adCmdProc存儲(chǔ)過(guò)程;adCmdUnknown未知 m_pConnectionExecute(bstrSQL,NULL,adCmdText)。 return true。 } catch(__error e) { AfxMessageBox(())。 return false。 }}void ADO::ExitConnect(){ // 關(guān)閉記錄集和連接 if (m_pRecordset != NULL) m_pRecordsetClose()。 m_pConnectionClose()。 // 釋放環(huán)境 ::CoUninitialize()。}// : implementation file//include include include include include include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。endifSQL sql2。/////////////////////////////////////////////////////////////////////////////// CCHECKIN dialogCCHECKIN::CCHECKIN(CWnd* pParent /*=NULL*/) : CDialog(CCHECKIN::IDD, pParent){ //{{AFX_DATA_INIT(CCHECKIN) m_username = _T()。 m_userid = _T()。 m_useday = _T()。 m_users = _T()。 m_radio_m = 0。 //初始化radio被選。200816 m_checkintime = 0。 m_roomnum = _T()。 m_sex = _T()。 m_roomstep = _T()。 m_time = _T()。 m_roomstd = 0。//初始化radio被選/組一定是第一個(gè)。200816 //}}AFX_DATA_INIT}void CCHECKIN::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CCHECKIN) DDX_Text(pDX, IDC_EDIT1, m_username)。 DDX_Text(pDX, IDC_EDIT2, m_userid)。 DDX_Text(pDX, IDC_EDIT3, m_useday)。 DDX_Text(pDX, IDC_EDIT5, m_users)。 DDX_Radio(pDX, IDC_RADIO1, m_radio_m)。 DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER1, m_checkintime)。 DDX_Text(pDX, IDC_EDIT4, m_roomnum)。 DDX_Text(pDX, IDC_sex, m_sex)。 DDX_Text(pDX, IDC_roomstep, m_roomstep)。 DDX_Radio(pDX, IDC_RADIO3, m_roomstd)。 //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CCHECKIN, CDialog) //{{AFX_MSG_MAP(CCHECKIN) ON_BN_CLICKED(IDC_BUTTON2, OnButton2) ON_BN_CLICKED(IDC_BUTTON3, OnButton3) ON_BN_CLICKED(IDC_BUTTON1, OnButton1) ON_BN_CLICKED(IDC_update, Onupdate) ON_BN_CLICKED(IDC_BUTTON5, OnButton5) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCHECKIN message handlersvoid CCHECKIN::OnButton2() { // TODO: Add your control notification handler code here // TODO: Add your control notification handler code here CString str。 //UpdateData()。 //200815 //int nID=GetCheckedRadioButton(IDC_RADIO2,IDC_RADIO3)。 //200815 //if (nID==IDC_RADIO2) //200815 try{ str=DRIVER={SQL Server}。SERVER=(local)。Database=kechengsheji。UID=lzp。PW=123。 (str,0)。 //調(diào)用CDatabase /* if(()) MessageBox(The DataBase contaction is successful!)。 //注意:信息的正確的寫法是“MessageBox”否則c++不會(huì)認(rèn)出 else MessageBox(The DataBase contaction is NOT successful!)。 */ } catch(CDBException *e
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1