You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.5 KiB
C#
70 lines
1.5 KiB
C#
using DS.Module.Core;
|
|
using FluentValidation;
|
|
using SqlSugar;
|
|
|
|
namespace DS.WMS.Core.Code.Dtos;
|
|
|
|
/// <summary>
|
|
/// 工厂请求实体
|
|
/// </summary>
|
|
public class CodeFactoryReq
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工厂中文名称
|
|
/// </summary>
|
|
public string FactoryName { get; set; }
|
|
/// <summary>
|
|
/// 工厂英文文名称
|
|
/// </summary>
|
|
public string EnName { get; set; }
|
|
/// <summary>
|
|
/// 工厂地址
|
|
/// </summary>
|
|
public string FactoryAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工厂联系人
|
|
/// </summary>
|
|
public string FactoryAttn { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工厂联系电话
|
|
/// </summary>
|
|
public string FactoryTel { get; set; }
|
|
/// <summary>
|
|
/// 委托单位Id
|
|
/// </summary>
|
|
public long CustomerId { get; set; }
|
|
/// <summary>
|
|
/// 委托单位 t_info_client CUSTNAME
|
|
/// </summary>
|
|
public string CustomerName { get; set; }
|
|
/// <summary>
|
|
/// 状态 0 启用 1 禁用
|
|
/// </summary>
|
|
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string Note { get; set; } = "";
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证
|
|
/// </summary>
|
|
public class CodeFactoryReqValidator : AbstractValidator<CodeFactoryReq>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public CodeFactoryReqValidator()
|
|
{
|
|
this.RuleFor(o => o.FactoryName)
|
|
.NotEmpty().WithName("工厂中文名称");
|
|
}
|
|
} |