@page "/MeasuringIn" @using AyCode.Utils.Extensions @using DevExpress.Blazor @using DevExpress.Blazor.Internal @using FruitBank.Common.Entities @using FruitBank.Common.Enums @using FruitBank.Common.SignalRs @using FruitBankHybrid.Shared.Components @using FruitBankHybrid.Shared.Services @using AyCode.Blazor.Components.Components.CardViews @using Mango.Nop.Core.Dtos

Áru bevételezés

@{ var cssClass = GetMeasuringDateCssClassNames(ctxShippingDate); if (!cssClass.IsNullOrWhiteSpace()) { @ctxShippingDate.Day.ToString() } else { @ctxShippingDate.Day.ToString() } }
@context.LicencePlate
@(MeasurementService.GetMeasuringStatusText(MeasurementService.GetShippingMeasuringStatus(context)))
@context.ShippingDate.ToString("yyyy.MM.dd") @if (!string.IsNullOrWhiteSpace(context.CargoCompany)) { — @context.CargoCompany }
@{ var allItems = context.ShippingDocuments? .Where(sd => sd.ShippingItems is not null) .SelectMany(sd => sd.ShippingItems!); } @if (allItems is not null) { @foreach (var item in allItems) {
@item.ProductName — @item.MeasuredQuantity/@item.QuantityOnDocument rekesz
} } @if (!string.IsNullOrWhiteSpace(context.Comment)) {
📝 @context.Comment
}
@ctxShipping.DisplayText @* @ctxShippingDocument.DisplayText *@ @*
@ctxShippingitem.DisplayText
*@ @ctxShippingitem.DisplayText)
@{ var sd = SelectedShippingItem?.ShippingDocument; if (sd != null) { var partnerName = sd.Partner?.Name; @($"{partnerName}, {sd.ShippingItems?.Count(si => si.IsMeasured) ?? 0}/{sd.ShippingItems?.Count ?? 0} kész.") } }
@if (SelectedShippingItem is { ProductId: > 0 }) {

#@(SelectedShippingItem.ProductId). @(SelectedShippingItem.ProductName)

@for (var index = 0; index < (SelectedShippingItem?.ShippingItemPallets?.Count ?? 0); index++) { var localI = index + 1; var currentShippingItemPallet = SelectedShippingItem!.ShippingItemPallets![index]; } TOTAL: Rekesz: @(SelectedShippingItem.MeasuredQuantity) db Br: @(SelectedShippingItem.MeasuredGrossWeight) kg Net: @(SelectedShippingItem.MeasuredNetWeight) kg @* *@ @if (!_errorText.IsNullOrWhiteSpace()) { HIBA! @_errorText //_errorText = string.Empty; } }
@code { }