KeyPointNotificationData.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using Abp.Notifications;
  3. using ContractService.LegalContract;
  4. namespace ContractService.CommonManager.Notifications
  5. {
  6. [Serializable]
  7. public class KeyPointNotificationData : NotificationData
  8. {
  9. public KeyPointNotificationData(LegalContractKeyPointInfo kp)
  10. {
  11. Id = kp.Id;
  12. KeyPointName = kp.Name;
  13. ContractNo = kp.ContractNo;
  14. ContractName = kp.ContractInfo.Name;
  15. KeyPointDesc = kp.Description;
  16. ExpireDate = kp.ExpireDate;
  17. KeyPointLevel = kp.KeyPointLevel;
  18. }
  19. public KeyPointNotificationData(LegalContractKeyPointInfo kp, bool isAlarm):this(kp)
  20. {
  21. IsAlarm = isAlarm;
  22. }
  23. public KeyPointNotificationData()
  24. {
  25. }
  26. public string Id { get; set; }
  27. public string ContractNo { get; set; }
  28. public string ContractName { get; set; }
  29. public string KeyPointName { get; set; }
  30. public string KeyPointDesc { get; set; }
  31. public int KeyPointLevel { get; set; }
  32. //public string KeyPointLevelName { get; set; }
  33. public DateTime? ExpireDate { get; set; }
  34. public bool IsAlarm { get; set; }
  35. }
  36. }