using YLErp.DBModels; namespace YLErp.Models { /// /// 简化的客户信息提供,只提供业务需要的重点数据 /// public class ClientMainInfo { public ClientMainInfo() { } /// /// 客户ID /// public int id { get; set; } /// /// 父ID /// public int ParentId { get; set; } /// /// 客户名称 /// public string Name { get; set; } /// /// 客户编号 /// public string Number { get; set; } /// /// 身份证件号 /// public string IdentificationNumber { get; set; } /// /// 开户状态 /// public string ProcessStatus { get; set; } /// /// 证照编号 /// public string LicenseCode { get; set; } /// /// 结算货币 /// 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 }; } } }