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

71 lines
1.6 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace YLErp.DBModels
{
/// <summary>
/// 资信评级
/// </summary>
[Table("credit_rating")]
public class CreditRating : DBModelWithOperator, IDataTrace
{
public static string LogClass = "资信评级";
/// <summary>
/// 资信等级
/// </summary>
[DisplayName("资信等级")]
public string CreditName { get; set; }
/// <summary>
/// 额度不限
/// </summary>
[DisplayName("额度不限")]
public int? IsUnLimited { get; set; }
/// <summary>
/// 授信额度
/// </summary>
[DisplayName("授信上限")]
public double? CreditLine { get; set; }
/// <summary>
/// 暂停交易
/// </summary>
[DisplayName("暂停交易")]
public bool IsSuspend { get; set; }
/// <summary>
/// 是否有效
/// </summary>
[DisplayName("是否有效")]
public string ValidState { get; set; }
[DisplayName("资信说明")]
public string Remark { get; set; }
/// <summary>
/// 授信额度
/// </summary>
[DisplayName("授信上限")]
[NotMapped]
public string CreditLineToShow
{
get
{
if (IsUnLimited == 1)
{
return "不限";
}
return CreditLine?.ToString("N");
}
}
public string GetDataTraceKeyInfo()
{
return "资信评级:" + CreditName;
}
}
}