You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.0 KiB

2 years ago
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Values;
using Win_in.Sfs.Shared.Domain;
namespace Win_in.Sfs.Label.Domain.Shared;
/// <summary>
/// 生产信息
/// </summary>
public class ProductionInfo : ValueObject
{
public ProductionInfo()
{
}
public ProductionInfo(string prodLine, string team, string shift)
{
ProdLine = prodLine;
Team = team;
Shift = shift;
}
/// <summary>
/// 生产线
/// </summary>
[MaxLength(SfsEfCorePropertyConst.CodeLength)]
public string ProdLine { get; set; }
/// <summary>
/// 班组
/// </summary>
[MaxLength(SfsEfCorePropertyConst.CodeLength)]
public string Team { get; set; }
/// <summary>
/// 班次
/// </summary>
[MaxLength(SfsEfCorePropertyConst.CodeLength)]
public string Shift { get; set; }
protected override IEnumerable<object> GetAtomicValues()
{
yield return ProdLine;
yield return Team;
yield return Shift;
}
}