namespace MMDAL.DTO.PartLevel { public class PartLevelWorkbenchDTO { public int PartDetailId { get; set; } public int EntityTypeId { get; set; } public int EntityId { get; set; } public int EntityDetailId { get; set; } public int? ParentPartDetailId { get; set; } public int? RootPartDetailId { get; set; } public int ItemId { get; set; } public string ItemCode { get; set; } = string.Empty; public string ItemName { get; set; } = string.Empty; public int? SkuId { get; set; } public string? SkuCode { get; set; } public int? PartDimId { get; set; } public string? Dimension1 { get; set; } public string? Dimension2 { get; set; } public string? Dimension3 { get; set; } public string? Dimension4 { get; set; } public string? Dimension5 { get; set; } public decimal RequiredQty { get; set; } public int RequiredNumbers { get; set; } public decimal AllocatedQty { get; set; } public decimal IssuedQty { get; set; } public decimal ConsumedQty { get; set; } public decimal RemainingQty { get; set; } public decimal AvailableStock { get; set; } public decimal ReservedStock { get; set; } public int? AllocationId { get; set; } public string? AllocationCode { get; set; } public string? AllocationName { get; set; } public int? SalesOrderId { get; set; } public short Priority { get; set; } public DateTime? PlannedStartDate { get; set; } public DateTime? PlannedDueDate { get; set; } public decimal WipStock { get; set; } public decimal AvailableToWork { get; set; } public short Status { get; set; } public int TenantId { get; set; } } public class PartLevelWorkbenchCriteriaDTO { public int? AllocationId { get; set; } public int? ItemId { get; set; } public int? SalesOrderId { get; set; } public short? MaxPriority { get; set; } public short? Status { get; set; } public int PageOffset { get; set; } public int PageSize { get; set; } = 50; } public class PartLevelWIPSummaryDTO { public int ItemId { get; set; } public string ItemCode { get; set; } = string.Empty; public string ItemName { get; set; } = string.Empty; public decimal TotalRequired { get; set; } public decimal TotalAllocated { get; set; } public decimal TotalIssued { get; set; } public decimal TotalConsumed { get; set; } public decimal TotalRemaining { get; set; } public decimal TotalAvailable { get; set; } public decimal TotalWip { get; set; } public int OpenCount { get; set; } public int InProgressCount { get; set; } public int CompletedCount { get; set; } public short Priority { get; set; } public int? AllocationId { get; set; } public int TenantId { get; set; } } public class AllocationPriorityViewDTO { public int AllocationId { get; set; } public string AllocationCode { get; set; } = string.Empty; public string AllocationName { get; set; } = string.Empty; public short Priority { get; set; } public int OpenPartDetailCount { get; set; } public decimal TotalRemainingQty { get; set; } public decimal TotalAvailableQty { get; set; } public int TenantId { get; set; } } }