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.

142 lines
4.4 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using DS.Module.Core;
using DS.Module.Core.Enums;
using DS.WMS.Core.Fee.Entity;
using DS.WMS.Core.Op.Entity;
using SqlSugar;
namespace DS.WMS.Core.Application.Entity
{
/// <summary>
/// 费用相关申请明细
/// </summary>
[SugarTable("application_detail", TableDescription = "费用相关申请明细")]
public class ApplicationDetail
{
/// <summary>
/// 主键ID
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 申请单ID
/// </summary>
[SugarColumn(ColumnDescription = "申请单ID")]
public long ApplicationId { get; set; }
/// <summary>
/// 费用记录ID
/// </summary>
[SugarColumn(ColumnDescription = "费用记录ID")]
public long RecordId { get; set; }
/// <summary>
/// 费用记录
/// </summary>
[Navigate(NavigateType.OneToOne, nameof(RecordId))]
public FeeRecord? Record { get; set; }
/// <summary>
/// 引用的明细ID用于结算
/// </summary>
[SugarColumn(ColumnDescription = "引用的明细ID")]
public long? DetailId { get; set; }
/// <summary>
/// 引用的明细
/// </summary>
[Navigate(NavigateType.OneToOne, nameof(DetailId))]
public ApplicationDetail? RefDetail { get; set; }
/// <summary>
/// 引用的业务ID
/// </summary>
[SugarColumn(ColumnDescription = "引用的业务ID")]
public long? RefId { get; set; }
/// <summary>
/// 结算对象名称
/// </summary>
[SugarColumn(ColumnDescription = "结算对象名称", Length = 200, IsNullable = true)]
public string? CustomerName { get; set; }
/// <summary>
/// 收付类型(收、付) 1应收 2 应付
/// </summary>
[SugarColumn(ColumnDescription = "收付类型(收、付)", DefaultValue = "1")]
public FeeType FeeType { get; set; }
/// <summary>
/// 费用Id
/// </summary>
[SugarColumn(ColumnDescription = "费用Id")]
public long FeeId { get; set; }
/// <summary>
/// 费用名称
/// </summary>
[SugarColumn(ColumnDescription = "费用名称", Length = 100, IsNullable = true)]
public string? FeeName { get; set; }
/// <summary>
/// 类别1-付费申请结算 2-收费自由结算 3-发票结算 4-收费申请 5-付费申请 6-发票申请 7-发票开出 8-付费自由结算 9-收费申请结算)
/// </summary>
[SugarColumn(ColumnDescription = "类别", IsNullable = true)]
public DetailCategory? Category { get; set; }
/// <summary>
/// 申请金额
/// </summary>
[SugarColumn(ColumnDescription = "申请金额")]
public decimal ApplyAmount { get; set; }
/// <summary>
/// 已处理金额
/// </summary>
[SugarColumn(ColumnDescription = "已处理金额")]
public decimal ProcessedAmount { get; set; }
/// <summary>
/// 币别
/// </summary>
[SugarColumn(ColumnDescription = "币别", IsNullable = false, Length = 3)]
public string Currency { get; set; }
/// <summary>
/// 折算汇率
/// </summary>
[SugarColumn(ColumnDescription = "折算汇率", IsNullable = true)]
public decimal? ExchangeRate { get; set; }
/// <summary>
/// 原始币别
/// </summary>
[SugarColumn(ColumnDescription = "原始币别", IsNullable = false, Length = 3)]
public string OriginalCurrency { get; set; }
/// <summary>
/// 原始申请金额
/// </summary>
[SugarColumn(ColumnDescription = "原始申请金额")]
public decimal OriginalAmount { get; set; }
/// <summary>
/// 原始已处理金额
/// </summary>
[SugarColumn(ColumnDescription = "原始已处理金额")]
public decimal OriginalProcessedAmount { get; set; }
/// <summary>
/// 业务ID
/// </summary>
[SugarColumn(IsIgnore = true)]
public long BusinessId { get; set; }
/// <summary>
/// 业务类型
/// </summary>
[SugarColumn(IsIgnore = true)]
public BusinessType BusinessType { get; set; }
}
}