| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033 |
- namespace Admin.NET.Plugin.AiDOP.Dto.S0.Manufacturing;
- /// <summary>
- /// 制造列表查询公共段:公司/工厂、keyword、isEnabled、分页。
- /// S0 使用 pageNo 时可通过 <see cref="PageNo"/> 绑定,控制器内取 EffectivePage。
- /// </summary>
- public class AdoS0MfgPagedQueryBase
- {
- public long? CompanyRefId { get; set; }
- public long? FactoryRefId { get; set; }
- public string? Keyword { get; set; }
- public bool? IsEnabled { get; set; }
- /// <summary>与 Gitee Demo 一致的页码(默认 1)。</summary>
- public int Page { get; set; } = 1;
- /// <summary>S0 PagedQuery.pageNo;若传入则优先于 <see cref="Page"/>。</summary>
- public int? PageNo { get; set; }
- public int PageSize { get; set; } = 20;
- public int EffectivePage => PageNo is > 0 ? PageNo.Value : (Page < 1 ? 1 : Page);
- }
- #region 附录 F 扩展 Query
- /// <summary>标准工序主数据列表(StdOpMaster 语义)。</summary>
- public class AdoS0StdOpMasterQueryDto : AdoS0MfgPagedQueryBase
- {
- /// <summary>按标准工序编码(std_op_code)模糊过滤。</summary>
- public string? StdOpCode { get; set; }
- /// <summary>按标准工序名称(std_op)模糊过滤。</summary>
- public string? StdOp { get; set; }
- public string? MilestoneOp { get; set; }
- }
- /// <summary>生产线主数据列表(LineMaster 语义)。</summary>
- public class AdoS0LineMasterQueryDto : AdoS0MfgPagedQueryBase
- {
- /// <summary>按生产线编码(line)模糊过滤。</summary>
- public string? Line { get; set; }
- public string? Workshop { get; set; }
- }
- public class AdoS0MfgPreprocessElementQueryDto : AdoS0MfgPagedQueryBase
- {
- public string? Domain { get; set; }
- public string? MaterialCode { get; set; }
- public string? MaterialName { get; set; }
- public string? Op { get; set; }
- public string? ElementCode { get; set; }
- }
- public class AdoS0MfgPreprocessElementUpsertDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "物料编码不能为空")]
- [MaxLength(100)]
- public string ItemNum { get; set; } = string.Empty;
- [MaxLength(100)]
- public string? Op { get; set; }
- [MaxLength(100)]
- public string? Line { get; set; }
- [MaxLength(100)]
- public string? Typed { get; set; }
- [MaxLength(100)]
- public string? ItemCode { get; set; }
- [MaxLength(255)]
- public string? Descr { get; set; }
- public bool IsMain { get; set; }
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- public class AdoS0MfgMaterialProcessElementQueryDto : AdoS0MfgPagedQueryBase
- {
- public string? MaterialCode { get; set; }
- public string? MaterialName { get; set; }
- public string? ElementType { get; set; }
- public string? ElementCode { get; set; }
- }
- /// <summary>
- /// SOP 维护(源平台 QualitySegmentImage):列表查询
- /// </summary>
- public class AdoS0MfgSopDocumentQueryDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- /// <summary>列表须支持 elementCategory 过滤(§7 / 附录 F)。</summary>
- public class AdoS0MfgElementParamQueryDto : AdoS0MfgPagedQueryBase
- {
- public string? ElementCategory { get; set; }
- }
- #endregion
- #region 仅 PagedQuery 等价的列表 Query
- /// <summary>标准 BOM 行级列表(ProductStructureMaster 路线 A)。</summary>
- public class AdoS0ProductStructureQueryDto : AdoS0MfgPagedQueryBase;
- public class AdoS0MfgRoutingOpDetailQueryDto : AdoS0MfgPagedQueryBase;
- public class AdoS0MfgLinePostQueryDto : AdoS0MfgPagedQueryBase;
- public class AdoS0MfgPersonSkillQueryDto : AdoS0MfgPagedQueryBase;
- public class AdoS0MfgPersonSkillAssignmentQueryDto : AdoS0MfgPagedQueryBase;
- public class AdoS0MfgWorkOrderControlQueryDto : AdoS0MfgPagedQueryBase;
- public class AdoS0MfgWorkCenterQueryDto : AdoS0MfgPagedQueryBase;
- public class AdoS0MfgLineMaterialQueryDto : AdoS0MfgPagedQueryBase;
- /// <summary>
- /// SOP 文件类型(源平台 ImageType):列表查询
- /// </summary>
- public class AdoS0MfgSopFileTypeQueryDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- #endregion
- #region 标准资源 Upsert(12 个非聚合)
- public class AdoS0StdOpMasterUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [Required(ErrorMessage = "工厂域编码不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "标准工序名称不能为空")]
- [MaxLength(100)]
- public string StdOp { get; set; } = string.Empty;
- [Required(ErrorMessage = "标准工序编码不能为空")]
- [MaxLength(100)]
- public string StdOpCode { get; set; } = string.Empty;
- [MaxLength(20)]
- public string? MilestoneOp { get; set; }
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- }
- public class AdoS0LineMasterUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [Required(ErrorMessage = "工厂域编码不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "生产线编码不能为空")]
- [MaxLength(100)]
- public string Line { get; set; } = string.Empty;
- [MaxLength(255)]
- public string? Describe { get; set; }
- [MaxLength(50)]
- public string? LineType { get; set; }
- [MaxLength(50)]
- public string? LineCategory { get; set; }
- [MaxLength(50)]
- public string? Location { get; set; }
- [MaxLength(50)]
- public string? Workshop { get; set; }
- [MaxLength(50)]
- public string? VLocation { get; set; }
- [MaxLength(50)]
- public string? Location2 { get; set; }
- [MaxLength(50)]
- public string? Location3 { get; set; }
- [MaxLength(50)]
- public string? PickingLocation { get; set; }
- [MaxLength(50)]
- public string? MidLocation { get; set; }
- public bool IsActive { get; set; } = true;
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- }
- public class AdoS0MfgSopFileTypeUpsertDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "文件类型编码不能为空")]
- [MaxLength(100)]
- public string ImageTypeID { get; set; } = string.Empty;
- [MaxLength(255)]
- public string? Descr { get; set; }
- }
- public class AdoS0MfgElementParamUpsertDto
- {
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public string? ElementCode { get; set; }
- public string? ElementName { get; set; }
- public string? ElementCategory { get; set; }
- public string Code { get; set; } = string.Empty;
- public string Name { get; set; } = string.Empty;
- public string? ParamType { get; set; }
- public string? Unit { get; set; }
- public string? StdValue { get; set; }
- public decimal? UpperLimit { get; set; }
- public decimal? LowerLimit { get; set; }
- public string? EnumOptions { get; set; }
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- /// <summary>
- /// 生产要素参数(DevMonitor;固定 CodeType='Prod'):列表查询
- /// </summary>
- public class AdoS0DevMonitorQueryDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0MfgPreprocessElementParamQueryDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0DevMonitorUpsertDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "要素编码不能为空")]
- [MaxLength(100)]
- public string DeviceNumber { get; set; } = string.Empty;
- public string? DeviceDescr { get; set; }
- [Required(ErrorMessage = "参数编码不能为空")]
- [MaxLength(100)]
- public string MessageCode { get; set; } = string.Empty;
- public string? CodeDescr { get; set; }
- public string? ValueType { get; set; }
- public string? UM { get; set; }
- public string? StdValue { get; set; }
- public decimal? TopLimit { get; set; }
- public decimal? LowLimit { get; set; }
- public string? Ufld1 { get; set; }
- /// <summary>固定为 Prod</summary>
- public string CodeType { get; set; } = "Prod";
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- public class AdoS0MfgPreprocessElementParamUpsertDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "要素编码不能为空")]
- [MaxLength(100)]
- public string DeviceNumber { get; set; } = string.Empty;
- public string? DeviceDescr { get; set; }
- [Required(ErrorMessage = "参数编码不能为空")]
- [MaxLength(100)]
- public string MessageCode { get; set; } = string.Empty;
- public string? CodeDescr { get; set; }
- public string? ValueType { get; set; }
- public string? UM { get; set; }
- public string? StdValue { get; set; }
- public decimal? TopLimit { get; set; }
- public decimal? LowLimit { get; set; }
- public string? Ufld1 { get; set; }
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- /// <summary>
- /// 物料工序生产要素(ItemOpCondition;固定 CodeType='Prod'):列表查询
- /// </summary>
- public class AdoS0ItemOpConditionQueryDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- public string? Keyword { get; set; }
- public string? ItemNum { get; set; }
- public string? Op { get; set; }
- public string? Line { get; set; }
- public string? Typed { get; set; }
- public string? ItemCode { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0ItemOpConditionUpsertDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "物料编码不能为空")]
- [MaxLength(100)]
- public string ItemNum { get; set; } = string.Empty;
- public string? Op { get; set; }
- public string? Line { get; set; }
- public string? Typed { get; set; }
- public string? ItemCode { get; set; }
- public string? Descr { get; set; }
- public bool IsMain { get; set; }
- /// <summary>固定为 Prod</summary>
- public string CodeType { get; set; } = "Prod";
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- public class AdoS0MfgPersonSkillUpsertDto
- {
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public string Code { get; set; } = string.Empty;
- public string Name { get; set; } = string.Empty;
- public string? SkillLevel { get; set; }
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- /// <summary>
- /// 人员技能字典下拉项。供「人员技能分配」页 SkillNo 字段联动使用,按 PersonSkill.Code 作为业务值。
- /// </summary>
- public class S0PersonSkillOptionRow
- {
- public string Value { get; set; } = string.Empty;
- public string Label { get; set; } = string.Empty;
- public string Code { get; set; } = string.Empty;
- public string Name { get; set; } = string.Empty;
- public string? SkillLevel { get; set; }
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public bool IsEnabled { get; set; }
- }
- public class AdoS0MfgPersonSkillAssignmentUpsertDto
- {
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public string PersonCode { get; set; } = string.Empty;
- public string? WorkGroup { get; set; }
- public long SkillId { get; set; }
- public int SkillLevel { get; set; }
- public decimal ProductionEfficiency { get; set; } = 1m;
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- /// <summary>
- /// 人员技能维护(EmpSkills):列表查询。
- /// </summary>
- public class AdoS0EmpSkillsQueryDto : AdoS0MfgPagedQueryBase
- {
- /// <summary>工厂域(Domain)</summary>
- public string? Domain { get; set; }
- /// <summary>人员编号(Employee)</summary>
- public string? Employee { get; set; }
- /// <summary>工作组(Site)</summary>
- public string? Site { get; set; }
- /// <summary>技能编码(SkillNo)</summary>
- public string? SkillNo { get; set; }
- }
- public class AdoS0EmpSkillsUpsertDto
- {
- [Required(ErrorMessage = "人员编号不能为空")]
- [MaxLength(100)]
- public string Employee { get; set; } = string.Empty;
- [MaxLength(100)]
- public string? EmployeeId { get; set; }
- [MaxLength(100)]
- public string? EmployeeName { get; set; }
- [MaxLength(100)]
- public string? Site { get; set; }
- [Required(ErrorMessage = "技能编码不能为空")]
- [MaxLength(100)]
- public string SkillNo { get; set; } = string.Empty;
- [MaxLength(255)]
- public string? SkillDescription { get; set; }
- [MaxLength(50)]
- public string? SkillLevel { get; set; }
- public decimal? EfficiencyCoefficient { get; set; }
- public DateTime? DateSkill { get; set; }
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- public class AdoS0MfgWorkCenterUpsertDto
- {
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public string Code { get; set; } = string.Empty;
- public string Name { get; set; } = string.Empty;
- public string? CenterType { get; set; }
- public decimal? Capacity { get; set; }
- public long? DepartmentId { get; set; }
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- public class AdoS0MfgLineMaterialUpsertDto
- {
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public long? ProductionLineId { get; set; }
- public long MaterialId { get; set; }
- public long? OperationId { get; set; }
- public long? WorkCenterId { get; set; }
- public string? EquipmentCode { get; set; }
- public decimal? StdCapacityPerUnit { get; set; }
- public decimal? ChangeoverTime { get; set; }
- public string? EquipmentTypeCode { get; set; }
- public string? MoldTypeCode { get; set; }
- public string? RequiredSkillCode { get; set; }
- public string? MaterialRole { get; set; }
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- /// <summary>
- /// 工作中心(WorkCtrMaster):列表查询
- /// </summary>
- public class AdoS0WorkCtrMasterQueryDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0WorkCtrMasterUpsertDto
- {
- [Required(ErrorMessage = "工作中心编码不能为空")]
- [MaxLength(100)]
- public string WorkCtr { get; set; } = string.Empty;
- [MaxLength(255)]
- public string? Descr { get; set; }
- [MaxLength(100)]
- public string? Department { get; set; }
- public bool IsActive { get; set; } = true;
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- /// <summary>
- /// 生产线物料(ProdLineDetail):列表查询
- /// </summary>
- public class AdoS0ProdLineDetailQueryDto : AdoS0MfgPagedQueryBase
- {
- public string? Domain { get; set; }
- public string? Part { get; set; }
- public int? Op { get; set; }
- public string? Site { get; set; }
- public string? Line { get; set; }
- }
- public class AdoS0ProdLineDetailUpsertDto
- {
- [Required(ErrorMessage = "物料编码不能为空")]
- [MaxLength(100)]
- public string Part { get; set; } = string.Empty;
- public int Op { get; set; }
- [MaxLength(100)]
- public string? Site { get; set; }
- [MaxLength(100)]
- public string? Line { get; set; }
- public decimal? Rate { get; set; }
- public decimal? SetupTime { get; set; }
- public string? SkillNo { get; set; }
- public string? InternalEquipmentTypeCode { get; set; }
- public string? MoldTypeCode { get; set; }
- public decimal StandardStaffCount { get; set; }
- public int? Start { get; set; }
- public bool IsActive { get; set; } = true;
- public bool IsConfirm { get; set; }
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- public class AdoS0MfgWorkOrderControlUpsertDto
- {
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public string Code { get; set; } = string.Empty;
- public string Name { get; set; } = string.Empty;
- public string? ControlType { get; set; }
- public string? ParamValue { get; set; }
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- /// <summary>
- /// 工单控制参数设置(WorkOrdControl):按 Domain 查询单记录。
- /// </summary>
- public class AdoS0WorkOrdControlGetDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- }
- public class AdoS0WorkOrdControlUpsertDto
- {
- /// <summary>RecID → Id;存在则按 Id 更新。</summary>
- public long? Id { get; set; }
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- public decimal? EnteringPer { get; set; }
- public decimal? PaintingPer { get; set; }
- public decimal? IssuedInterval { get; set; }
- public bool PostVarsatSFC { get; set; }
- public bool IsIssued { get; set; }
- public bool IsPrintRejectBarcode { get; set; }
- public bool IsPrintScrapBarcode { get; set; }
- public bool IsQualityConfirm { get; set; }
- public bool IsActive { get; set; } = true;
- public bool IsConfirm { get; set; }
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- }
- public class AdoS0MfgMaterialProcessElementUpsertDto
- {
- public long CompanyRefId { get; set; }
- public long FactoryRefId { get; set; }
- public long MaterialId { get; set; }
- public long OperationId { get; set; }
- public long? ProductionLineId { get; set; }
- public string? ElementType { get; set; }
- public string? ElementCode { get; set; }
- public string? ElementName { get; set; }
- public long ElementParamId { get; set; }
- public string? ParamValue { get; set; }
- public bool IsKeyElement { get; set; }
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- public class AdoS0MfgSopDocumentUpsertDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [MaxLength(100)]
- public string? Line { get; set; }
- [MaxLength(100)]
- public string? ItemNum { get; set; }
- [MaxLength(100)]
- public string? Op { get; set; }
- [MaxLength(100)]
- public string? ImageTypeID { get; set; }
- [MaxLength(1000)]
- public string? Path { get; set; }
- [MaxLength(255)]
- public string? Descr { get; set; }
- [MaxLength(50)]
- public string? Rev { get; set; }
- public int? SortID { get; set; }
- }
- #endregion
- #region 聚合 Upsert(步骤 9)
- /// <summary>标准 BOM 行维护 Upsert(含多工序号,对应 ProductStructureOp)。</summary>
- public class AdoS0ProductStructureUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "父项物料不能为空")]
- public long ParentMaterialId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "子项物料不能为空")]
- public long ComponentMaterialId { get; set; }
- public decimal Qty { get; set; } = 1m;
- public string? UM { get; set; }
- public decimal Scrap { get; set; }
- public decimal QtyConsumed { get; set; }
- public int? LineOp { get; set; }
- public string? Refs { get; set; }
- public string? Remark { get; set; }
- public DateTime? StartEff { get; set; }
- public DateTime? EndEff { get; set; }
- public string? StructureType { get; set; }
- public bool IsEnabled { get; set; } = true;
- /// <summary>多工序号(去重排序后落 ProductStructureOp)。</summary>
- public List<int> OpNos { get; set; } = new();
- }
- /// <summary>标准工艺路线明细行(RoutingOpDetail 复刻)Upsert。</summary>
- public class AdoS0MfgRoutingOpDetailUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [Required(ErrorMessage = "工艺路线编码不能为空")]
- public string RouteCode { get; set; } = string.Empty;
- [Required(ErrorMessage = "工艺路线名称不能为空")]
- public string RouteName { get; set; } = string.Empty;
- [Required(ErrorMessage = "物料编码不能为空")]
- public string MaterialCode { get; set; } = string.Empty;
- [Required(ErrorMessage = "工序编码不能为空")]
- public string OperationCode { get; set; } = string.Empty;
- public string? OperationDescription { get; set; }
- public string? WorkCenterCode { get; set; }
- public string? MilestoneOperation { get; set; }
- public string? Ufld1 { get; set; }
- public string? Ufld2 { get; set; }
- public decimal? UDeci1 { get; set; }
- public string? Ufld3 { get; set; }
- public string? Ufld4 { get; set; }
- public string? Ufld5 { get; set; }
- public decimal? UDeci2 { get; set; }
- public string? Ufld6 { get; set; }
- public string? Ufld7 { get; set; }
- public string? Ufld8 { get; set; }
- public decimal? UDeci3 { get; set; }
- public string? Ufld9 { get; set; }
- public decimal? UDeci4 { get; set; }
- public decimal? UDeci5 { get; set; }
- public string? SupplierCode { get; set; }
- public int OutsourcedLeadTime { get; set; }
- public int SortNo { get; set; }
- public bool IsEnabled { get; set; } = true;
- public bool IsConfirm { get; set; }
- public int? CommentIndex { get; set; }
- public string? CreateUser { get; set; }
- public string? UpdateUser { get; set; }
- }
- /// <summary>
- /// 产线岗位维护(LineSkillMaster):列表查询。
- /// Domain 为旧系统遗留字段,仅在请求显式传入时按相等过滤;新系统数据隔离以 ITenantIdFilter 为准。
- /// </summary>
- public class AdoS0LineSkillMasterQueryDto
- {
- /// <summary>旧系统遗留字段;不传或空字符串时不参与过滤。</summary>
- [MaxLength(50)]
- public string? Domain { get; set; }
- /// <summary>匹配生产线/岗位编码/岗位描述</summary>
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0LineSkillDetailUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "人员技能不能为空")]
- public long PersonSkillId { get; set; }
- public string? RequiredLevel { get; set; }
- public string? Remark { get; set; }
- public DateTime? EffectiveDate { get; set; }
- public bool IsEnabled { get; set; } = true;
- }
- public class AdoS0LineSkillMasterUpsertDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- [Required(ErrorMessage = "生产线不能为空")]
- [MaxLength(100)]
- public string ProdLine { get; set; } = string.Empty;
- [Required(ErrorMessage = "岗位编码不能为空")]
- [MaxLength(100)]
- public string JOBNo { get; set; } = string.Empty;
- [MaxLength(255)]
- public string? JOBDescr { get; set; }
- [MaxLength(12)]
- public string? Site { get; set; }
- public int? Orderby { get; set; }
- [MaxLength(20)]
- public string? WType { get; set; }
- public decimal? RunCrew { get; set; }
- [MaxLength(64)]
- public string? CreateUser { get; set; }
- public DateTime? CreateTime { get; set; }
- [MaxLength(64)]
- public string? UpdateUser { get; set; }
- public DateTime? UpdateTime { get; set; }
- public List<AdoS0LineSkillDetailUpsertDto> Skills { get; set; } = new();
- }
- public class AdoS0ProcessFlowCardQueryDto : AdoS0MfgPagedQueryBase
- {
- public string? DomainCode { get; set; }
- public string? WorkOrderNo { get; set; }
- public string? FlowCardNo { get; set; }
- public string? ItemNum { get; set; }
- public bool? IsActive { get; set; }
- }
- public class AdoS0ProcessFlowCardUpsertDto
- {
- [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 WorkOrderNo { get; set; } = string.Empty;
- [MaxLength(100)]
- public string? WorkOrderBatchNo { get; set; }
- [Required(ErrorMessage = "流转卡号不能为空")]
- [MaxLength(100)]
- public string FlowCardNo { get; set; } = string.Empty;
- [MaxLength(100)]
- public string? Nature { get; set; }
- [Required(ErrorMessage = "物料编码不能为空")]
- [MaxLength(100)]
- public string ItemNum { get; set; } = string.Empty;
- [MaxLength(200)]
- public string? ItemName { get; set; }
- [MaxLength(100)]
- public string? DrawingNo { get; set; }
- [MaxLength(50)]
- public string? BomVersion { get; set; }
- [MaxLength(100)]
- public string? RoutingCode { get; set; }
- [MaxLength(500)]
- public string? Remarks { get; set; }
- public bool IsActive { get; set; } = true;
- public string? CreateUser { get; set; }
- public string? UpdateUser { get; set; }
- }
- public class AdoS0ProcessFlowCardToggleActiveDto
- {
- public bool IsEnabled { get; set; }
- }
- public class AdoS0OrderScheduleCycleQueryDto : AdoS0MfgPagedQueryBase
- {
- public string? DomainCode { get; set; }
- public string? OrderType { get; set; }
- public bool? IsActive { get; set; }
- }
- public class AdoS0OrderScheduleCycleUpsertDto
- {
- [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;
- public string? CreateUser { get; set; }
- public string? UpdateUser { get; set; }
- }
- public class AdoS0OrderScheduleCycleToggleActiveDto
- {
- public bool IsEnabled { get; set; }
- }
- // =========================
- // 流转卡打印记录(legacy MissedPrint 只读投影)
- // =========================
- public class AdoS0FlowCardPrintRecordQueryDto : AdoS0MfgPagedQueryBase
- {
- public string? WorkOrd { get; set; }
- public string? ItemNum { get; set; }
- public string? LabelColor { get; set; }
- public string? Status { get; set; }
- public DateTime? CreateTimeFrom { get; set; }
- public DateTime? CreateTimeTo { get; set; }
- }
- public class S0MfgFlowCardPrintRecordRow
- {
- public long Id { get; set; }
- public string? WorkOrd { get; set; }
- public int? Op { get; set; }
- public string? ItemNum { get; set; }
- public string? Descr { get; set; }
- public string? LabelFormat { get; set; }
- public string? LabelColor { get; set; }
- public string? Status { get; set; }
- public string? StatusDesc { get; set; }
- public DateTime? CreateTime { get; set; }
- }
- #endregion
|