namespace Admin.NET.Plugin.AiDOP.Order;
public class ProductDesignListInput
{
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
public string? BillNo { get; set; }
public string? ContractNo { get; set; }
/// 1=常规 2=非标
public int? ProductKind { get; set; }
public string? DesignLeadName { get; set; }
}
public class ProductDesignBomInput
{
public long? Id { get; set; }
/// 父行 Id;null/0 为根;新建行可用负数临时 Id,保存时解析
public long? ParentBomId { get; set; }
public int? Seq { get; set; }
public string? ItemNum { get; set; }
public string? ItemName { get; set; }
public string? ProcessCode { get; set; }
public decimal? Qty { get; set; }
public decimal? FixedLossQty { get; set; }
public string? BatchNo { get; set; }
}
public class ProductDesignRoutingInput
{
public long? Id { get; set; }
public int? Seq { get; set; }
public string? OpName { get; set; }
public string? OpCode { get; set; }
public int? IsKeyProcess { get; set; }
public string? ProductionLine { get; set; }
public string? RouteCode { get; set; }
}
public class ProductDesignSaveInput
{
public long? Id { get; set; }
public string? ContractNo { get; set; }
/// 1=常规 2=非标
public int ProductKind { get; set; } = 1;
public string? DesignLeadAccount { get; set; }
public string? DesignLeadName { get; set; }
public string? DrawingNo { get; set; }
public string? DrawingPlanStart { get; set; }
public string? DrawingPlanEnd { get; set; }
public string? DrawingActualStart { get; set; }
public string? DrawingActualEnd { get; set; }
/// 图纸设计周期(小时)
public int? DrawingDesignCycle { get; set; }
public string? Applicant { get; set; }
public string? ApplyDate { get; set; }
public string? ProductModel { get; set; }
public string? ItemNum { get; set; }
public string? ProductName { get; set; }
public string? Language { get; set; }
public string? LineRemark { get; set; }
public List Boms { get; set; } = new();
public List Routings { get; set; } = new();
}
public class ProductDesignDeleteInput
{
[Required(ErrorMessage = "Id不能为空")]
public long Id { get; set; }
}
/// BOM+工艺查询返回
public class BomAndRoutingOutput
{
public List Boms { get; set; } = new();
public List Routings { get; set; } = new();
/// 图纸设计周期(小时),从 ItemMaster.drawing_design 查询
public int? DrawingDesignCycle { get; set; }
}
/// BOM CTE 查询行
public class BomQueryRow
{
public string? ParentItem { get; set; }
public string? ItemNum { get; set; }
public string? ItemName { get; set; }
public string? Op { get; set; }
public decimal? Qty { get; set; }
public string? StructureType { get; set; }
public string? EmtType { get; set; }
public decimal? QtyConsumed { get; set; }
}
/// 工艺路线查询行
public class RoutingQueryRow
{
public string? Descr { get; set; }
public int? Op { get; set; }
public int? ParentOp { get; set; }
public string? MilestoneOp { get; set; }
}