资源介绍
用户管理
///
/// 用户权限ID
///
///
///
///
public static int UserPurviewID(int UserID, string PageName)
{
int PurviewID;
int PageID = UserLogin.SelectNowPageID(PageName);
if (PageID > 0)
{
PurviewID = UserLogin.SelectNowUserPurviwID(UserID, PageID);
if (PurviewID == 0)
{
PurviewID = UserLogin.SelectNowUserRolePurviewID(PageID, UserID);
if (PurviewID == 0)
{
return PurviewID = 0;
}
}
return PurviewID;
}
else
{
return PurviewID = 0;
}
}