This commit is contained in:
2024-03-26 15:56:31 +08:00
parent 634e8b71ab
commit 0855ae42cd
547 changed files with 94818 additions and 60463 deletions

View File

@@ -13,6 +13,7 @@ public partial class ManageMachines : MachineDeviceBasePage
public bool IsDealer = IronIntel.Contractor.SystemParams.IsDealer;
public bool IsReadOnly = false;
protected string AssetListApiAddress;
protected void Page_Load(object sender, EventArgs e)
{
@@ -35,6 +36,11 @@ public partial class ManageMachines : MachineDeviceBasePage
RedirectToLoginPage();
IsReadOnly = CheckReadonly(SystemParams.CompanyID, Feature.MANAGE_ASSETS);
if (!Request.Url.AbsoluteUri.Contains("localhost") && "https".Equals(Request.Url.Scheme, StringComparison.OrdinalIgnoreCase))
{
AssetListApiAddress = SystemParams.CurrentCustomerParams.AssetListApiAddress;
}
}
}
}
@@ -87,4 +93,11 @@ public partial class ManageMachines : MachineDeviceBasePage
return permission;
}
}
public string CompanyID
{
get
{
return SystemParams.CompanyID;
}
}
}