51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using IronIntel.Contractor.Site.SystemSettings;
|
|
|
|
public partial class SystemSettings : SystemSettingsBasePage
|
|
{
|
|
protected string StyleSettingDisplay = "display:none;";
|
|
protected string ParamSettingDisplay = "display:none;";
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!CheckLoginSession())
|
|
{
|
|
RedirectToLoginPage();
|
|
}
|
|
else
|
|
{
|
|
string methodName = Request.Form["MethodName"];
|
|
if (!string.IsNullOrEmpty(methodName))
|
|
{
|
|
ProcessRequest(methodName);
|
|
}
|
|
else if (!IsPostBack)
|
|
{
|
|
this.Title = PageTitle;
|
|
}
|
|
|
|
IronIntel.Contractor.Users.UserInfo user = GetCurrentUser();
|
|
if (user.UserType == IronIntel.Contractor.Users.UserTypes.SupperAdmin
|
|
|| user.UserType == IronIntel.Contractor.Users.UserTypes.Admin)
|
|
{
|
|
StyleSettingDisplay = "";
|
|
}
|
|
if (user.UserType == IronIntel.Contractor.Users.UserTypes.SupperAdmin)
|
|
{
|
|
ParamSettingDisplay = "";
|
|
}
|
|
}
|
|
}
|
|
public bool IsSupperAdmin
|
|
{
|
|
get
|
|
{
|
|
var user = GetCurrentUser();
|
|
return user.UserType == IronIntel.Contractor.Users.UserTypes.SupperAdmin;
|
|
}
|
|
}
|
|
} |