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.

129 lines
4.0 KiB
C#

using DS.Module.Core.Data;
using DS.Module.Core.Enums;
using SqlSugar;
namespace DS.WMS.Core.Fee.Entity
{
/// <summary>
/// 申请单基类
/// </summary>
public abstract class ApplicationBase : BaseModelV2<long>
{
/// <summary>
/// 申请单编号
/// </summary>
[SugarColumn(ColumnDescription = "申请单编号", Length = 20)]
public string ApplicationNO { get; set; }
/// <summary>
/// 申请单状态
/// </summary>
[SugarColumn(ColumnDescription = "申请状态")]
public ApplicationStatus Status { get; set; }
/// <summary>
/// 人民币申请金额
/// </summary>
[SugarColumn(ColumnDescription = "人民币申请金额", IsNullable = true)]
public decimal? AmountRMB { get; set; }
/// <summary>
/// 美元申请金额
/// </summary>
[SugarColumn(ColumnDescription = "美元申请金额", IsNullable = true)]
public decimal? AmountUSD { get; set; }
/// <summary>
/// 其他币别申请金额
/// </summary>
[SugarColumn(ColumnDescription = "其他币别申请金额", IsNullable = true)]
public decimal? AmountOther { get; set; }
/// <summary>
/// 申请币别
/// </summary>
[SugarColumn(ColumnDescription = "申请币别", IsNullable = true, Length = 3)]
public string? Currency { get; set; }
/// <summary>
/// 折算汇率
/// </summary>
[SugarColumn(ColumnDescription = "折算汇率", IsNullable = true)]
public decimal? ExchangeRate { get; set; }
/// <summary>
/// 审核人
/// </summary>
[SugarColumn(ColumnDescription = "审核人", IsNullable = true)]
public long? AuditerId { get; set; }
/// <summary>
/// 审核人名称
/// </summary>
[SugarColumn(ColumnDescription = "审核人名称", IsNullable = true)]
public string? AuditerName { get; set; }
/// <summary>
/// 审核时间
/// </summary>
[SugarColumn(ColumnDescription = "审核时间", IsNullable = true)]
public DateTime? AuditTime { get; set; }
/// <summary>
/// 审核备注
/// </summary>
[SugarColumn(ColumnDescription = "审核备注", Length = 200, IsNullable = true)]
public string? AuditRemark { get; set; }
/// <summary>
/// 是否已打印
/// </summary>
[SugarColumn(ColumnDescription = "是否已打印", DefaultValue = "0")]
public bool IsPrinted { get; set; }
/// <summary>
/// 打印次数
/// </summary>
[SugarColumn(ColumnDescription = "打印次数", DefaultValue = "0")]
public int PrintTimes { get; set; }
/// <summary>
/// 打印人
/// </summary>
[SugarColumn(ColumnDescription = "打印人", IsNullable = true)]
public long? PrinterId { get; set; }
/// <summary>
/// 打印人名称
/// </summary>
[SugarColumn(ColumnDescription = "打印人名称", IsNullable = true)]
public string? PrinterName { get; set; }
/// <summary>
/// 打印时间
/// </summary>
[SugarColumn(ColumnDescription = "打印时间", IsNullable = true)]
public DateTime? PrintTime { get; set; }
/// <summary>
/// 驳回原因
/// </summary>
[SugarColumn(ColumnDescription = "驳回原因", Length = 200, IsNullable = true)]
public string? Reason { get; set; }
/// <summary>
/// 工作流ID
/// </summary>
[SugarColumn(ColumnDescription = "工作流ID", IsNullable = true)]
public long? FlowId { get; set; }
/// <summary>
/// 费用明细
/// </summary>
[Navigate(NavigateType.OneToMany, nameof(FeeApplicationDetail.ApplicationId))]
public List<FeeApplicationDetail>? Details { get; set; }
}
}