0414-001
This commit is contained in:
@@ -596,9 +596,36 @@ namespace FineUIPro.Web
|
||||
this.CurrUser.LoginProjectId = this.drpProject.SelectedValue;
|
||||
this.XmlDataSource1.DataFile = "common/Menu_Personal.xml";
|
||||
this.leftPanel.Hidden = true;
|
||||
if (this.CurrUser.RoleType == Const.Role_III || this.CurrUser.RoleType == Const.Role_IV)
|
||||
var projectUser = BLL.ProjectUserService.GetProjectUserByUserIdProjectId(this.CurrUser.LoginProjectId, this.CurrUser.UserId);
|
||||
if (projectUser != null)
|
||||
{
|
||||
this.Tab1.IFrameUrl = "~/common/mainIII.aspx";
|
||||
string roleTypes = string.Empty;
|
||||
string roleCNs = string.Empty;
|
||||
string[] roles = projectUser.RoleId.Split(',');
|
||||
foreach (var item in roles)
|
||||
{
|
||||
var role = BLL.RoleService.GetRoleByRoleId(item);
|
||||
if (role != null && !string.IsNullOrEmpty(role.RoleType))
|
||||
{
|
||||
roleTypes = role.RoleType + ",";
|
||||
}
|
||||
if (role != null && !string.IsNullOrEmpty(role.CNProfessionalIds))
|
||||
{
|
||||
roleCNs = role.CNProfessionalIds + ",";
|
||||
}
|
||||
}
|
||||
if (roleTypes.Contains(Const.Role_III))
|
||||
{
|
||||
this.Tab1.IFrameUrl = "~/common/mainIII.aspx?roleCNs=" + roleCNs;
|
||||
}
|
||||
else if (roleTypes.Contains(Const.Role_IV))
|
||||
{
|
||||
this.Tab1.IFrameUrl = "~/common/mainIV.aspx?roleCNs=" + roleCNs + "&unitWorkIds=" + projectUser.WorkAreaId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Tab1.IFrameUrl = "~/common/mainProject.aspx";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user