34 lines
885 B
C#
34 lines
885 B
C#
namespace LaaProduction.Services.Models
|
|
{
|
|
using System;
|
|
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.Customer;
|
|
|
|
public Int32 OrderNr
|
|
=> this.batchModel.OrderNr;
|
|
|
|
public Int32 PalletNr
|
|
=> this.batchModel
|
|
.Positions
|
|
?.FirstOrDefault()
|
|
?.Items
|
|
?.FirstOrDefault()
|
|
?.PalletNr ?? 0;
|
|
|
|
public Int32 ProductionOrderNr
|
|
=> this.batchModel.ProductionOrderNr;
|
|
|
|
public IEnumerable<PalletPosition> Positions
|
|
=> this.batchModel.Positions;
|
|
}
|
|
} |