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

@@ -40,7 +40,7 @@ public partial class SchedulerManagement : JobSiteRequirementsBasePage
}
DateTime userlocaldate = SystemParams.ConvertToUserTimeFromUtc(GetCurrentLoginSession().User, DateTime.UtcNow);
BeginDate = userlocaldate.ToShortDateString();
BeginDate = userlocaldate.ToString("yyyy-MM-dd");
CurrentDate = userlocaldate.ToShortDateString();
}
@@ -51,4 +51,15 @@ public partial class SchedulerManagement : JobSiteRequirementsBasePage
return Foresight.Fleet.Services.User.Feature.JOB_SITES_SCHEDULER;
}
}
public bool IsAdmin
{
get
{
var user = GetCurrentUser();
if (user.UserType == IronIntel.Contractor.Users.UserTypes.SupperAdmin || user.UserType == IronIntel.Contractor.Users.UserTypes.Admin)
return true;
else
return false;
}
}
}