de here
if(theApp.m_Level == 1 )
{
pCmdUI -> Enable(true);
}
else if(theApp.m_Level == 0)
{
pCmdUI -> Enable(false);
MessageBox("您无权进行统计/结算","酒店管理系统");
}
else
{
pCmdUI -> Enable(false);
MessageBox("请您先登录","酒店管理系统");
}
}
void CMenuManageDlg::OnOrderSystem()
{
// TODO: Add your command handler code here
CDeskDlg dlg(this);
dlg.DoModal();
}
void CMenuManageDlg::OnUpdateOrderSystem(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
if(theApp.m_Level== 0 || theApp.m_Level == 1 )
{
pCmdUI -> Enable(true);
}
else
{
pCmdUI -> Enable(false);
MessageBox("请您先登录","酒店管理系统");
}
}
void CMenuManageDlg::OnLogout()
{
// TODO: Add your command handler code here
theApp.m_Level = -1;
MessageBox("本次登录已注销","酒店管理系统");
}
void CMenuManageDlg::OnPayCheck()
{
// TODO: Add your command handler code here
CPayDlg dlg(this);
dlg.DoModal();
}
void CMenuManageDlg::OnUpdatePayCheck(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
if(theApp.m_Level== 0 || theApp.m_Level == 1 )
{
pCmdUI -> Enable(true);
}
else
{
pCmdUI -> Enable(false);
MessageBox("请您先登录","酒店管理系统");
}
}
void CMenuManageDlg::OnPaymodeSet()
{
// TODO: Add your command handler code here
CSetPaymodeDlg dlg(this);
dlg.DoModal();
}
void CMenuManageDlg::OnUpdatePaymodeSet(CCm
上一篇:
MenuManage.cpp
下一篇:
白色姜花,略微开了