namespace Admin.NET.Plugin.AiDOP.Order;
// ─────────────────────────── 列表查询入参 ───────────────────────────
/// 订单交付列表分页查询入参
public class OrderDeliveryListInput
{
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
/// 订单号(模糊)
public string? BillNo { get; set; }
/// 客户编码(模糊)
public string? CustomNo { get; set; }
/// 物料编码(模糊)
public string? ItemNumber { get; set; }
/// 客户交期 >= (yyyy-MM-dd)
public string? PlanDateFrom { get; set; }
/// 交付进度(精确:1~7)
public string? Progress { get; set; }
}
// ─────────────────────────── 列表行 ───────────────────────────
public sealed class OrderDeliveryListRow
{
/// 订单行 Id(crm_seorderentry.Id)
public long Id { get; set; }
/// 销售订单头 Id(crm_seorder.Id),用于打开销售订单详情
public long SeOrderId { get; set; }
public string? BillNo { get; set; }
public string? MoentryMono { get; set; }
public int? EntrySeq { get; set; }
public string? ItemNumber { get; set; }
public string? ItemName { get; set; }
public string? Specification { get; set; }
public string? Unit { get; set; }
public string? CustomNo { get; set; }
public string? CustomOrderBillNo { get; set; }
public string? CustomOrderItemNo { get; set; }
public int? CustomLevel { get; set; }
public decimal? Qty { get; set; }
public decimal? DeliverCount { get; set; }
public string? BomNumber { get; set; }
public string? EmpName { get; set; }
public string? PlannerName { get; set; }
public DateTime? PlanDate { get; set; }
public DateTime? SysCapacityDate { get; set; }
public DateTime? Date { get; set; }
public DateTime? CreateTime { get; set; }
public string? CreateByName { get; set; }
public string? Auditor { get; set; }
public string? Progress { get; set; }
public string? ProdLine { get; set; }
public string? ProdRange { get; set; }
public DateTime? ShipDate { get; set; }
public string? Recid { get; set; }
public string? Spstatus { get; set; }
public int? Rstate { get; set; }
}
// ─────────────────────────── 价值流响应 ───────────────────────────
/// 价值流顶部基础信息
public sealed class FlowBasicRow
{
public string? ItemNumber { get; set; }
public string? ItemName { get; set; }
public string? Specification { get; set; }
public decimal? Qty { get; set; }
public string? BillFrom { get; set; }
public DateTime? PlanDate { get; set; }
public string? Progress { get; set; }
public DateTime? Mrptime { get; set; }
}
/// Tab1 订单信息
public sealed class FlowOrderInfoRow
{
public string? BillNo { get; set; }
public string? CustomName { get; set; }
public int? CustomLevel { get; set; }
public string? State { get; set; }
public DateTime? Date { get; set; }
public string? CreateByName { get; set; }
public int? OrderType { get; set; }
public DateTime? AuditDate { get; set; }
public string? Auditor { get; set; }
public string? BillFrom { get; set; }
public string? EmpName { get; set; }
public string? EmpNo { get; set; }
}
/// Tab2 订单评审主体
public sealed class FlowReviewRow
{
public DateTime? SysCapacityDate { get; set; }
public string? MorderNo { get; set; }
public DateTime? CreateTime { get; set; }
public decimal? MakeQty { get; set; }
public decimal? UseQty { get; set; }
public decimal? MoQty { get; set; }
}
/// Tab2 变更记录子表
public sealed class FlowChangeRow
{
public int Sno { get; set; }
public string? BillNo { get; set; }
public string? ChangeType { get; set; }
public string? ChangeReason { get; set; }
public string? ChangeContent { get; set; }
public DateTime? UpdateTime { get; set; }
}
/// Tab3 计划排程
public sealed class FlowScheduleRow
{
public int Sno { get; set; }
public string? WorkOrds { get; set; }
public DateTime? WorkDate { get; set; }
public string? Line { get; set; }
public string? Op { get; set; }
public decimal? WorkQty { get; set; }
public string? ItemNum { get; set; }
public string? Descr { get; set; }
public string? Descr1 { get; set; }
public DateTime? CreateTime { get; set; }
}
/// Tab4 物料需求
public sealed class FlowMaterialRow
{
public int Sno { get; set; }
public string? Num { get; set; }
public string? ItemNumber { get; set; }
public string? ItemName { get; set; }
public string? Model { get; set; }
public string? Unit { get; set; }
public string? BomNumber { get; set; }
public string? KittingTime { get; set; }
public string? ErpClsName { get; set; }
public string? Backflush { get; set; }
public decimal? Qty { get; set; }
public decimal? Scrap { get; set; }
public decimal? Wastage { get; set; }
public decimal? NeedCount { get; set; }
public decimal? SelfLackQty { get; set; }
public decimal? Sqty { get; set; }
public decimal? UseQty { get; set; }
public decimal? LackQty { get; set; }
public decimal? MoQty { get; set; }
public decimal? MakeQty { get; set; }
public decimal? PurchaseQty { get; set; }
public decimal? PurchaseOccupyQty { get; set; }
public decimal? SubcontractingQty { get; set; }
public string? SatisfyTime { get; set; }
public string? Type { get; set; }
public string? HaveIcSubs { get; set; }
public string? SubstituteCode { get; set; }
}
/// Tab5 采购订单
public sealed class FlowPoRow
{
public int Sno { get; set; }
public string? PoBillNo { get; set; }
public string? SupplierNo { get; set; }
public string? SupplierName { get; set; }
public decimal? PoTotal { get; set; }
public string? PoPurchaser { get; set; }
public string? State { get; set; }
public DateTime? PoSsendDate { get; set; }
public DateTime? CreateTime { get; set; }
}
/// Tab5 采购申请
public sealed class FlowPrRow
{
public int Sno { get; set; }
public string? PrBillNo { get; set; }
public string? Number { get; set; }
public string? IcItemName { get; set; }
public string? Model { get; set; }
public string? PrPurchaseNumber { get; set; }
public string? PrPurchaseName { get; set; }
public decimal? PrAQty { get; set; }
public DateTime? PrSsendDate { get; set; }
public DateTime? PrSarriveDate { get; set; }
public string? PrUnit { get; set; }
public string? PrPurchaser { get; set; }
}
/// Tab5 物料交货单
public sealed class FlowDeliveryScheduleRow
{
public int Sno { get; set; }
public string? PoNumber { get; set; }
public string? DsNum { get; set; }
public string? ItemNum { get; set; }
public string? Descr { get; set; }
public string? SupplierCode { get; set; }
public string? Supplier { get; set; }
public DateTime? RequestDate { get; set; }
public DateTime? NeedDate { get; set; }
public decimal? SchedQty { get; set; }
public decimal? SentQty { get; set; }
public decimal? RestQty { get; set; }
}
/// Tab6 生产备料
public sealed class FlowNbrRow
{
public string? Line { get; set; }
public string? Nbr { get; set; }
/// 工单号
public string? WorkOrd { get; set; }
public string? ItemNum { get; set; }
public string? Descr { get; set; }
public string? Descr1 { get; set; }
public string? LocationFrom { get; set; }
public string? LocationTo { get; set; }
public decimal? CurrQtyOpened { get; set; }
public decimal? QtyOrd { get; set; }
public decimal? QtyFrom { get; set; }
public decimal? QtyRec { get; set; }
public string? Unit { get; set; }
public DateTime? UpdateTime { get; set; }
}
/// Tab7 生产报工
public sealed class FlowProdReportRow
{
public int Sno { get; set; }
public string? WorkOrd { get; set; }
public string? ItemNum { get; set; }
public string? Descr { get; set; }
public string? Descr1 { get; set; }
public string? Um { get; set; }
public decimal? QtyCompleted { get; set; }
public decimal? QtyReject { get; set; }
public decimal? QtyScrapped { get; set; }
public DateTime? ProdDate { get; set; }
public string? Op { get; set; }
public string? Name { get; set; }
}
/// Tab7 IQC信息
public sealed class FlowIqcRow
{
public int Line { get; set; }
public string? PoBill { get; set; }
public string? PoBillLine { get; set; }
public string? FBillNo { get; set; }
public string? FMaterialCfg { get; set; }
public string? Wlmc { get; set; }
public string? Ggxh { get; set; }
public decimal? FRinsQty { get; set; }
public DateTime? FApplyTime { get; set; }
public DateTime? FInspeStartDate { get; set; }
public string? FInspecStatus { get; set; }
}
/// Tab8 FQC信息
public sealed class FlowFqcRow
{
public int Sno { get; set; }
public string? WorkOrd { get; set; }
public string? Sczld { get; set; }
public string? FBillNo { get; set; }
public string? FMaterialCfg { get; set; }
public string? Wlmc { get; set; }
public string? Ggxh { get; set; }
public string? Scph { get; set; }
public decimal? FRinsQty { get; set; }
public DateTime? FInspeEndDate { get; set; }
}
/// Tab8 生产入库
public sealed class FlowReceiptRow
{
public int Sno { get; set; }
public string? Status { get; set; }
public string? WorkOrd { get; set; }
public string? ItemNum { get; set; }
public string? Descr { get; set; }
public string? Um { get; set; }
public decimal? QtyOrded { get; set; }
public decimal? CompQty { get; set; }
public decimal? InspectionNumber { get; set; }
public decimal? QualifiedNumber { get; set; }
public decimal? QtyChangeAdvance { get; set; }
public string? MoentryPrdName { get; set; }
public string? MoentryWrkcName { get; set; }
public DateTime? OrdDate { get; set; }
public DateTime? DueDate { get; set; }
public DateTime? CreateTime { get; set; }
}
/// Tab8 成品发运
public sealed class FlowShipmentRow
{
public int Sno { get; set; }
public string? Id { get; set; }
public string? Location { get; set; }
public DateTime? ShipDate { get; set; }
public decimal? QtyToShip { get; set; }
public decimal? RealQty { get; set; }
public string? LocationCode { get; set; }
}