using System; using Abp.Notifications; using ContractService.LegalContract; namespace ContractService.CommonManager.Notifications { [Serializable] public class KeyPointNotificationData : NotificationData { public KeyPointNotificationData(LegalContractKeyPointInfo kp) { Id = kp.Id; KeyPointName = kp.Name; ContractNo = kp.ContractNo; ContractName = kp.ContractInfo.Name; KeyPointDesc = kp.Description; ExpireDate = kp.ExpireDate; KeyPointLevel = kp.KeyPointLevel; } public KeyPointNotificationData(LegalContractKeyPointInfo kp, bool isAlarm):this(kp) { IsAlarm = isAlarm; } public KeyPointNotificationData() { } public string Id { get; set; } public string ContractNo { get; set; } public string ContractName { get; set; } public string KeyPointName { get; set; } public string KeyPointDesc { get; set; } public int KeyPointLevel { get; set; } //public string KeyPointLevelName { get; set; } public DateTime? ExpireDate { get; set; } public bool IsAlarm { get; set; } } }