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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計(jì)--酒店管理信息系統(tǒng)(編輯修改稿)

2024-09-03 06:54 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 XCLAMATION)。 CDialog::OnCancel()。 return。 } AfxMessageBox(沒有這個(gè)用戶,請(qǐng)重新輸入用戶名, MB_ICONEXCLAMATION)。 return。 } CString sPWD。 MoveFirst()。 Holder = GetCollect(user_PWD)。 sPWD = ==VT_NULL?:(char*)(_bstr_t)Holder。 if ( 0!=(m_sPWD) ) { ++。 if ( 2 ) { AfxMessageBox(輸入密碼不正確\n三次輸入均不正確,請(qǐng)核對(duì)后再來, MB_ICONEXCLAMATION)。 CDialog::OnCancel()。 return。 } AfxMessageBox(輸入密碼不正確,請(qǐng)重新輸入, MB_ICONEXCLAMATION)。 return。 } // Get Login User = m_sUSER。 CDialog::OnOK()。}include include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。endif/////////////////////////////////////////////////////////////////////////////// CRoomDLG dialogCRoomDLG::CRoomDLG(CWnd* pParent /*=NULL*/) : CDialog(CRoomDLG::IDD, pParent){ //{{AFX_DATA_INIT(CRoomDLG) m_sMemo = _T()。 m_sNo = _T()。 m_sPosition = _T()。 m_sPrice = _T()。 m_sType = _T()。 //}}AFX_DATA_INIT}void CRoomDLG::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CRoomDLG) DDX_Text(pDX, IDD_ROOM_MEMO, m_sMemo)。 DDX_Text(pDX, IDD_ROOM_NO, m_sNo)。 DDX_Text(pDX, IDD_ROOM_POSITION, m_sPosition)。 DDX_Text(pDX, IDD_ROOM_PRICE, m_sPrice)。 DDX_CBString(pDX, IDD_ROOM_TYPE, m_sType)。 //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CRoomDLG, CDialog) //{{AFX_MSG_MAP(CRoomDLG) ON_CBN_SELCHANGE(IDD_ROOM_TYPE, OnRoomTypeChange) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CRoomDLG message handlersvoid CRoomDLG::OnOK() { // TODO: Add extra validation here UpdateData(true)。 ( )。 ( )。 ( )。 ( )。 // Make sure all needed info is available CString sWarning=。 if ( ==m_sNo ) sWarning=_T(客房編號(hào))。 else if ( ==m_sPosition ) sWarning=_T(客房位置)。 else if ( ==m_sPrice ) sWarning=_T(客房?jī)r(jià)格)。 if ( !=sWarning ) { sWarning += _T(不能為空)。 AfxMessageBox(sWarning, MB_ICONEXCLAMATION)。 return。 } // Make sure the Number info is valid float fPrice=atof(m_sPrice)。 if ( 0==fPrice ) { AfxMessageBox(_T(客房單價(jià):請(qǐng)輸入非零數(shù)字), MB_ICONEXCLAMATION)。 return。 } (%.2f, fPrice)。 _variant_t strQuery。 if (m_bAppend) { // Judge Room No is Unique strQuery = select * from rooms where roomNO=39。+m_sNo+39。 (, strQuery)。 int iCount = GetRecordCount()。 if ( 0!=iCount ) { AfxMessageBox(_T(已經(jīng)存在此客房編號(hào)的記錄!), MB_ICONEXCLAMATION)。 return。 } } if (m_bAppend)// Append Record { strQuery = insert rooms (roomNo, roomtype, roomposition, roomprice, roommemo) \ values (39。+m_sNo+39。, 39。+m_sType+39。, 39。+m_sPosition+39。, +m_sPrice+, 39。+m_sMemo+39。)。 if ( (, strQuery) ) { AfxMessageBox(_T(添加記錄成功!), MB_ICONINFORMATION)。 // Clear all input m_sNo=m_sType=m_sPosition=m_sPrice=m_sMemo=。 ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))SetCurSel(0)。 UpdateData(false)。 } else AfxMessageBox(_T(添加記錄失??!), MB_ICONEXCLAMATION)。 } else { strQuery = Update rooms set roomtype=39。+m_sType+39。, roomposition=39。+m_sPosition+39。, roomprice=+m_sPrice+, roommemo=39。+m_sMemo+39。 \ where roomNo=39。+m_sNo+39。 if ( (, strQuery) ) AfxMessageBox(_T(修改記錄成功!), MB_ICONINFORMATION)。 else AfxMessageBox(_T(修改記錄失??!), MB_ICONEXCLAMATION)。 } // Refresh Room List strQuery = select * from rooms。 CHotel_MISView* p = (CHotel_MISView*)(((CMainFrame*)AfxGetMainWnd())GetActiveView())。 pRefreshRoom(strQuery)。 if (!m_bAppend) CDialog::OnOK()。}BOOL CRoomDLG::OnInitDialog() { CDialog::OnInitDialog()。 // TODO: Add extra initialization here // Set Edit Text limit ((CEdit*)GetDlgItem(IDD_ROOM_NO))SetLimitText(10)。 ((CEdit*)GetDlgItem(IDD_ROOM_POSITION))SetLimitText(20)。 ((CEdit*)GetDlgItem(IDD_ROOM_PRICE))SetLimitText(8)。 if (m_bAppend) { // Update Dialog Caption SetWindowText(_T(添加客房信息))。 // Init Combobox _variant_t strQuery, Holder。 strQuery = select * from roomtype。 (, strQuery)。 int iCount = GetRecordCount()。 MoveFirst()。 for (int i=0。 iiCount。 i++) { Holder = GetCollect(typename)。 ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))InsertString(i, ==VT_NULL?:(char*)(_bstr_t)Holder)。 // Get price to display if ( 0==i ) { Holder = GetCollect(price)。 (%.2f, )。 } MoveNext()。 } ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))SetCurSel(0)。 } else { // Update Dialog Caption SetWindowText(_T(修改客房信息))。 // Disable room no edit GetDlgItem(IDD_ROOM_NO)EnableWindow(false)。 // Init Combobox _variant_t strQuery, Holder。 CString sType。 int iSel=0。 strQuery = select typename from roomtype。 (, strQuery)。 int iCount = GetRecordCount()。 MoveFirst()。 for (int i=0。 iiCount。 i++) { Holder = GetCollect(typename)。 sType = ==VT_NULL?:(char*)(_bstr_t)Holder。 ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))InsertString(i, sType)。 if ( sType==m_sType ) iSel=i。 MoveNext()。 } ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))SetCurSel(iSel)。 } UpdateData(false)。 return TRUE。 // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE}void CRoomDLG::OnRoomTypeChange() { // TODO: Add your control notification handler code here UpdateData(true)。 // Get Room type int iIndex = ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))GetCurSel()。 CString sType。 ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))GetLBText(iIndex, sType)。 _variant_t strQuery, Holder。 strQuery = select price from roomtype where typename=39。+sType+39。 (, s
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1