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.
122 lines
3.3 KiB
C#
122 lines
3.3 KiB
C#
using System.ComponentModel;
|
|
using Masuit.Tools.Systems;
|
|
using SqlSugar;
|
|
|
|
namespace DS.WMS.Core.Info.Entity
|
|
{
|
|
/// <summary>
|
|
/// 往来单位干系人
|
|
/// </summary>
|
|
[SugarTable("info_client_stakeholder", "往来单位干系人")]
|
|
public class InfoClientStakeholder
|
|
{
|
|
/// <summary>
|
|
/// 主键ID
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "客户ID", IsNullable = false)]
|
|
public long ClientId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户简称
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string? ClientShortName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 干系人ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "干系人ID", IsNullable = false)]
|
|
public long UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 干系人姓名
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "干系人姓名", Length = 200, IsNullable = true)]
|
|
public string? UserName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 生效日期
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "生效日期", IsNullable = false)]
|
|
public DateTime StartDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 失效日期
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "失效日期", IsNullable = false)]
|
|
public DateTime EndDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 干系人状态
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "干系人状态", IsNullable = false)]
|
|
public StakeholderStatus Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// 干系人状态文本
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string StatusText => Status.GetDescription();
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "备注", Length = 200, IsNullable = true)]
|
|
public string? Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建人ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "创建人ID", IsNullable = false)]
|
|
public long CreateBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建人姓名
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "创建人姓名", Length = 200, IsNullable = true)]
|
|
public string? CreateByName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "创建时间", IsNullable = false)]
|
|
public DateTime CreateTime { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 干系人状态
|
|
/// </summary>
|
|
public enum StakeholderStatus
|
|
{
|
|
/// <summary>
|
|
/// 未提交
|
|
/// </summary>
|
|
[Description("未提交")]
|
|
Uncommitted = 0,
|
|
|
|
/// <summary>
|
|
/// 待审批
|
|
/// </summary>
|
|
[Description("待审批")]
|
|
Pending = 1,
|
|
|
|
/// <summary>
|
|
/// 审核通过
|
|
/// </summary>
|
|
[Description("审核通过")]
|
|
Approved = 2,
|
|
|
|
/// <summary>
|
|
/// 审核驳回
|
|
/// </summary>
|
|
[Description("审核驳回")]
|
|
Rejected = 3
|
|
}
|
|
}
|