杂项:JFB-权限设置

ylbtech-杂项:JFB-权限设置
1. 家政经理返回顶部
1、
if (UserContext.GetTeamId() == (int)UserType.Manager)
{
    condition.ManagerId = UserContext.GetMemberId();
}
2、
 
2.返回顶部
1、

if (UserContext.CurrentUser.UserType == UserType.Manager)
{
conditions += @" and a.ManagerId=" + UserContext.CurrentUser.MemberId;
}
if (UserContext.CurrentUser.UserType == UserType.Employer)
{
conditions += @" and b.MemberId=" + UserContext.CurrentUser.MemberId;
}
if (UserContext.CurrentUser.UserType == UserType.Cleaning)
{
conditions += @" and c.MemberId=" + UserContext.CurrentUser.MemberId;
}

2、
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
7.返回顶部
 
8.返回顶部
 
9.返回顶部
 
10.返回顶部
 
 
11.返回顶部
 
12.返回顶部
 
13.返回顶部
 
14.返回顶部
 
15.返回顶部
 
 
16.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/storebook/p/8805635.html