|
|
|
|
using DS.Module.Core.Enums;
|
|
|
|
|
using DS.WMS.Core.Application.Entity;
|
|
|
|
|
using DS.WMS.Core.Code.Entity;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Settlement.Entity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算相关基类
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class SettlementBase : ApplicationBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算单号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算单号", Length = 50, IsNullable = true)]
|
|
|
|
|
public string? SettlementNO { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算日期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算日期", IsNullable = false)]
|
|
|
|
|
public DateTime SettlementDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算方式ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算方式ID", IsNullable = true)]
|
|
|
|
|
public long? SettlementTypeId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算方式
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Navigate(NavigateType.OneToOne, nameof(SettlementTypeId))]
|
|
|
|
|
public CodeStlMode? SettlementType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算类型", IsNullable = false)]
|
|
|
|
|
public SettlementMode Mode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单据类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "单据类型", IsNullable = false)]
|
|
|
|
|
public SettlementBillType BillType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算金额", IsNullable = false)]
|
|
|
|
|
public decimal Amount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 机构银行账户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "机构银行账户ID", IsNullable = true)]
|
|
|
|
|
public long? OrgBankId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算业务类别
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算业务类别", IsNullable = true)]
|
|
|
|
|
public SettlementCategory? Category { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否锁定
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否锁定", IsNullable = false, DefaultValue = "0")]
|
|
|
|
|
public bool IsLocked { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 锁定用户
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "锁定用户", IsNullable = true)]
|
|
|
|
|
public long? LockUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 锁定时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "锁定时间", IsNullable = true)]
|
|
|
|
|
public DateTime? LockTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 解锁用户
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "解锁用户", IsNullable = true)]
|
|
|
|
|
public long? UnlockUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 解锁时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "解锁时间", IsNullable = true)]
|
|
|
|
|
public DateTime? UnlockTime { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|