Files
zszq-trs/Framework/YLErp.Core/DBModels/CreditFromClient.cs
T
2024-05-09 14:06:26 +08:00

79 lines
2.0 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace YLErp.DBModels
{
/// <summary>
/// 子公司授信表
/// </summary>
[Table("credit_fromclient")]
public class CreditFromClient : DBModelWithOperator, IDBModelWithCreator
{
/// <summary>
/// 客户信息
/// </summary>
[DisplayName("客户名称")]
public int ClientId { get; set; }
/// <summary>
/// 授信额度
/// </summary>
[DisplayName("授信额度")]
public double Credit { get; set; }
/// <summary>
/// 用户编号
/// </summary>
[DisplayName("客户编号")]
public string ClientNumber { get; set; }
/// <summary>
/// 客户名称
/// </summary>
[DisplayName("客户名称")]
public string ClientName { get; set; }
/// <summary>
/// 授信起始日
/// </summary>
[DisplayName("授信起始日")]
public DateTime CreditStartDate { get; set; }
/// <summary>
/// 授信到期日
/// </summary>
[DisplayName("授信到期日")]
public DateTime CreditDeadLine { get; set; }
private string _comments;
/// <summary>
/// 说明
/// </summary>
[DisplayName("说明")]
public string Comments { get { return _comments ?? ""; } set { _comments = value; } }
/// <summary>
/// 创建人ID
/// </summary>
[DisplayName("操作人")]
public int? CreatorId { set; get; }
/// <summary>
/// 创建人名称
/// </summary>
[DisplayName("操作人")]
public string CreatorName { set; get; }
/// <summary>
/// 创建时间
/// </summary>
[DisplayName("操作时间")]
public DateTime? CreateDate { set; get; }
}
[NotMapped]
public class CreditFromClientDto : CreditFromClient
{
}
}