| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380 |
- namespace Admin.NET.Plugin.AiDOP.Dto.S0.Quality;
- public class AdoS0QualityPagedQueryDto
- {
- public string? Keyword { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS0QualitySimpleOptionDto
- {
- public long Value { get; set; }
- public string Label { get; set; } = string.Empty;
- }
- public class AdoS0QmsRawWhitelistUpsertDto : IValidatableObject
- {
- public string? SupplierCode { get; set; }
- public string? SupplierName { get; set; }
- public string? MaterialCode { get; set; }
- public string? MaterialName { get; set; }
- public string? DimensionType { get; set; }
- public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
- {
- var dimensionType = string.IsNullOrWhiteSpace(DimensionType)
- ? "supplier"
- : DimensionType.Trim().ToLowerInvariant();
- if (dimensionType is not ("supplier" or "material" or "material_supplier"))
- {
- yield return new ValidationResult("维度类型仅支持 supplier/material/material_supplier", [nameof(DimensionType)]);
- yield break;
- }
- if ((dimensionType == "supplier" || dimensionType == "material_supplier")
- && string.IsNullOrWhiteSpace(SupplierCode))
- yield return new ValidationResult("供应商编码不能为空", [nameof(SupplierCode)]);
- if ((dimensionType == "supplier" || dimensionType == "material_supplier")
- && string.IsNullOrWhiteSpace(SupplierName))
- yield return new ValidationResult("供应商名称不能为空", [nameof(SupplierName)]);
- if ((dimensionType == "material" || dimensionType == "material_supplier")
- && string.IsNullOrWhiteSpace(MaterialCode))
- yield return new ValidationResult("物料编码不能为空", [nameof(MaterialCode)]);
- }
- }
- public class AdoS0QmsSamplingSchemeUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public string? SamplingType { get; set; }
- public string? InspectionLevel { get; set; }
- public string? Strictness { get; set; }
- public string? AqlValue { get; set; }
- public string? InspectionType { get; set; }
- public long? InspectOrgId { get; set; }
- public string? InspectUserId { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- public string? Comment { get; set; }
- public decimal? FixedSamplingRate { get; set; }
- }
- public class AdoS0QmsInspectionInstrumentUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public string? Model { get; set; }
- public string? Specification { get; set; }
- public string? Manufacturer { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- public string? Comment { get; set; }
- public string? GaugeCategory { get; set; }
- public int? CalibrationCycleDays { get; set; }
- public string? NextCalibrationDate { get; set; }
- }
- public class AdoS0QmsQualityBaseTypeUpsertDto
- {
- [Required(ErrorMessage = "类型分类不能为空")]
- public string TypeCategory { get; set; } = string.Empty;
- [Required(ErrorMessage = "类型编码不能为空")]
- public string TypeCode { get; set; } = string.Empty;
- [Required(ErrorMessage = "简称不能为空")]
- public string ShortName { get; set; } = string.Empty;
- public string? FullName { get; set; }
- public bool IsActive { get; set; } = true;
- public string? Remark { get; set; }
- }
- public class AdoS0QmsInspectionMethodUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public string? ControlStrategy { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- public string? Comment { get; set; }
- }
- public class AdoS0QmsInspectionItemUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public long? CheckMethodId { get; set; }
- public long? CheckBasisId { get; set; }
- public long? CheckInstructId { get; set; }
- public string? RadioGroupField { get; set; }
- public string? RadioGroupField1 { get; set; }
- public long? MetricType { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- public string? Comment { get; set; }
- }
- public class AdoS0QmsInspectionFrequencyUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public string? Remark { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- }
- public class AdoS0QmsInspectionBasisEntryDto
- {
- public long? Id { get; set; }
- public long? Seq { get; set; }
- public string? DocumentNumber { get; set; }
- public string? DocumentName { get; set; }
- public string? Attachment { get; set; }
- }
- public class AdoS0QmsInspectionBasisUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public string? ControlStrategy { get; set; }
- public long? CreateOrgId { get; set; }
- public long? UseOrgId { get; set; }
- public string? Comment { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- public List<AdoS0QmsInspectionBasisEntryDto> Items { get; set; } = [];
- }
- public class AdoS0QmsInspectionStandardEntryDto
- {
- public long? Id { get; set; }
- public long? Seq { get; set; }
- public string? CheckItems { get; set; }
- public string? CheckContent { get; set; }
- public string? NormType { get; set; }
- public string? SpecValue { get; set; }
- public decimal? TopValue { get; set; }
- public decimal? DownValue { get; set; }
- public long? CheckBasisId { get; set; }
- public long? CheckMethodId { get; set; }
- public long? CheckFrequencyId { get; set; }
- public long? CheckInstructId { get; set; }
- public string? Unit { get; set; }
- public long? KeyQuality { get; set; }
- }
- public class AdoS0QmsInspectionStandardUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public string? Comment { get; set; }
- public string? ControlStrategy { get; set; }
- public long? CreateOrgId { get; set; }
- public long? UseOrgId { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- public List<AdoS0QmsInspectionStandardEntryDto> Items { get; set; } = [];
- }
- public class AdoS0QmsInspectionPlanEntryDto
- {
- public long? Id { get; set; }
- public int? Seq { get; set; }
- public string? SetupType { get; set; }
- public string? MaterialCode { get; set; }
- public string? MaterialName { get; set; }
- public long? MaterialTypeId { get; set; }
- public string? SupplierId { get; set; }
- public long? SamplingSchemeId { get; set; }
- public long? InspectionStandardId { get; set; }
- public long? InspectOrgId { get; set; }
- public long? InspectUserId { get; set; }
- public long? QRouteId { get; set; }
- public string? OperationNo { get; set; }
- public long? OperationId { get; set; }
- public long? InspectionFrequencyId { get; set; }
- public string? ProcessSeq { get; set; }
- public long? InspectionType { get; set; }
- }
- public class AdoS0QmsInspectionPlanUpsertDto
- {
- [Required(ErrorMessage = "编号不能为空")]
- public string Number { get; set; } = string.Empty;
- [Required(ErrorMessage = "名称不能为空")]
- public string Name { get; set; } = string.Empty;
- public string? BizTypeId { get; set; }
- public string? Comment { get; set; }
- public string? ControlStrategy { get; set; }
- public long? CreateOrgId { get; set; }
- public long? UseOrgId { get; set; }
- public string? Status { get; set; }
- public string? EnableStatus { get; set; }
- public List<AdoS0QmsInspectionPlanEntryDto> Items { get; set; } = [];
- }
- public class AdoS0QmsRawInspectionSpecEntryDto
- {
- public long? Id { get; set; }
- public int? Seq { get; set; }
- public string? InspectionItem { get; set; }
- public string? InspectionStandard { get; set; }
- public string? InspectionMethod { get; set; }
- public string? ImageCategory { get; set; }
- public string? SamplingScheme { get; set; }
- public string? Remark { get; set; }
- public string? Attachment { get; set; }
- public string? UpperLimit { get; set; }
- public string? LowerLimit { get; set; }
- }
- public class AdoS0QmsRawInspectionSpecUpsertDto
- {
- [Required(ErrorMessage = "文件编号不能为空")]
- public string FileNumber { get; set; } = string.Empty;
- public string? VersionNo { get; set; }
- public string? DrawingNo { get; set; }
- public string? RawMaterialName { get; set; }
- public string? MaterialCode { get; set; }
- public string? EffectiveDate { get; set; }
- public string? DrawingVersion { get; set; }
- public string? MaterialGrade { get; set; }
- public string? CavityOrMold { get; set; }
- public string? Attachment { get; set; }
- public string? FileName { get; set; }
- public string? Title { get; set; }
- public List<AdoS0QmsRawInspectionSpecEntryDto> Items { get; set; } = [];
- }
- public class AdoS0QmsProcessInspectionSpecEntryDto
- {
- public long? Id { get; set; }
- public string? OperationCode { get; set; }
- public string? OperationName { get; set; }
- public string? InspectionItem { get; set; }
- public string? InspectionMethod { get; set; }
- public string? InspectionSpec { get; set; }
- public string? ImageCategory { get; set; }
- public string? InspectionFrequency { get; set; }
- public string? TechnicalStandard { get; set; }
- public long? PeelingForce { get; set; }
- public string? UpperLimit { get; set; }
- public string? LowerLimit { get; set; }
- }
- public class AdoS0QmsProcessInspectionSpecUpsertDto
- {
- public string? ApplicableModel { get; set; }
- [Required(ErrorMessage = "文件编号不能为空")]
- public string FileNumber { get; set; } = string.Empty;
- public string? VersionNo { get; set; }
- public string? EffectiveDate { get; set; }
- public string? Attachment { get; set; }
- public string? MaterialCode { get; set; }
- public string? Attachment2 { get; set; }
- public int? Version { get; set; }
- public List<AdoS0QmsProcessInspectionSpecEntryDto> Items { get; set; } = [];
- }
- public class AdoS0QmsFqcInspectionSpecEntryDto
- {
- public long? Id { get; set; }
- public string? OperationCode { get; set; }
- public string? OperationName { get; set; }
- public string? InspectionItem { get; set; }
- public string? InspectionMethod { get; set; }
- public string? InspectionSpec { get; set; }
- public string? ImageCategory { get; set; }
- public string? InspectionFrequency { get; set; }
- public string? TechnicalStandard { get; set; }
- public long? PeelingForce { get; set; }
- public string? UpperLimit { get; set; }
- public string? LowerLimit { get; set; }
- }
- public class AdoS0QmsFqcInspectionSpecUpsertDto
- {
- public string? ApplicableModel { get; set; }
- [Required(ErrorMessage = "文件编号不能为空")]
- public string FileNumber { get; set; } = string.Empty;
- public string? VersionNo { get; set; }
- public string? EffectiveDate { get; set; }
- public string? Attachment { get; set; }
- public string? MaterialCode { get; set; }
- public string? Attachment2 { get; set; }
- public int? Version { get; set; }
- public List<AdoS0QmsFqcInspectionSpecEntryDto> Items { get; set; } = [];
- }
- public class AdoS0QmsOqcInspectionSpecEntryDto
- {
- public long? Id { get; set; }
- public string? OperationCode { get; set; }
- public string? OperationName { get; set; }
- public string? InspectionItem { get; set; }
- public string? InspectionMethod { get; set; }
- public string? InspectionSpec { get; set; }
- public string? ImageCategory { get; set; }
- public string? InspectionFrequency { get; set; }
- public string? TechnicalStandard { get; set; }
- public long? PeelingForce { get; set; }
- public string? UpperLimit { get; set; }
- public string? LowerLimit { get; set; }
- }
- public class AdoS0QmsOqcInspectionSpecUpsertDto
- {
- public string? ApplicableModel { get; set; }
- [Required(ErrorMessage = "文件编号不能为空")]
- public string FileNumber { get; set; } = string.Empty;
- public string? VersionNo { get; set; }
- public string? EffectiveDate { get; set; }
- public string? Attachment { get; set; }
- public string? MaterialCode { get; set; }
- public string? Attachment2 { get; set; }
- public int? Version { get; set; }
- public List<AdoS0QmsOqcInspectionSpecEntryDto> Items { get; set; } = [];
- }
|