add site
This commit is contained in:
35
Site/JobSite/AddJobSite.aspx.cs
Normal file
35
Site/JobSite/AddJobSite.aspx.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using DocumentFormat.OpenXml.Wordprocessing;
|
||||
using Foresight.Fleet.Services.User;
|
||||
using IronIntel.Contractor;
|
||||
using IronIntel.Contractor.Site.JobSite;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class AddJobSite : JobSitesBasePage
|
||||
{
|
||||
public string CurrentDate = "";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
string tp = Request.Params["tp"];
|
||||
if (string.Compare(tp, "ashx", true) == 0)
|
||||
{
|
||||
ProcessRequest();
|
||||
}
|
||||
else if (!IsPostBack)
|
||||
{
|
||||
Title = PageTitle;
|
||||
|
||||
bool license = SystemParams.HasLicense("JobSites");
|
||||
bool permission = CheckRight(SystemParams.CompanyID, Feature.JOB_SITES);
|
||||
if (!license || !permission)
|
||||
RedirectToEntryPage();
|
||||
}
|
||||
DateTime userlocaldate = SystemParams.ConvertToUserTimeFromUtc(GetCurrentLoginSession().User, DateTime.UtcNow);
|
||||
CurrentDate = userlocaldate.ToShortDateString();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user