user_ds.cpp

来自「一个实用的GIS系统的系统维护模块」· C++ 代码 · 共 34 行

CPP
34
字号
// User_Ds.cpp: implementation of the User_Ds class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "yhgl.h"
#include "User_Ds.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

//获取用户登陆权限
//loginRole 1|系统管理员 2|数据集用户
BOOL getUserLoginPrivilege(LPCTSTR username,LPCTSTR password,int loginRole)
{
	return TRUE;
}

//获取登陆用户对数据集的控制权限
BOOL getUserDsPrivilege(LPCTSTR username,LPCTSTR password,UserDsArray& dsOperationArray,int loginRole)
{
	if (!getUserLoginPrivilege(username,password,loginRole)) return FALSE;

	return TRUE;
}

⌨️ 快捷键说明

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