91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

這是一個基于vc++的酒店房客預定系統,有完整的軟件工程設計規范,是我們本學期的軟件工程的項目,需要的拿走哈! 資源包含:程序+文檔

資源截圖

代碼片段和文件信息

//?AskstateDialog.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“tot.h“
#include?“AskstateDialog.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CAskstateDialog?dialog


CAskstateDialog::CAskstateDialog(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAskstateDialog::IDD?pParent)
{
//{{AFX_DATA_INIT(CAskstateDialog)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT

if(!m_dab.Open(NULLFALSEFALSE“ODBC;DSN=Room“))
?{AfxMessageBox(“不能打開數據庫“);}
??
??



}


void?CAskstateDialog::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAskstateDialog)
DDX_Control(pDX?IDC_LIST1?m_ListCtrl);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAskstateDialog?CDialog)
//{{AFX_MSG_MAP(CAskstateDialog)
ON_BN_CLICKED(IDC_ASKSTATE?OnAskstate)
ON_NOTIFY(LVN_COLUMNCLICK?IDC_LIST1?OnColumnclickList1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CAskstateDialog?message?handlers

void?CAskstateDialog::OnAskstate()?
{
//?TODO:?Add?your?control?notification?handler?code?here
m_pSet.Open();
???m_ListCtrl.SetExtendedstyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
????m_ListCtrl.InsertColumn(0_T(“房間號“)LVCFMT_IMAGE|LVCFMT_LEFT);
m_ListCtrl.InsertColumn(1_T(“姓名“));
m_ListCtrl.InsertColumn(2_T(“身份證號“));
m_ListCtrl.InsertColumn(3_T(“性別“));
m_ListCtrl.InsertColumn(4_T(“入住時間“));
m_ListCtrl.InsertColumn(5_T(“住宿天數“));
???? m_ListCtrl.InsertColumn(6_T(“費用“));
m_ListCtrl.InsertColumn(7_T(“房間級別“));
???? m_ListCtrl.InsertColumn(8_T(“備注“));
m_ListCtrl.InsertColumn(9_T(“總人數“));

int?j;
????for(j=0;j<10;j++)
{
??m_ListCtrl.SetColumnWidth(j?90);
}

//顯示所有記錄
int?i=0;
m_pSet.MoveFirst();
????do
?{??
CString?s;
????????s.Format(“%d“m_pSet.m_roomID);
????????m_ListCtrl.InsertItem(is0);
m_ListCtrl.SetItemText(i1m_pSet.m_name);
????????
????m_ListCtrl.SetItemText(i2m_pSet.m_personID);
????????
????????m_ListCtrl.SetItemText(i3m_pSet.m_sex);

?????????s=m_pSet.m_logtime.Format(“%Y-%B-%d“);
??????m_ListCtrl.SetItemText(i4s);

??????????s.Format(“%d“m_pSet.m_day);
???????m_ListCtrl.SetItemText(i5s);
??s.Format(“%d“m_pSet.m_cost);
??m_ListCtrl.SetItemText(i6s);

????
?????????m_ListCtrl.SetItemText(i7m_pSet.m_class);

m_ListCtrl.SetItemText(i8m_pSet.m_information);
s.Format(“%d“m_pSet.m_people);
m_ListCtrl.SetItemText(i9s);
????????i++;

????????m_pSet.MoveNext();

}??while(!m_pSet.IsEOF());
????????m_pSet.MoveFirst();

m_pSet.Close();

}

void?CAskstateDialog::OnColumnclickList1(NMHDR*?pNMHDR?LRESULT*?pResult)?
{
NM_LISTVIEW*?pNMListView?=?(NM_LISTVIEW*)pNMHDR;
//?TODO:?Add?your?control?notification?handler?code?here
int?k=pNMListView->iSubIt

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????344064??2013-06-13?09:14??酒店客房預定系統(VC++)--課程設計\room.mdb

?????文件???????5164??2013-06-12?13:27??酒店客房預定系統(VC++)--課程設計\tot\AskstateDialog.cpp

?????文件???????1463??2013-06-12?13:28??酒店客房預定系統(VC++)--課程設計\tot\AskstateDialog.h

?????文件??????29812??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\AskstateDialog.obj

?????文件??????24506??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\FangDialog.obj

?????文件??????14212??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\FangSet.obj

?????文件??????24253??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\FindDialog.obj

?????文件??????32930??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\InroomDialog.obj

?????文件??????16340??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\LogDialog.obj

?????文件??????48704??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\MainFrm.obj

?????文件??????23622??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\OutOpeDialog.obj

?????文件??????17316??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\RoomSet.obj

?????文件?????110154??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\StdAfx.obj

?????文件??????24717??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\SysDialog.obj

?????文件????1773660??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\tot.exe

?????文件?????487360??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\tot.ilk

?????文件??????23450??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\tot.obj

?????文件????5790728??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\tot.pch

?????文件?????451584??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\tot.pdb

?????文件????1345056??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\tot.res

?????文件??????14890??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\totDoc.obj

?????文件??????34296??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\totView.obj

?????文件?????238592??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\vc60.idb

?????文件?????372736??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\vc60.pdb

?????文件??????16901??2013-06-12?13:56??酒店客房預定系統(VC++)--課程設計\tot\Debug\WaitDialog.obj

?????文件?????????10??2013-06-12?13:15??酒店客房預定系統(VC++)--課程設計\tot\Debug\建議.txt

?????文件???????3090??2013-06-12?13:28??酒店客房預定系統(VC++)--課程設計\tot\FangDialog.cpp

?????文件???????1378??2013-06-12?13:29??酒店客房預定系統(VC++)--課程設計\tot\FangDialog.h

?????文件???????1338??2013-06-12?13:30??酒店客房預定系統(VC++)--課程設計\tot\FangSet.cpp

?????文件???????1292??2013-06-12?13:33??酒店客房預定系統(VC++)--課程設計\tot\FangSet.h

............此處省略54個文件信息

評論

共有 條評論