@page "/objects/houses" @using Hcs.WebApp.Components.Dialogs @using Hcs.WebApp.Services @using Microsoft.AspNetCore.Authorization @using System.Security.Claims @inherits SyncedPageBase @attribute [Authorize] @inject HouseService HouseService @inject DialogService DialogService Жилищный фонд @* *@ @code { protected override Campaign.CampaignType CampaignType => Campaign.CampaignType.ExportHousesData_15_7_0_1; protected override bool HasPermission(ClaimsPrincipal user) { return user.IsOperatorOrHigher(); } protected override Task> GetDataAsync() { return HouseService.GetAllHousesAsync(); } async Task RowExpandAsync(House house) { // TODO } async Task ShowElementAsync(RegistryElement registryElement) { // await DialogService.OpenAsync( // "Просмотр записи", // new Dictionary() // { // { nameof(ViewRegistryElement.RegistryElement), registryElement } // }, // new DialogOptions() // { // Width = "420px", // Height = "600px" // }); } }