namespace MMDAL.DTO.PartLevel { public class PartDetailDTO { public int PartDetailId { get; set; } public int EntityTypeId { get; set; } // 1=MRPAction, 2=Indent, 3=PR, 4=PO, 5=WO 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 int? PartDimId { get; set; } public string? Dimension1 { get; set; } public string? Dimension2 { get; set; } public string? Dimension3 { get; set; } public decimal RequiredQty { get; set; } public int RequiredNumbers { get; set; } public int? AllocationId { 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 int CreatedById { get; set; } public DateTime CreatedOn { get; set; } public int ModifiedById { get; set; } public DateTime ModifiedOn { get; set; } public int PeggingGroupId { get; set; } } public class PartDetailListDTO { public int PartDetailId { get; set; } public int EntityTypeId { get; set; } public int EntityId { get; set; } public int ItemId { get; set; } public string ItemCode { get; set; } = string.Empty; public string ItemName { get; set; } = string.Empty; public int? PartDimId { get; set; } public string? DimensionLabel { get; set; } public decimal RequiredQty { get; set; } public decimal AllocatedQty { get; set; } public decimal RemainingQty { get; set; } public int? AllocationId { get; set; } public string? AllocationName { get; set; } public short Priority { get; set; } public DateTime? PlannedDueDate { get; set; } public short Status { get; set; } public int TenantId { get; set; } } public class PartDetailCriteriaDTO { public int? EntityTypeId { get; set; } public int? EntityId { get; set; } public int? ItemId { get; set; } public int? AllocationId { get; set; } public int? SalesOrderId { get; set; } public short? Priority { get; set; } public short? Status { get; set; } public int PageOffset { get; set; } public int PageSize { get; set; } = 50; } public class UpdatePartDetailStatusDTO { public int PartDetailId { get; set; } public short Status { get; set; } } }