Existing code

This commit is contained in:
Stoyan Zlatev
2023-04-04 11:12:07 +02:00
parent 994af6e7af
commit fdfb42da9e
55 changed files with 2239 additions and 39 deletions
@@ -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();
}
}