FakturyWeb/Pages/Faktury/Index.cshtml

169 lines
5.1 KiB
Plaintext

@page
@model FakturyWeb.Pages.Faktury.IndexModel
@{
ViewData["Title"] = "Index";
}
<h1>Index</h1>
<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].ZAKAZNIK)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].CISLO)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].CISLO_ABS)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].VYSTAVENI)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].SPLATNOST)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_PRAJM)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_ULICE)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_MESTO)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_PSC)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_IC)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_DIC)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_BANKA)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_TELEFON)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_EMAIL)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].D_WEB)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].O_PRAJM)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].O_ULICE)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].O_MESTO)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].O_PSC)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].O_IC)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].O_DIC)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].FORMA_UHRADY)
</th>
<th>
@Html.DisplayNameFor(model => model.FAKTURA[0].CINNOSTI)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.FAKTURA) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.ZAKAZNIK.ID)
</td>
<td>
@Html.DisplayFor(modelItem => item.CISLO)
</td>
<td>
@Html.DisplayFor(modelItem => item.CISLO_ABS)
</td>
<td>
@Html.DisplayFor(modelItem => item.VYSTAVENI)
</td>
<td>
@Html.DisplayFor(modelItem => item.SPLATNOST)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_PRAJM)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_ULICE)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_MESTO)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_PSC)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_IC)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_DIC)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_BANKA)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_TELEFON)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_EMAIL)
</td>
<td>
@Html.DisplayFor(modelItem => item.D_WEB)
</td>
<td>
@Html.DisplayFor(modelItem => item.O_PRAJM)
</td>
<td>
@Html.DisplayFor(modelItem => item.O_ULICE)
</td>
<td>
@Html.DisplayFor(modelItem => item.O_MESTO)
</td>
<td>
@Html.DisplayFor(modelItem => item.O_PSC)
</td>
<td>
@Html.DisplayFor(modelItem => item.O_IC)
</td>
<td>
@Html.DisplayFor(modelItem => item.O_DIC)
</td>
<td>
@Html.DisplayFor(modelItem => item.FORMA_UHRADY)
</td>
<td>
@Html.DisplayFor(modelItem => item.CINNOSTI)
</td>
<td>
<a asp-page="./Edit" asp-route-id="@item.ID">Edit</a> |
<a asp-page="./Details" asp-route-id="@item.ID">Details</a> |
<a asp-page="./Delete" asp-route-id="@item.ID">Delete</a>
</td>
</tr>
}
</tbody>
</table>