47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using Foresight.Fleet.Services.User;
|
|
using IronIntel.Contractor;
|
|
using IronIntel.Contractor.Site;
|
|
using IronIntel.Services;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
public partial class FilterQ : FilterQBasePage
|
|
{
|
|
protected bool IsDealer;
|
|
protected bool IsContractor;
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
string tp = Request.QueryString["tp"];
|
|
if (string.Compare(tp, "ashx", true) == 0)
|
|
{
|
|
ProcessRequest();
|
|
}
|
|
else if (!IsPostBack)
|
|
{
|
|
Title = PageTitle;
|
|
if (CheckLoginSession())
|
|
{
|
|
bool license = SystemParams.HasLicense("FilterQ");
|
|
if (!license)
|
|
RedirectToEntryPage();
|
|
|
|
var cmp = SystemParams.GetCompanyInfo();
|
|
IsDealer = cmp.IsDealer;
|
|
IsContractor = cmp.IsContractor;
|
|
}
|
|
}
|
|
}
|
|
|
|
protected override int FeatureID
|
|
{
|
|
get
|
|
{
|
|
return Foresight.Fleet.Services.User.Feature.FILTERQ;
|
|
}
|
|
}
|
|
} |