AppendixNotificationPlugin.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using GreenTree.Nachtragsmanagement.Core.Plugins;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using GreenTree.Nachtragsmanagement.Core.Domain.Misc;
  7. using GreenTree.Nachtragsmanagement.Services.User;
  8. namespace GreenTree.Nachtragsmanagement.Web.Scheduling
  9. {
  10. public class AppendixNotificationPlugin : INotificationPlugin
  11. {
  12. #region Services
  13. private readonly IUserService _userService;
  14. #endregion
  15. #region Properties
  16. /// <summary>
  17. /// Id
  18. /// </summary>
  19. public Guid Id
  20. {
  21. get
  22. {
  23. return Guid.Parse("E99CA4A1-B3A9-4AA6-BBAD-9254CEED0A45");
  24. }
  25. }
  26. /// <summary>
  27. /// System name
  28. /// </summary>
  29. public string SystemName
  30. {
  31. get
  32. {
  33. return "GreenTree.Nachtragsmanagement.AppendixNotificationPlugin";
  34. }
  35. }
  36. /// <summary>
  37. /// Displayed name
  38. /// </summary>
  39. public string Name
  40. {
  41. get
  42. {
  43. return "Nachtragsbenachrichtigung";
  44. }
  45. }
  46. /// <summary>
  47. /// Further description on how this plugin works
  48. /// </summary>
  49. public string Description
  50. {
  51. get
  52. {
  53. return
  54. "Erstellt automatisch Benachrichtigungen für Nachträge, die nach 8 Wochen nach Einreichung noch keinen " +
  55. "Verhandlungstermin gesetzt haben und ändert den entsprechenden Status ab. Außerdem werden alle 2 Wochen " +
  56. "Benachrichtigungen für Nachträge erstellt, die zwar verhandelt sind, jedoch noch kein Protokoll aufweisen.";
  57. }
  58. }
  59. #endregion
  60. /// <summary>
  61. /// Initializes a new instance of the AppendixNotificationPlugin class
  62. /// </summary>
  63. public AppendixNotificationPlugin(
  64. IUserService userService)
  65. {
  66. _userService = userService;
  67. }
  68. /// <summary>
  69. /// Process all mail notifications registered for that plugin
  70. /// </summary>
  71. /// <param name="mailNotifications">The notifications which shall be generated.</param>
  72. public void ProcessNotifications(IEnumerable<MailNotification> mailNotifications)
  73. {
  74. }
  75. }
  76. }