using System.ComponentModel.DataAnnotations.Schema; namespace YLErp.DBModels { /// /// 客户资信评级表 /// [Table("Client_Rating")] public class ClientRating : DBModelWithOperator, IDataTrace { /// /// 资信等级Id /// [DisplayName("资信等级")] public int CreditRatingId { get; set; } /// /// 评级 /// [DisplayName("资信等级")] public string CreditRatingStr { get; set; } /// /// 客户信息 /// [DisplayName("客户名称")] public int ClientId { get; set; } /// /// 客户名称 /// [DisplayName("客户名称")] public string ClientName { get; set; } /// /// 评级起始日 /// [DisplayName("评级起始日")] public DateTime? RatingStartDate { get; set; } /// /// 评级到期日 /// [DisplayName("评级到期日")] public DateTime? RatingDeadLine { get; set; } /// /// 客户编号 /// [DisplayName("客户编号")] public string ClientNumber { get; set; } [DisplayName("角色")] public string RoleName { get; set; } [DisplayName("角色")] public int? RoleId { get; set; } public string ProcessStatus { get; set; } public int ProcessOrderId { get; set; } [DisplayName("开户时间")] public DateTime? ProcessOptDate { get; set; } [NotMapped] public int? ProcessRoleId { get; set; } [NotMapped] public string ProcessRoleName { get; set; } /// /// 说明 /// [DisplayName("说明")] public string Comments { get; set; } /// /// 软删除标记 /// public bool IsDeleted { get; set; } [DisplayName("评估依据")] public string RatingAccording { get; set; } [DisplayName("评估人员")] public string RatingPersonnel { get; set; } [DisplayName("复核人员")] public string CheckPersonnel { get; set; } public string GetDataTraceKeyInfo() { return "客户评级:" + ClientNumber; } } [NotMapped] public class ClientRatingDto : ClientRating { /// /// 评级状态 /// public string ProcessStatusOriginal { get; set; } /// /// 行业 /// public string BusinessType { get; set; } } }