fleet-contractor/Site/JobSite/JobSiteMasterPage.master.cs
2024-03-26 15:56:31 +08:00

50 lines
1.1 KiB
C#

using FI.FIC;
using Foresight.Fleet.Services.Styles;
using IronIntel.Contractor;
using IronIntel.Contractor.iisitebase;
using IronIntel.Contractor.Site;
using IronIntel.Contractor.Users;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class JobSiteMasterPage : CommonBase
{
protected string UserID;
protected string CompanyID;
protected override bool ExportModule
{
get { return true; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
GetUIStyle();
}
catch
{
// TODO: errors when get the ui style.
}
}
}
protected override StyleInfo GetUIStyle()
{
var style = base.GetUIStyle();
if (style != null && style.User != null)
{
UserID = style.User.ID;
}
CompanyID = SystemParams.CompanyID;
return style;
}
}