namespace Admin.NET.Plugin.AiDOP.Order;
// ─────────────────────────── 查询入参 ───────────────────────────
/// 订单发货列表分页查询入参
public class AsnShipperListInput
{
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 10;
/// 发货单号(模糊)
public string? Id { get; set; }
/// 销售单号(模糊)
public string? OrdNbr { get; set; }
/// 部门(模糊)
public string? Department { get; set; }
/// 发货日期 >= 此值
public string? ShipDateFrom { get; set; }
}
// ─────────────────────────── 保存入参 ───────────────────────────
/// 发货明细行入参
public class AsnShipperDetailInput
{
/// 明细主键(编辑时传入,新增行为 null)
public int? RecID { get; set; }
public int? Line { get; set; }
public string? OrdNbr { get; set; }
public int? OrdLine { get; set; }
public string? ContainerItem { get; set; }
public string? Descr { get; set; }
public string? UM { get; set; }
public string? Location { get; set; }
public string? LotSerial { get; set; }
public decimal? QtyToShip { get; set; }
public decimal? PickingQty { get; set; }
public decimal? RealQty { get; set; }
public string? Status { get; set; }
public string? Remark { get; set; }
}
/// 新增 / 编辑订单发货入参
public class AsnShipperSaveInput
{
public int? RecID { get; set; }
/// 发货单号
public string? Id { get; set; }
[Required(ErrorMessage = "销售单号不能为空")]
public string OrdNbr { get; set; } = string.Empty;
public string? SoldTo { get; set; }
public string? Department { get; set; }
public string? ShipDate { get; set; }
public string? Status { get; set; }
public string? Remark { get; set; }
public List Details { get; set; } = new();
}
/// 删除入参
public class AsnShipperDeleteInput
{
[Required]
public int RecID { get; set; }
}