資源簡介
數據庫設計 賓館管理系統。有源代碼可以作為參考,利用sql語句實現

代碼片段和文件信息
//?AppendAccountDLG.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“hotel_mis.h“
#include?“AppendAccountDLG.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAppendAccountDLG?dialog
CAppendAccountDLG::CAppendAccountDLG(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAppendAccountDLG::IDD?pParent)
{
//{{AFX_DATA_INIT(CAppendAccountDLG)
m_sPWD1?=?_T(““);
m_sPWD2?=?_T(““);
m_sUSER?=?_T(““);
//}}AFX_DATA_INIT
}
void?CAppendAccountDLG::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAppendAccountDLG)
DDX_Text(pDX?IDD_APPEDNACCOUNT_PWD1?m_sPWD1);
DDX_Text(pDX?IDD_APPEDNACCOUNT_PWD2?m_sPWD2);
DDX_Text(pDX?IDD_APPEDNACCOUNT_USER?m_sUSER);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAppendAccountDLG?CDialog)
//{{AFX_MSG_MAP(CAppendAccountDLG)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAppendAccountDLG?message?handlers
void?CAppendAccountDLG::OnOK()?
{
//?TODO:?Add?extra?validation?here
UpdateData(true);
????m_sUSER.TrimRight(“?“);
//?Judge?whether?user?name?is?null
if?(?““==m_sUSER?)
{
AfxMessageBox(_T(“請輸入用戶名稱“)?MB_ICONEXCLAMATION);
????????return;
}
//?Judge?whether?the?user?exsists
_variant_t?Holder?strQuery;
????strQuery?=?“select?*?from?user_Info?where?user_ID=‘“+m_sUSER+“‘“;
theApp.ADOExecute(theApp.m_pADOSet?strQuery);
int?iCount?=?theApp.m_pADOSet->GetRecordCount();
if?(?0!=iCount?)?
{
AfxMessageBox(_T(“用戶名已經存在,請重新輸入用戶名“)?MB_ICONEXCLAMATION);
????????return;
}
//?Make?sure?pwd1?is?not?null
????if?(?““==m_sPWD1?)
{
AfxMessageBox(_T(“密碼不能未空“)?MB_ICONEXCLAMATION);
????????return;
}
//?Judge?whether?pwd1==pwd2
????if?(?0!=m_sPWD1.Compare(m_sPWD2)?)
{
AfxMessageBox(_T(“兩次輸入密碼不一樣,請確認“)?MB_ICONEXCLAMATION);
????????return;
}
CDialog::OnOK();
}
BOOL?CAppendAccountDLG::OnInitDialog()?
{
CDialog::OnInitDialog();
//?TODO:?Add?extra?initialization?here
((CEdit*)GetDlgItem(IDD_APPEDNACCOUNT_USER))->SetLimitText(15);
????((CEdit*)GetDlgItem(IDD_APPEDNACCOUNT_PWD1))->SetLimitText(10);
((CEdit*)GetDlgItem(IDD_APPEDNACCOUNT_PWD2))->SetLimitText(10);
return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
??????????????//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2560??2002-08-11?22:20??賓館管理系統\Code\AppendAccountDLG.cpp
?????文件???????1326??2002-08-09?23:55??賓館管理系統\Code\AppendAccountDLG.h
?????文件???????8609??2002-08-21?21:42??賓館管理系統\Code\BookInDLG.cpp
?????文件???????1525??2002-08-17?23:23??賓館管理系統\Code\BookInDLG.h
?????文件???????1813??2002-08-11?22:20??賓館管理系統\Code\ChangePwdDLG.cpp
?????文件???????1263??2002-08-10?00:24??賓館管理系統\Code\ChangePwdDLG.h
?????文件???????7883??2002-08-18?22:34??賓館管理系統\Code\CheckOutDLG.cpp
?????文件???????1488??2002-08-18?04:31??賓館管理系統\Code\CheckOutDLG.h
?????文件???????3235??2002-08-17?16:12??賓館管理系統\Code\CheckRemainDLG.cpp
?????文件???????1329??2002-08-17?15:07??賓館管理系統\Code\CheckRemainDLG.h
?????文件???????2882??2002-08-16?01:25??賓館管理系統\Code\CheckRoomDLG.cpp
?????文件???????1306??2002-08-16?01:14??賓館管理系統\Code\CheckRoomDLG.h
?????文件??????24930??2008-08-12?19:32??賓館管理系統\Code\Debug\AppendAccountDLG.obj
?????文件??????76295??2008-08-12?19:32??賓館管理系統\Code\Debug\BookInDLG.obj
?????文件??????15252??2008-08-12?19:32??賓館管理系統\Code\Debug\ChangePwdDLG.obj
?????文件??????76885??2008-08-12?19:32??賓館管理系統\Code\Debug\CheckOutDLG.obj
?????文件??????44454??2008-08-12?19:32??賓館管理系統\Code\Debug\CheckRemainDLG.obj
?????文件??????42359??2008-08-12?19:32??賓館管理系統\Code\Debug\CheckRoomDLG.obj
?????文件????2334853??2008-08-12?19:32??賓館管理系統\Code\Debug\Hotel_MIS.exe
?????文件??????72632??2008-08-12?19:32??賓館管理系統\Code\Debug\Hotel_MIS.obj
?????文件????3900416??2008-08-12?19:32??賓館管理系統\Code\Debug\Hotel_MIS.pdb
?????文件??????18332??2002-09-12?13:18??賓館管理系統\Code\Debug\Hotel_MIS.res
?????文件??????14330??2008-08-12?19:32??賓館管理系統\Code\Debug\Hotel_MISDoc.obj
?????文件?????166578??2008-08-12?19:32??賓館管理系統\Code\Debug\Hotel_MISView.obj
?????文件??????40305??2008-08-12?19:32??賓館管理系統\Code\Debug\LoginDLG.obj
?????文件??????33832??2008-08-12?19:32??賓館管理系統\Code\Debug\MainFrm.obj
?????文件??????25600??2008-06-11?22:22??賓館管理系統\Code\Debug\MainFrm.pdb
?????文件??????90999??2006-12-26?21:07??賓館管理系統\Code\Debug\msado15.tlh
?????文件??????76807??2006-12-26?21:07??賓館管理系統\Code\Debug\msado15.tli
?????文件??????61514??2008-08-12?19:32??賓館管理系統\Code\Debug\RoomDLG.obj
............此處省略54個文件信息
- 上一篇:Oracle的訂單管理系統文檔
- 下一篇:組態王與SQLServer的交互
評論
共有 條評論