|
|
|
|
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 CreateBy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 干系人姓名
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "干系人姓名", Length = 200, IsNullable = true)]
|
|
|
|
|
public string? CreateByName { 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>
|
|
|
|
|
/// 干系人状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum StakeholderStatus
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 未提交
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Description("未提交")]
|
|
|
|
|
Uncommitted = 0,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 待审批
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Description("待审批")]
|
|
|
|
|
Pending = 1,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 审核通过
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Description("审核通过")]
|
|
|
|
|
Approved = 2,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 审核驳回
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Description("审核驳回")]
|
|
|
|
|
Rejected = 3
|
|
|
|
|
}
|
|
|
|
|
}
|