Existing code
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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 int PositionNr
|
||||
=> this.batchModel.PositionNr;
|
||||
|
||||
public int TotlalItemsCount
|
||||
=> this.batchModel.TotlalItemsCount;
|
||||
|
||||
public string ItemsType
|
||||
=> this.batchModel.ItemsType;
|
||||
|
||||
public SerialNr[] Items
|
||||
=> this.batchModel
|
||||
.Items
|
||||
.Where(x => x.IsScaned)
|
||||
.ToArray();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user