| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- namespace Admin.NET.Plugin.AiDOP.Dto.S0.Sales;
- public class AdoS0ToggleEnabledDto
- {
- public bool IsEnabled { get; set; }
- }
- public class AdoS0ItemSubstituteDetailQueryDto
- {
- public string? Domain { get; set; }
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- /// <summary>
- /// 选择替代方案(ic_substitute)只读查询
- /// </summary>
- public class AdoS0SubstituteSchemeQueryDto
- {
- /// <summary>源平台 company_id;为空则不按公司过滤。</summary>
- public long? CompanyId { get; set; }
- /// <summary>源平台 factory_id;为空则不按工厂过滤。</summary>
- public long? FactoryId { get; set; }
- /// <summary>替代方案编码(模糊匹配)</summary>
- public string? SubstituteCode { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0ItemSubstituteDetailUpsertDto
- {
- [Required(ErrorMessage = "父级物料不能为空")]
- public string ParentItem { get; set; } = string.Empty;
- [Required(ErrorMessage = "物料编码不能为空")]
- public string ItemNum { get; set; } = string.Empty;
- [Required(ErrorMessage = "替代物料不能为空")]
- public string SubstituteItem { get; set; } = string.Empty;
- public decimal? SubstituteQty { get; set; }
- public string? Remark { get; set; }
- [Required(ErrorMessage = "工厂域不能为空")]
- public string Domain { get; set; } = string.Empty;
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- /// <summary>客户主数据启停(CustMaster / IsActive)</summary>
- public class AdoS0CustMasterToggleActiveDto
- {
- public bool IsActive { get; set; }
- }
- public class AdoS0CustMasterQueryDto
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- /// <summary>同时匹配客户编码、客户简称</summary>
- public string? Keyword { get; set; }
- public string? Cust { get; set; }
- public string? SortName { get; set; }
- public string? Curr { get; set; }
- public string? Slspsn1 { get; set; }
- public string? ShipTo { get; set; }
- public bool? IsActive { get; set; }
- public bool? IsConfirm { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0CustMasterUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- [Required(ErrorMessage = "客户编码不能为空")]
- public string Cust { get; set; } = string.Empty;
- [Required(ErrorMessage = "客户简称不能为空")]
- public string SortName { get; set; } = string.Empty;
- public string? Curr { get; set; }
- public string? Slspsn1 { get; set; }
- public string? Slspsn2 { get; set; }
- public string? ShipTo { get; set; }
- public string? TaxClass { get; set; }
- public bool TaxIn { get; set; } = true;
- public string? CustClass { get; set; }
- public string? Remarks { get; set; }
- public bool IsActive { get; set; } = true;
- public bool IsConfirm { get; set; }
- public string? CreateUser { get; set; }
- public string? UpdateUser { get; set; }
- }
- /// <summary>物料主数据启停(ItemMaster / IsActive)</summary>
- public class AdoS0ItemMasterToggleActiveDto
- {
- public bool IsActive { get; set; }
- }
- public class AdoS0ItemMasterQueryDto
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- /// <summary>匹配物料编码、物料名称</summary>
- public string? Keyword { get; set; }
- public string? ItemNum { get; set; }
- public string? Descr { get; set; }
- public string? Descr1 { get; set; }
- public string? ItemType { get; set; }
- public string? PurMfg { get; set; }
- public string? Location { get; set; }
- public string? Status { get; set; }
- public bool? IsActive { get; set; }
- public bool? IsConfirm { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0ItemMasterUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- [Required(ErrorMessage = "物料编码不能为空")]
- public string ItemNum { get; set; } = string.Empty;
- [Required(ErrorMessage = "物料名称不能为空")]
- public string Descr { get; set; } = string.Empty;
- public string? Descr1 { get; set; }
- public string? PkgCode { get; set; }
- public string? UM { get; set; }
- public string? PurMfg { get; set; }
- public string? Drawing { get; set; }
- public string? ItemType { get; set; }
- public string? Location { get; set; }
- public string? DefaultShelf { get; set; }
- public bool KeyItem { get; set; }
- public decimal? NetWeight { get; set; }
- public string? NetWeightUM { get; set; }
- public bool Inspect { get; set; }
- public int? PurLT { get; set; }
- public int? InsLT { get; set; }
- public int? MfgLT { get; set; }
- public decimal? Length { get; set; }
- public decimal? Size { get; set; }
- public string? SizeUM { get; set; }
- public bool IssuePolicy { get; set; }
- public int? MfgMttr { get; set; }
- public string? LocationType { get; set; }
- public string? CommodityCode { get; set; }
- public string? Rev { get; set; }
- public decimal? MaxOrd { get; set; }
- public decimal? MinOrd { get; set; }
- public decimal? OrdMult { get; set; }
- public decimal? MinOrdSales { get; set; }
- public bool AutoLotNums { get; set; }
- public bool Install { get; set; }
- public decimal? SafetyStk { get; set; }
- public int? DaysBetweenPM { get; set; }
- public int? ExpireAlarmDay { get; set; }
- public decimal? StockTurnOver { get; set; }
- public bool LotSerialControl { get; set; }
- public bool AllocateSingleLot { get; set; }
- public string? Status { get; set; }
- public string? Planner { get; set; }
- public bool TraceDetail { get; set; }
- public bool IsMainMas { get; set; }
- public string? Remark { get; set; }
- public string? EMTType { get; set; }
- public string? OwnerApplication { get; set; }
- public int? BOMDesign { get; set; }
- public int? RoutingDes { get; set; }
- public bool IsActive { get; set; } = true;
- public bool IsConfirm { get; set; }
- public string? CreateUser { get; set; }
- public string? UpdateUser { get; set; }
- }
- /// <summary>订单优先级(PriorityCode / IsActive)</summary>
- public class AdoS0PriorityCodeToggleActiveDto
- {
- public bool IsActive { get; set; }
- }
- public class AdoS0PriorityCodeQueryDto
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- /// <summary>匹配名称、来源表、工单字段 value</summary>
- public string? Keyword { get; set; }
- public string? Descr { get; set; }
- public int? Priority { get; set; }
- public string? SourceTable { get; set; }
- public string? SourceColumn { get; set; }
- public string? Value { get; set; }
- public bool? IsActive { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0PriorityCodeUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- public string? DomainCode { get; set; }
- [Required(ErrorMessage = "名称不能为空")]
- public string Descr { get; set; } = string.Empty;
- public string? Value { get; set; }
- public int Priority { get; set; }
- /// <summary>0=倒序,非0=正序</summary>
- public int OrderByCode { get; set; } = 1;
- public string? SourceTable { get; set; }
- public string? SourceColumn { get; set; }
- public string? SourceType { get; set; }
- public string? SourceId { get; set; }
- public string? ValueType { get; set; }
- public string? ValueId { get; set; }
- public bool IsActive { get; set; } = true;
- public string? CreateUser { get; set; }
- public string? UpdateUser { get; set; }
- }
|