@using Infrastructure.Domain @using System.Security.Claims @{ var scope = ViewBag.ControllerScope as string; var entityType = ViewData["EntityTypeExt"] as Type; var isSoftDeleteEntity = typeof(ISoftDeleteEntity).IsAssignableFrom(entityType); var modelType = ViewData["ModelTypeExt"] as Type; HtmlTitle = modelType.GetDisplayName()+"列表"; var entityName = entityType.Name; var hasPermissions = (User.Identity as ClaimsIdentity).Claims.Any(o => o.Value.EndsWith($"-{entityName}")); var start = (Model.PageIndex - 1) * Model.PageSize; var prefix = new ViewDataDictionary(this.ViewData); prefix.TemplateInfo.HtmlFieldPrefix = "Query"; }
@section scripts{ @(await Html.PartialAsync("_Script")) }