namespace Admin.NET.Plugin.AiDOP.Dto.S0.Warehouse;
// ========== 条码规则 ==========
public class AdoS0BarcodeRuleQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? DomainCode { get; set; }
public string? Customer { get; set; }
public string? Type { get; set; }
public string? Keyword { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0BarcodeRuleUpsertDto
{
///
/// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
/// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
/// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
///
public long CompanyRefId { get; set; }
/// 工厂。**服务端忽略**,同 。
public long FactoryRefId { get; set; }
[MaxLength(8)]
public string? DomainCode { get; set; }
[MaxLength(50)]
public string? Customer { get; set; }
[MaxLength(30)]
public string? Type { get; set; }
[MaxLength(8)]
public string? WaterRules { get; set; }
public int? WaterLen { get; set; }
[MaxLength(8)]
public string? Separator { get; set; }
public int? FirmLength { get; set; }
[MaxLength(20)]
public string? FirmString1 { get; set; }
public int? FirmStringLen1 { get; set; }
[MaxLength(30)]
public string? FirmString1Note { get; set; }
[MaxLength(20)]
public string? FirmString2 { get; set; }
public int? FirmStringLen2 { get; set; }
[MaxLength(30)]
public string? FirmString2Note { get; set; }
[MaxLength(20)]
public string? FirmString3 { get; set; }
public int? FirmStringLen3 { get; set; }
[MaxLength(30)]
public string? FirmString3Note { get; set; }
[MaxLength(20)]
public string? FirmString4 { get; set; }
public int? FirmStringLen4 { get; set; }
[MaxLength(30)]
public string? FirmString4Note { get; set; }
[MaxLength(20)]
public string? FirmString5 { get; set; }
public int? FirmStringLen5 { get; set; }
[MaxLength(30)]
public string? FirmString5Note { get; set; }
[MaxLength(20)]
public string? FirmString6 { get; set; }
public int? FirmStringLen6 { get; set; }
[MaxLength(30)]
public string? FirmString6Note { get; set; }
[MaxLength(20)]
public string? FirmString7 { get; set; }
public int? FirmStringLen7 { get; set; }
[MaxLength(30)]
public string? FirmString7Note { get; set; }
[MaxLength(20)]
public string? FirmString8 { get; set; }
public int? FirmStringLen8 { get; set; }
[MaxLength(30)]
public string? FirmString8Note { get; set; }
[MaxLength(20)]
public string? FirmString9 { get; set; }
public int? FirmStringLen9 { get; set; }
[MaxLength(30)]
public string? FirmString9Note { get; set; }
[MaxLength(20)]
public string? FirmString10 { get; set; }
public int? FirmStringLen10 { get; set; }
[MaxLength(30)]
public string? FirmString10Note { get; set; }
[MaxLength(20)]
public string? FirmString11 { get; set; }
public int? FirmStringLen11 { get; set; }
[MaxLength(30)]
public string? FirmString11Note { get; set; }
[MaxLength(20)]
public string? FirmString12 { get; set; }
public int? FirmStringLen12 { get; set; }
[MaxLength(30)]
public string? FirmString12Note { get; set; }
[MaxLength(24)]
public string? CreateUser { get; set; }
[MaxLength(24)]
public string? UpdateUser { get; set; }
}
// ========== 标签格式 ==========
public class AdoS0LabelTypeQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? DomainCode { get; set; }
public string? Keyword { get; set; }
public string? Class { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0LabelTypeUpsertDto
{
///
/// 公司。**服务端忽略**:新增由 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 BarType { get; set; } = string.Empty;
[MaxLength(50)]
public string? Class { get; set; }
[MaxLength(1000)]
public string? InputString { get; set; }
[MaxLength(100)]
public string? CreateUser { get; set; }
[MaxLength(100)]
public string? UpdateUser { get; set; }
}