| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- namespace Admin.NET.Plugin.AiDOP.Dto.S0.Supply;
- /// <summary>供应商主数据启停(SuppMaster / IsActive)</summary>
- public class AdoS0SuppMasterToggleActiveDto
- {
- public bool IsActive { get; set; }
- }
- public class AdoS0SuppMasterQueryDto
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- /// <summary>同时匹配供应商编码、简称</summary>
- public string? Keyword { get; set; }
- public string? Supp { get; set; }
- public string? SortName { get; set; }
- public string? Address { get; set; }
- public string? Contact { get; set; }
- public string? Position { get; set; }
- public string? ContactInfo { get; set; }
- public string? CertificationLevel { get; set; }
- public string? CrTerms { get; set; }
- public string? Curr { get; set; }
- public string? Type { get; set; }
- public bool? TaxIn { get; set; }
- public string? TaxClass { get; set; }
- public string? PurContact { get; set; }
- public bool? IsActive { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0SuppMasterUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [MaxLength(50)]
- public string? DomainCode { get; set; }
- [Required(ErrorMessage = "供应商编码不能为空")]
- [MaxLength(100)]
- public string Supp { get; set; } = string.Empty;
- [MaxLength(200)]
- public string? SortName { get; set; }
- [MaxLength(500)]
- public string? Address { get; set; }
- [MaxLength(200)]
- public string? Contact { get; set; }
- [MaxLength(200)]
- public string? Position { get; set; }
- [MaxLength(200)]
- public string? ContactInfo { get; set; }
- [MaxLength(100)]
- public string? CertificationLevel { get; set; }
- [MaxLength(100)]
- public string? PurContact { get; set; }
- [MaxLength(50)]
- public string? CrTerms { get; set; }
- [MaxLength(20)]
- public string? Curr { get; set; }
- [MaxLength(50)]
- public string? Type { get; set; }
- public bool TaxIn { get; set; } = true;
- [MaxLength(50)]
- public string? TaxClass { get; set; }
- public int? APStartDay1 { get; set; }
- public int? APEndDay1 { get; set; }
- public int? APStartDay2 { get; set; }
- public int? APEndDay2 { get; set; }
- [MaxLength(1000)]
- 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 AdoS0CategoryLeadTimeQueryDto
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- public string? CategoryCode { get; set; }
- public string? OwnerApplication { get; set; }
- public string? Keyword { get; set; }
- public bool? IsActive { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0CategoryLeadTimeUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [MaxLength(50)]
- public string? DomainCode { get; set; }
- [Required(ErrorMessage = "品类编码不能为空")]
- [MaxLength(100)]
- public string CategoryCode { get; set; } = string.Empty;
- [MaxLength(200)]
- public string? CategoryName { get; set; }
- [Required(ErrorMessage = "物料属性不能为空")]
- [MaxLength(100)]
- public string OwnerApplication { get; set; } = string.Empty;
- [Range(0, int.MaxValue, ErrorMessage = "采购前置期不能为负")]
- public int LeadTimeDays { get; set; }
- [MaxLength(500)]
- public string? Remarks { get; set; }
- public bool IsActive { get; set; } = true;
- [MaxLength(100)]
- public string? CreateUser { get; set; }
- [MaxLength(100)]
- public string? UpdateUser { get; set; }
- }
- public class AdoS0CategoryLeadTimeToggleActiveDto
- {
- public bool IsActive { get; set; }
- }
- public class AdoS0SrmPurchaseQueryDto
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- /// <summary>物料编码 / 名称关键字</summary>
- public string? Keyword { get; set; }
- public string? SupplierType { get; set; }
- public string? IsActive { get; set; }
- public string? SupplierName { get; set; }
- public string? SupplierNumber { get; set; }
- public long? CurrencyType { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0SrmPurchaseUpsertDto
- {
- // 放宽 1→0:srm_purchase 历史货源记录存在 company/factory=0(未组织化)数据,编辑保存需放行 0;
- // 如后续要求强制组织维度,改回 Range(1, long.MaxValue) 即可。
- [Range(0, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(0, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [MaxLength(50)]
- public string? DomainCode { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "物料不能为空")]
- public long IcitemId { get; set; }
- [MaxLength(200)]
- public string? IcitemName { get; set; }
- [MaxLength(50)]
- public string? SupplierType { get; set; }
- [MaxLength(64)]
- public string? IsActive { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "供应商不能为空")]
- public long SupplierId { get; set; }
- [MaxLength(200)]
- public string? SupplierName { get; set; }
- [MaxLength(100)]
- public string? SupplierNumber { get; set; }
- public decimal? OrderPrice { get; set; }
- public long? CurrencyType { get; set; }
- public decimal? Taxrate { get; set; }
- public decimal? Tariff { get; set; }
- public decimal? Freight { get; set; }
- [MaxLength(200)]
- public string? PriceTerms { get; set; }
- public DateTime? EffectiveDate { get; set; }
- public DateTime? ExpiringDate { get; set; }
- public decimal? QuotaRate { get; set; }
- public decimal? LeadTime { get; set; }
- public decimal? QtyMin { get; set; }
- public decimal? PackagingQty { get; set; }
- [MaxLength(100)]
- public string? OrderRectorName { get; set; }
- [MaxLength(100)]
- public string? OrderRectorNum { get; set; }
- public int IsRequireGoods { get; set; }
- [MaxLength(100)]
- public string? CreateUser { get; set; }
- [MaxLength(100)]
- public string? UpdateUser { get; set; }
- }
- public class AdoS0MaterialPlanCycleQueryDto
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- public string? OrderType { get; set; }
- public string? Keyword { get; set; }
- public bool? IsActive { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0MaterialPlanCycleUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [MaxLength(50)]
- public string? DomainCode { get; set; }
- /// <summary>订单类型;留空表示默认/不限。</summary>
- [MaxLength(100)]
- public string? OrderType { get; set; }
- [Range(0, int.MaxValue, ErrorMessage = "标准时长不能为负")]
- public int StdHours { get; set; }
- [MaxLength(500)]
- public string? Remarks { get; set; }
- public bool IsActive { get; set; } = true;
- [MaxLength(100)]
- public string? CreateUser { get; set; }
- [MaxLength(100)]
- public string? UpdateUser { get; set; }
- }
- public class AdoS0MaterialPlanCycleToggleActiveDto
- {
- public bool IsActive { get; set; }
- }
|