Prvi commit
This commit is contained in:
120
EveryThing/Pages/TransportLoadingOrder/IndexLoadUnload.cshtml
Normal file
120
EveryThing/Pages/TransportLoadingOrder/IndexLoadUnload.cshtml
Normal file
@@ -0,0 +1,120 @@
|
||||
@using System.Web
|
||||
@model IList<EveryThing.Models.Transport.TransportLoadingOrderLoadUnload>
|
||||
|
||||
<table class="table card-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Naklad
|
||||
</th>
|
||||
<th>
|
||||
Razklad
|
||||
</th>
|
||||
<th>
|
||||
Tovor
|
||||
</th>
|
||||
<th style="width: 60px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@if (item.IdLoadingFk == null)
|
||||
{
|
||||
@Html.Raw(item.LoadingText.Replace(Environment.NewLine, "<br/>"))
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.DisplayFor(modelItem => item.Loading.Title) <br />
|
||||
@Html.DisplayFor(modelItem => item.Loading.Street) @($" ") @Html.DisplayFor(modelItem => item.Loading.HouseNumber) <br />
|
||||
@Html.DisplayFor(modelItem => item.Loading.PostNumber) @($" ") @Html.DisplayFor(modelItem => item.Loading.Post)
|
||||
}
|
||||
<br />
|
||||
|
||||
@if (item.LoadingDateFrom != null)
|
||||
{
|
||||
<br />
|
||||
@item.LoadingDateFrom.Value.ToString("dd.MM.yyyy")
|
||||
|
||||
@if (item.LoadingDateTo != null && item.LoadingDateTo.Value.Date != item.LoadingDateFrom.Value.Date)
|
||||
{
|
||||
@($" - ") @item.LoadingDateTo.Value.ToString("dd.MM.yyyy")
|
||||
}
|
||||
|
||||
<br />
|
||||
@item.LoadingDateFrom.Value.ToString("HH:mm")
|
||||
|
||||
@if (item.LoadingDateTo != null)
|
||||
{
|
||||
@($" - ") @item.LoadingDateTo.Value.ToString("HH:mm")
|
||||
}
|
||||
}
|
||||
|
||||
@if (!string.IsNullOrEmpty(item.LoadingReference))
|
||||
{
|
||||
<br />
|
||||
@($"Referenca: ") @Html.DisplayFor(modelItem => item.LoadingReference)
|
||||
}
|
||||
|
||||
@if (!string.IsNullOrEmpty(item.LoadingNote))
|
||||
{
|
||||
<br />
|
||||
@($"Opomba: ") @Html.DisplayFor(modelItem => item.LoadingNote)
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@if (item.IdUnloadingFk == null)
|
||||
{
|
||||
@Html.Raw(item.UnloadingText.Replace(Environment.NewLine, "<br/>"))
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.DisplayFor(modelItem => item.Unloading.Title) <br />
|
||||
@Html.DisplayFor(modelItem => item.Unloading.Street) @($" ") @Html.DisplayFor(modelItem => item.Unloading.HouseNumber) <br />
|
||||
@Html.DisplayFor(modelItem => item.Unloading.PostNumber) @($" ") @Html.DisplayFor(modelItem => item.Unloading.Post)
|
||||
}
|
||||
<br />
|
||||
|
||||
@if (item.UnloadingDateFrom != null)
|
||||
{
|
||||
<br />
|
||||
@item.UnloadingDateFrom.Value.ToString("dd.MM.yyyy")
|
||||
|
||||
@if (item.UnloadingDateTo != null && item.UnloadingDateTo.Value.Date != item.UnloadingDateFrom.Value.Date)
|
||||
{
|
||||
@($" - ") @item.UnloadingDateTo.Value.ToString("dd.MM.yyyy")
|
||||
}
|
||||
|
||||
<br />
|
||||
@item.UnloadingDateFrom.Value.ToString("HH:mm")
|
||||
|
||||
@if (item.UnloadingDateTo != null)
|
||||
{
|
||||
@($" - ") @item.UnloadingDateTo.Value.ToString("HH:mm")
|
||||
}
|
||||
}
|
||||
|
||||
@if (!string.IsNullOrEmpty(item.UnloadingReference))
|
||||
{
|
||||
<br />
|
||||
@($"Referenca: ") @Html.DisplayFor(modelItem => item.UnloadingReference)
|
||||
}
|
||||
|
||||
@if (!string.IsNullOrEmpty(item.UnloadingNote))
|
||||
{
|
||||
<br />
|
||||
@($"Opomba: ") @Html.DisplayFor(modelItem => item.UnloadingNote)
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@Html.Raw(HttpUtility.HtmlDecode(item.CargoDescription))
|
||||
</td>
|
||||
<td class="text-right">@*data-ajax-url="/index/partial"*@
|
||||
<a class="btn btn-xs icon-btn btn-outline-danger borderless" data-ajax="true" data-ajax-begin="loadStartElement('#loadPositions');" data-ajax-complete="loadPosition()" asp-page="Edit" asp-page-handler="positionremove" asp-route-idTransportLoadingOrder="@item.IdTransportLoadingOrderFk" asp-route-id="@item.IdTransportLoadingOrderLoadUnload" data-toggle="tooltip" data-placement="top" title="Odstrani" data-state="danger"><i class="fas fa-times"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user