< Summary

Information
Class: AspNetCoreGeneratedDocument.Areas_OneCFresh_Views_Catalog_Organizations
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/OneCFresh/Views/Catalog/Organizations.cshtml
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 55
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 10
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ExecuteAsync()0%110100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/OneCFresh/Views/Catalog/Organizations.cshtml

#LineLine coverage
 1@model OzonOrdersWeb.Areas.OneCFresh.ViewModels.OrganizationsViewModel
 2@{
 03    ViewData["Title"] = "Организации";
 4}
 5
 6<div class="d-flex align-items-center gap-2 mb-3">
 7    <h5 class="mb-0 fw-semibold">
 08        <i class="bi bi-bank me-2 text-primary"></i>@ViewData["Title"]
 9    </h5>
 010    <span class="badge bg-secondary">@Model.Items.Count</span>
 11</div>
 12
 013@if (TempData["Error"] is string err)
 14{
 015    <div class="alert alert-danger py-2 small">@err</div>
 16}
 17
 18<div class="table-responsive">
 19    <table class="table table-sm table-hover onec-table border">
 20        <thead class="table-light">
 21            <tr>
 22                <th>Наименование</th>
 23                <th>ИНН</th>
 24                <th>КПП</th>
 25                <th>GUID</th>
 26                <th>Статус</th>
 27            </tr>
 28        </thead>
 29        <tbody>
 030            @foreach (var item in Model.Items)
 31            {
 32                <tr class="@(item.DeletionMark ? "text-muted" : "")">
 033                    <td class="fw-semibold">@item.Description</td>
 034                    <td class="font-monospace">@item.Inn</td>
 035                    <td class="font-monospace">@item.Kpp</td>
 036                    <td class="font-monospace text-muted" style="font-size:.75rem">@item.RefKey.ToString().ToUpper()</td
 37                    <td>
 038                        @if (item.DeletionMark)
 39                        {
 40                            <span class="badge badge-deleted">Удалена</span>
 41                        }
 42                        else
 43                        {
 44                            <span class="badge bg-success">Активна</span>
 45                        }
 46                    </td>
 47                </tr>
 48            }
 049            @if (!Model.Items.Any())
 50            {
 51                <tr><td colspan="5" class="text-center text-muted py-3">Организации не найдены</td></tr>
 52            }
 53        </tbody>
 54    </table>
 55</div>

Methods/Properties

ExecuteAsync()