| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- 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
- {
- /// <summary>
- /// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
- /// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
- /// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
- /// </summary>
- public long CompanyRefId { get; set; }
- /// <summary>工厂。**服务端忽略**,同 <see cref="CompanyRefId"/>。</summary>
- 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
- {
- /// <summary>
- /// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
- /// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
- /// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
- /// </summary>
- public long CompanyRefId { get; set; }
- /// <summary>工厂。**服务端忽略**,同 <see cref="CompanyRefId"/>。</summary>
- 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; }
- }
|