|
|
|
using System.Runtime.Serialization;
|
|
|
|
using DS.Module.Core;
|
|
|
|
using DS.Module.Core.Extensions;
|
|
|
|
using FluentValidation;
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Info.Dtos;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 客户联系人请求实体
|
|
|
|
/// </summary>
|
|
|
|
public class ClientContactReq
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 主键Id
|
|
|
|
/// </summary>
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 客户Id
|
|
|
|
/// </summary>
|
|
|
|
public long ClientId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:联系人姓名
|
|
|
|
/// </summary>
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:联系人英文名
|
|
|
|
/// </summary>
|
|
|
|
public string? EnName { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:职务
|
|
|
|
/// </summary>
|
|
|
|
[IgnoreDataMember]
|
|
|
|
public string? Job => Jobs == null ? null : string.Join(",", Jobs);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 职务
|
|
|
|
/// </summary>
|
|
|
|
public string[]? Jobs { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:通讯地址
|
|
|
|
/// </summary>
|
|
|
|
public string Address { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:邮箱
|
|
|
|
/// </summary>
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:手机
|
|
|
|
/// </summary>
|
|
|
|
public string Mobile { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:电话
|
|
|
|
/// </summary>
|
|
|
|
public string Tel { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:传真
|
|
|
|
/// </summary>
|
|
|
|
public string Fax { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:QQ
|
|
|
|
/// </summary>
|
|
|
|
public string QQ { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:是否为操作
|
|
|
|
/// </summary>
|
|
|
|
public bool IsOperator { get; set; }
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:是否默认
|
|
|
|
/// </summary>
|
|
|
|
public bool IsDefault { get; set; }
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:是否为财务
|
|
|
|
/// </summary>
|
|
|
|
public bool IsFinancialStaff { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:是否为销售
|
|
|
|
/// </summary>
|
|
|
|
public bool IsSaleMan { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:是否为其他
|
|
|
|
/// </summary>
|
|
|
|
public bool IsOther { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:是否保险联系人
|
|
|
|
/// </summary>
|
|
|
|
public bool IsInsurance { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Desc:是否对账联系人
|
|
|
|
/// </summary>
|
|
|
|
public bool IsCheckAccount { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 提醒日期1
|
|
|
|
/// </summary>
|
|
|
|
public DateTime? Anniversary1 { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 提醒日期2
|
|
|
|
/// </summary>
|
|
|
|
public DateTime? Anniversary2 { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 提醒备注1
|
|
|
|
/// </summary>
|
|
|
|
public string? AnniversaryNote1 { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 提醒备注2
|
|
|
|
/// </summary>
|
|
|
|
public string? AnniversaryNote2 { get; set; }
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
///// 船公司Id
|
|
|
|
///// </summary>
|
|
|
|
//public long? CarrierId { get; set; }
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
///// 船公司
|
|
|
|
///// </summary>
|
|
|
|
//public string? Carrier { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 状态 0 启用 1 禁用
|
|
|
|
/// </summary>
|
|
|
|
public StatusEnum Status { get; set; } = StatusEnum.Enable;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 备注
|
|
|
|
/// </summary>
|
|
|
|
public string? Note { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 验证
|
|
|
|
/// </summary>
|
|
|
|
public class ClientContactReqValidator : AbstractValidator<ClientContactReq>
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 构造函数
|
|
|
|
/// </summary>
|
|
|
|
public ClientContactReqValidator()
|
|
|
|
{
|
|
|
|
this.RuleFor(o => o.Name)
|
|
|
|
.NotEmpty().WithName("联系人姓名");
|
|
|
|
}
|
|
|
|
}
|