librarymsdlg.cpp

来自「java 大作业 《处方跟踪系统》源代码 gui界面」· C++ 代码 · 共 747 行 · 第 1/2 页

CPP
747
字号

////////////////////////////////////////////////////////////////////////借阅信息管理

void CLibraryMSDlg::OnMenuitem32774() 
{
	// TODO: Add your command handler code here
	CBorrowManage borrowManage_dlg;
	borrowManage_dlg.DoModal();
	
}
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////读者信息管理
void CLibraryMSDlg::OnMenuitem32788() //读者信息添加
{
	// TODO: Add your command handler code here
    CReaderAdd Reader_Add_dlg;
	Reader_Add_dlg.DoModal();
}
void CLibraryMSDlg::OnMenuitem32789() //读者信息修改
{
	// TODO: Add your command handler code here
	CReaderManage Reader_Manage_dlg;
	Reader_Manage_dlg.DoModal();
}
void CLibraryMSDlg::OnMenuitem32790() //读者信息删除
{
	// TODO: Add your command handler code here
		CReaderManage Reader_Manage_dlg;
	Reader_Manage_dlg.DoModal();
	
}
void CLibraryMSDlg::OnMenuitem32794() //读者信息查询
{
	// TODO: Add your command handler code here
	CReaderManage Reader_Manage_dlg;
	Reader_Manage_dlg.DoModal();
	
}
////////////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////////////图书信息管理


void CLibraryMSDlg::OnMenuitem32795() //查询
{
	// TODO: Add your command handler code here
	CBookManage BookManage_dlg;
	BookManage_dlg.DoModal();
	
}
void CLibraryMSDlg::OnMenuitem32791() //添加
{
	// TODO: Add your command handler code here
    CBookAdd BookAdd_dlg;
	BookAdd_dlg.ISBNFlg = 0;
	BookAdd_dlg.DoModal();
	
}
void CLibraryMSDlg::OnMenuitem32792() //修改
{
	// TODO: Add your command handler code here
	CBookManage BookManage_dlg;
	BookManage_dlg.DoModal();
	
}
////////////////////////////////////////////////////////////////////////

BOOL CAboutDlg::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	return CDialog::Create(IDD, pParentWnd);
}
void CAboutDlg::OnOK() 
{CDialog::OnOK();}









void CLibraryMSDlg::OnMenuitem32775() 
{
	// TODO: Add your command handler code here
	CReturnBook ReturnBook_dlg;
	ReturnBook_dlg.DoModal();
	
}

void CLibraryMSDlg::OnMenuitem32811() 
{
	// TODO: Add your command handler code here
	CDataBaseSet vDataBaseSet;
    vDataBaseSet.DoModal();
}


void CLibraryMSDlg::OnUpdateMenuitem32788(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
   if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	  { pCmdUI->Enable(false);
   MessageBox("请先登录");}

}
void CLibraryMSDlg::OnUpdateMenuitem32775(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32777(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	  {pCmdUI->Enable(false); MessageBox("请先登录");}
}



void CLibraryMSDlg::OnUpdateMenuitem32779(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32780(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32781(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32783(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32784(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32785(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32786(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32787(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32789(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32790(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32791(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32792(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32793(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32794(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32795(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32801(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}	
}

void CLibraryMSDlg::OnUpdateMenuitem32802(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32803(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32804(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else{pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32805(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32806(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32807(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32808(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}

void CLibraryMSDlg::OnUpdateMenuitem32809(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}
void CLibraryMSDlg::OnUpdateMenuitem32810(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
}



void CLibraryMSDlg::OnUpdateMenuitem32811(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	
}

void CLibraryMSDlg::OnUpdateMenuitem32774(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
		if(flag != "0") 
 pCmdUI ->Enable(true);
   else
	   {pCmdUI->Enable(false); MessageBox("请先登录");}
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?