⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex_de_sure.cpp

📁 该系统为花店销售管理系统
💻 CPP
字号:
// ex_de_sure.cpp : implementation file
//

#include "stdafx.h"
#include "flowerSaleSystem.h"
#include "ex_de_sure.h"
#include "deset.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// ex_de_sure dialog


ex_de_sure::ex_de_sure(CWnd* pParent /*=NULL*/)
	: CDialog(ex_de_sure::IDD, pParent)
{
	//{{AFX_DATA_INIT(ex_de_sure)
	m_psw = _T("");
	//}}AFX_DATA_INIT
}


void ex_de_sure::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ex_de_sure)
	DDX_Text(pDX, IDC_EDIT1, m_psw);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(ex_de_sure, CDialog)
	//{{AFX_MSG_MAP(ex_de_sure)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ex_de_sure message handlers

void ex_de_sure::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData();
	deset de;
	de.m_strFilter.Format("mpower='%s'","超级");

	if(de.Open())
	{
		if(de.m_mpassword==m_psw)
			OnOK();
		else
			AfxMessageBox(_T("您输入的密码不正确,您没有权限修改记录! "),MB_OKCANCEL ,0);
	}
	
}

⌨️ 快捷键说明

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