37 lines
969 B
C#
37 lines
969 B
C#
namespace LaaProductionWeb.Services.Models
|
|
{
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
public class BatchPrintModel
|
|
{
|
|
private readonly PalletsBatchModel batchModel;
|
|
|
|
public BatchPrintModel(PalletsBatchModel batchModel)
|
|
=> this.batchModel = batchModel;
|
|
|
|
public string ClientName
|
|
=> this.batchModel.ClientName;
|
|
|
|
public int OrderNr
|
|
=> this.batchModel.OrderNr;
|
|
|
|
public int ProductionOrderNr
|
|
=> this.batchModel.ProductionOrderNr;
|
|
|
|
public IEnumerable<PalletPosition> Positions
|
|
=> this.batchModel.Positions;
|
|
|
|
public int TotlalItemsCount
|
|
=> this.batchModel.TotlalItemsCount;
|
|
|
|
public int ItemsCount
|
|
=> this.batchModel.ItemsCount;
|
|
|
|
public SerialNr[] Items
|
|
=> this.batchModel
|
|
.Items
|
|
.Where(x => x.IsScaned)
|
|
.ToArray();
|
|
}
|
|
} |