namespace Admin.NET.Plugin.AiDOP.Dto.S0.Warehouse;
// ========== 零件包装规格 ==========
public class AdoS0ItemPackQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? DomainCode { get; set; }
public string? Keyword { get; set; }
public string? PackingType { get; set; }
public bool? IsActive { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0ItemPackUpsertDto
{
///
/// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
/// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
/// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
///
public long CompanyRefId { get; set; }
/// 工厂。**服务端忽略**,同 。
public long FactoryRefId { get; set; }
[MaxLength(50)]
public string? DomainCode { get; set; }
[Required(ErrorMessage = "物料编码不能为空")]
[MaxLength(100)]
public string ItemNum { get; set; } = string.Empty;
public decimal? PackingQty { get; set; }
public decimal? SmallPackingQty { get; set; }
[MaxLength(50)]
public string? PackingType { get; set; }
public decimal? NetWeight { get; set; }
[MaxLength(20)]
public string? WeightUM { get; set; }
public decimal? Length { get; set; }
public decimal? Width { get; set; }
public decimal? High { get; set; }
[MaxLength(50)]
public string? IssSpecific { get; set; }
[MaxLength(100)]
public string? CustItem { get; set; }
[MaxLength(500)]
public string? Remark { get; set; }
public bool IsActive { get; set; } = true;
[MaxLength(100)]
public string? CreateUser { get; set; }
[MaxLength(100)]
public string? UpdateUser { get; set; }
}
// ========== 物料职责 ==========
public class AdoS0EmpWorkDutyQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? DomainCode { get; set; }
public string? Keyword { get; set; }
public string? Employee { get; set; }
public string? Location { get; set; }
public string? ItemNum { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0EmpWorkDutyUpsertDto
{
///
/// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
/// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
/// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
///
public long CompanyRefId { get; set; }
/// 工厂。**服务端忽略**,同 。
public long FactoryRefId { get; set; }
[MaxLength(50)]
public string? DomainCode { get; set; }
[Required(ErrorMessage = "员工编码不能为空")]
[MaxLength(100)]
public string Employee { get; set; } = string.Empty;
[MaxLength(100)]
public string? ItemNum { get; set; }
[MaxLength(100)]
public string? ItemNum1 { get; set; }
[MaxLength(100)]
public string? ItemNum2 { get; set; }
[MaxLength(100)]
public string? Location { get; set; }
[MaxLength(100)]
public string? ProdLine { get; set; }
[MaxLength(500)]
public string? Duty { get; set; }
[MaxLength(50)]
public string? EmpType { get; set; }
[MaxLength(255)]
public string? Ufld2 { get; set; }
[MaxLength(100)]
public string? CreateUser { get; set; }
[MaxLength(100)]
public string? UpdateUser { get; set; }
}
// ========== 物料状态任务指派 ==========
public class AdoS0TaskAssignmentQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? DomainCode { get; set; }
public string? Keyword { get; set; }
public string? Rwlx { get; set; }
public string? Zt { get; set; }
public string? Sqr { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0TaskAssignmentUpsertDto
{
///
/// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
/// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
/// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
///
public long CompanyRefId { get; set; }
/// 工厂。**服务端忽略**,同 。
public long FactoryRefId { get; set; }
[MaxLength(50)]
public string? DomainCode { get; set; }
public DateTime? Tcrq { get; set; }
[MaxLength(100)]
public string? Sqr { get; set; }
[MaxLength(50)]
public string? Rwlx { get; set; }
[MaxLength(100)]
public string? Wlbm { get; set; }
public decimal? Sl { get; set; }
[MaxLength(100)]
public string? Rqpc { get; set; }
[MaxLength(100)]
public string? Yskw { get; set; }
[MaxLength(100)]
public string? Mdkw { get; set; }
public DateTime? Xqsj { get; set; }
[MaxLength(100)]
public string? Clr { get; set; }
[MaxLength(500)]
public string? Bz { get; set; }
[MaxLength(50)]
public string? Zt { get; set; }
[MaxLength(100)]
public string? CreateUser { get; set; }
[MaxLength(100)]
public string? UpdateUser { get; set; }
}