| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903 |
- 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)模糊过滤。</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;
- [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;
- }
- 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 string? 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;
- [MaxLength(100)]
- public string? 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 int? 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; }
- }
- public class AdoS0MfgLinePostSkillUpsertDto
- {
- public long? Id { get; set; }
- [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 AdoS0MfgLinePostUpsertDto
- {
- [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
- public long CompanyRefId { get; set; }
- [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
- public long FactoryRefId { get; set; }
- [Required(ErrorMessage = "线体岗位编码不能为空")]
- public string Code { get; set; } = string.Empty;
- [Required(ErrorMessage = "线体岗位名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public long? ProductionLineId { get; set; }
- public string? Remark { get; set; }
- public bool IsEnabled { get; set; } = true;
- public List<AdoS0MfgLinePostSkillUpsertDto> Skills { get; set; } = new();
- }
- /// <summary>
- /// 产线岗位维护(LineSkillMaster):列表查询
- /// </summary>
- public class AdoS0LineSkillMasterQueryDto
- {
- [Required(ErrorMessage = "工厂域不能为空")]
- [MaxLength(50)]
- public string Domain { get; set; } = string.Empty;
- /// <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(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();
- }
- #endregion
|