77 lines
1.8 KiB
C#
77 lines
1.8 KiB
C#
|
|
using YLErp.DBModels;
|
|
|
|
namespace YLErp.Models
|
|
{
|
|
/// <summary>
|
|
/// 简化的客户信息提供,只提供业务需要的重点数据
|
|
/// </summary>
|
|
public class ClientMainInfo
|
|
{
|
|
public ClientMainInfo()
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 客户ID
|
|
/// </summary>
|
|
public int id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 父ID
|
|
/// </summary>
|
|
public int ParentId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户名称
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户编号
|
|
/// </summary>
|
|
public string Number { get; set; }
|
|
|
|
/// <summary>
|
|
/// 身份证件号
|
|
/// </summary>
|
|
public string IdentificationNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 开户状态
|
|
/// </summary>
|
|
public string ProcessStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// 证照编号
|
|
/// </summary>
|
|
public string LicenseCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结算货币
|
|
/// </summary>
|
|
public string SettlementCurrency { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
|
|
public static ClientMainInfo FromClient(Client client)
|
|
{
|
|
return new ClientMainInfo
|
|
{
|
|
id = client.id,
|
|
ParentId = client.ParentId,
|
|
Name = client.Name,
|
|
Number = client.Number,
|
|
LicenseCode = client.LicenseCode,
|
|
IdentificationNumber = client.IdentificationNumber,
|
|
ProcessStatus = client.ProcessStatus,
|
|
SettlementCurrency = client.SettlementCurrency
|
|
};
|
|
}
|
|
}
|
|
}
|