This commit is contained in:
gaofei
2022-04-14 11:15:34 +08:00
parent 274010da92
commit 8e73412eb6
49 changed files with 1609 additions and 2301 deletions
+29 -2
View File
@@ -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
{