56 lines
1.3 KiB
C#
56 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using YLErp.DBModels;
|
|
using YLErp.Helpers;
|
|
using YLErp.Models.Tag;
|
|
|
|
namespace YLErp.Model
|
|
{
|
|
[Table("client_black")]
|
|
public class client_black : DBModelWithOperator, IDataEntity, IDataTraceV2, IClonable<client_black>
|
|
{
|
|
/// <summary>
|
|
/// 客户名称
|
|
/// </summary>
|
|
[DisplayName("客户名称")]
|
|
[DataChange]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// <para>长度不应超过255</para>
|
|
/// </summary>
|
|
[DisplayName("备注")]
|
|
[DataChange]
|
|
public string Remarks { get; set; }
|
|
|
|
public client_black Clone()
|
|
{
|
|
return (client_black)MemberwiseClone();
|
|
}
|
|
|
|
public string GetDataTraceKeyId()
|
|
{
|
|
return id.ToString();
|
|
}
|
|
|
|
public string GetDataTraceKeyInfo()
|
|
{
|
|
return "客户黑名单:" + Name;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 客户标签
|
|
/// </summary>
|
|
[NotMapped]
|
|
public List<TagDto> Tags { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户标签
|
|
/// </summary>
|
|
[NotMapped]
|
|
public string OutputTags { get; set; }
|
|
}
|
|
}
|