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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計--酒店管理信息系統(tǒng)(文件)

2025-08-25 06:54 上一頁面

下一頁面
 

【正文】 ///////////// CRoomDLG dialogCRoomDLG::CRoomDLG(CWnd* pParent /*=NULL*/) : CDialog(CRoomDLG::IDD, pParent){ //{{AFX_DATA_INIT(CRoomDLG) m_sMemo = _T()。 m_sType = _T()。 DDX_Text(pDX, IDD_ROOM_POSITION, m_sPosition)。 ( )。 // Make sure all needed info is available CString sWarning=。 if ( !=sWarning ) { sWarning += _T(不能為空)。 if ( 0==fPrice ) { AfxMessageBox(_T(客房單價:請輸入非零數(shù)字), MB_ICONEXCLAMATION)。 if (m_bAppend) { // Judge Room No is Unique strQuery = select * from rooms where roomNO=39。 if ( 0!=iCount ) { AfxMessageBox(_T(已經(jīng)存在此客房編號的記錄!), MB_ICONEXCLAMATION)。, 39。, +m_sPrice+, 39。 // Clear all input m_sNo=m_sType=m_sPosition=m_sPrice=m_sMemo=。 } else { strQuery = Update rooms set roomtype=39。, roomprice=+m_sPrice+, roommemo=39。 if ( (, strQuery) ) AfxMessageBox(_T(修改記錄成功!), MB_ICONINFORMATION)。 pRefreshRoom(strQuery)。 ((CEdit*)GetDlgItem(IDD_ROOM_POSITION))SetLimitText(20)。 strQuery = select * from roomtype。 for (int i=0。 // Get price to display if ( 0==i ) { Holder = GetCollect(price)。 } else { // Update Dialog Caption SetWindowText(_T(修改客房信息))。 int iSel=0。 MoveFirst()。 sType = ==VT_NULL?:(char*)(_bstr_t)Holder。 } ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))SetCurSel(iSel)。 // Get Room type int iIndex = ((CComboBox*)GetDlgItem(IDD_ROOM_TYPE))GetCurSel()。 strQuery = select price from roomtype where typename=39。 if ( 0==iCount ) { AfxMessageBox(_T(讀取客房價格錯誤!), MB_ICONEXCLAMATION)。 UpdateData(false)。 m_sRoomPosition = _T()。 m_sID = _T()。 //}}AFX_DATA_INIT}void CBookInDLG::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。 DDX_Text(pDX, IDD_BOOKIN_ROOMPRICE, m_sRoomPrice)。 DDX_DateTimeCtrl(pDX, IDD_BOOKIN_INDATE, m_tInDAte)。 ((CEdit*)GetDlgItem(IDD_BOOKIN_NAME))SetLimitText(20)。 strQuery = select * from rooms where putup=0 or putup is NULL。 for (int i=0。 // Get other onfo to display if ( 0==i ) { // Get RoomType Holder = GetCollect(roomtype)。 // Get roomprice Holder = GetCollect(roomprice)。 } MoveNext()。 // Update Dialog Caption SetWindowText(_T(修改訂房信息))。 strQuery = select * from rooms where putup=0 or putup is NULL。 for (int i=0。 ((CComboBox*)GetDlgItem(IDD_BOOKIN_ROOMNO))InsertString(i, str)。 m_sRoomPosition = ==VT_NULL?:(char*)(_bstr_t)Holder。 m_sRoomMemo = ==VT_NULL?:(char*)(_bstr_t)Holder。 } UpdateData(false)。 strQuery = select * from rooms where roomNO=39。 m_sRoomType = ==VT_NULL?:(char*)(_bstr_t)Holder。 (%.2f, )。}void CBookInDLG::OnOK() { // TODO: Add extra validation here UpdateData(true)。 ( )。 else if ( ==m_sDiscount ) sWarning=_T(折扣)。 } float fDiscount=atof(m_sDiscount)。 if ( fDiscount100 ) { AfxMessageBox(_T(折扣溢出,請不要超過100), MB_ICONEXCLAMATION)。+m_sOldID+39。 } // Check Record Unique strQuery = select * from bookin where roomno=39。 if ( 0!=iCount ) { AfxMessageBox(_T(該房間已經(jīng)登記入??!), MB_ICONEXCLAMATION)。 sSN = (%y%m%d%H%M%S)。+sSN+39。+m_sID+39。+sInDate+39。 if ( (, strQuery) ) { if ( m_bAppend ) { AfxMessageBox(_T(添加記錄成功!), MB_ICONINFORMATION)。 //Update Room Info strQuery = update rooms set putup=1 where roomNo=39。 } else { if ( m_bAppend ) AfxMessageBox(_T(添加記錄失?。?, MB_ICONEXCLAMATION)。 pRefreshBookIn(strQuery)。 m_sType = _T()。 //{{AFX_DATA_MAP(CCheckRemainDLG) DDX_Radio(pDX, IDD_CHECKREMAIN_RADIO_TYPEPRICE, m_iTypePrice)。 //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CCheckRemainDLG, CDialog) //{{AFX_MSG_MAP(CCheckRemainDLG) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCheckRemainDLG message handlersBOOL CCheckRemainDLG::OnInitDialog() { CDialog::OnInitDialog()。 int iCount = GetRecordCount()。 i++) { Holder = GetCollect(typename)。 // Init IDD_CHECKREMAIN_TOP Combobox CString str。 MoveFirst()。 (%.2f, )。 } ((CComboBox*)GetDlgItem(IDD_CHECKREMAIN_TOP))SetCurSel(0)。 _variant_t strQuery。 and putup=0。}// : implementation file//include include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。 m_sType = _T()。 DDX_Check(pDX, IDC_CHECKROOM_TYPECHEK, m_bTypeChecked)。amp。 //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CCheckRoomDLG, CDialog) //{{AFX_MSG_MAP(CCheckRoomDLG) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCheckRoomDLG message handlersvoid CCheckRoomDLG::OnOK() { // TODO: Add extra validation here UpdateData(true)。 //{{AFX_DATA_MAP(CCheckRoomDLG) DDX_Text(pDX, IDC_CHECKROOM_NO, m_sNo)。 m_bNoChecked = true。 pRefreshRoom(strQuery)。 else strQuery = select * from rooms where roomtype=39。 return TRUE。 ((CComboBox*)GetDlgItem(IDD_CHECKREMAIN_BOTTOM))InsertString(i, str)。 iiCount。 (, strQuery)。 MoveNext()。 for (int i=0。 strQuery = select distinct typename from roomtype。 DDX_CBString(pDX, IDD_CHECKREMAIN_TOP, m_sTop)。 m_sBottom = _T()。}// : implementation file//include include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。 } // Refresh BookIn List strQuery = select * from bookin where checkdate is NULL。 (, strQuery)。 ((CComboBox*)GetDlgItem(IDD_BOOKIN_ROOMNO))SetCurSel(0)。+m_sMemo+39。+m_sRoomNo+39。+m_sName+39。 sInDate = (%Y%m%d)。 } // Generate Serial No. CString sSN。 (, strQuery)。+m_sOldRoomNo+39。 } _variant_t strQuery。 return。
點擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1