namespace Admin.NET.Plugin.AiDOP.Dto.S0.Warehouse;
// ========== 单号类型 ==========
public class AdoS0NbrTypeQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? DomainCode { get; set; }
public string? Keyword { get; set; }
public string? Dept { get; set; }
public string? NbrClass { get; set; }
public bool? IsActive { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0NbrTypeUpsertDto
{
///
/// 公司。**服务端忽略**:新增由 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(8)]
public string? Dept { get; set; }
[MaxLength(4)]
public string? NbrClass { get; set; }
[Required(ErrorMessage = "单号类型编码不能为空")]
[MaxLength(8)]
public string NbrType { get; set; } = string.Empty;
[MaxLength(24)]
public string? Descr1 { get; set; }
public bool IsActive { get; set; } = true;
[MaxLength(24)]
public string? CreateUser { get; set; }
[MaxLength(24)]
public string? UpdateUser { get; set; }
}
// ========== 单号规则 ==========
public class AdoS0NbrControlQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? DomainCode { get; set; }
public string? Keyword { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0NbrControlUpsertDto
{
///
/// 公司。**服务端忽略**:新增由 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(50)]
public string NbrType { get; set; } = string.Empty;
[MaxLength(50)]
public string? Description { get; set; }
[MaxLength(50)]
public string? NbrPre1 { get; set; }
[MaxLength(50)]
public string? NbrPre2 { get; set; }
[MaxLength(50)]
public string? NbrPre3 { get; set; }
public int? IniValue { get; set; }
public int? MinValue { get; set; }
public int? MaxValue { get; set; }
public bool AllowReset { get; set; }
public bool AllowSkip { get; set; }
public bool AllowManual { get; set; }
[MaxLength(50)]
public string? DateType { get; set; }
public bool IsDateType { get; set; }
[MaxLength(24)]
public string? CreateUser { get; set; }
[MaxLength(24)]
public string? UpdateUser { get; set; }
}