Class NotificationManager
Stellt funktionen Bereit, um Erinnerungen zu Verwalten
Inheritance
Namespace: Simplic.Framework.Notification
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class NotificationManager : object
Properties
| Improve this Doc View SourceSingleton
Declaration
public static NotificationManager Singleton { get; }
Property Value
| Type | Description |
|---|---|
| NotificationManager |
Methods
| Improve this Doc View SourceAdd(String, Guid, DateTime, Int32, String, String)
Neue Erinnerung für den aktuellen Benutzer
Declaration
public void Add(string NotificationName, Guid ExternId, DateTime DueDateTime, int RemindMinutesBefore, string Text, string Note = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | NotificationName | Name der Konfiguration |
| Guid | ExternId | Id, die den Datensatz referenziert |
| DateTime | DueDateTime | Fälligkeitsdatum |
| System.Int32 | RemindMinutesBefore | Gibt an, wieviele Minuten vor dem Fälligkeitsdatum die Erinnerung geschrieben werden soll |
| System.String | Text | Anzeigetext |
| System.String | Note | Notiz zu dieser Erinnerung |
Add(String, Guid, Int32, DateTime, Int32, String, Int32, Boolean, String)
Neue Erinnerung erstellen
Declaration
public void Add(string NotificationName, Guid ExternId, int UserId, DateTime DueDateTime, int RemindMinutesBefore, string Text, int CreateUserId, bool useExchangeSync = false, string Note = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | NotificationName | Name der Konfiguration |
| Guid | ExternId | Id, die den Datensatz referenziert |
| System.Int32 | UserId | Benutzer-Id für den die Erinnerung erstellt wird |
| DateTime | DueDateTime | Fälligkeitsdatum |
| System.Int32 | RemindMinutesBefore | Gibt an, wieviele Minuten vor dem Fälligkeitsdatum die Erinnerung geschrieben werden soll |
| System.String | Text | Anzeigetext |
| System.Int32 | CreateUserId | User, der die Erinnerung erstellt hat |
| System.Boolean | useExchangeSync | Gibt an, ob die Exchange-Synchronisation verwendet werden soll oder nicht |
| System.String | Note | Notiz zu dieser Erinnerung |
Close(String, Guid, Boolean)
Schließt die angegeben Erinnerung für den aktuellen Benutzer
Declaration
public void Close(string NotificationName, Guid ExternId, bool ExecuteCloseFunction = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | NotificationName | Name der Konfiguration |
| Guid | ExternId | Id, die den Datensatz referenziert |
| System.Boolean | ExecuteCloseFunction | Gibt an, ob die Close-Scripte ausgeführt werden sollen |
Close(String, Guid, Int32, Boolean)
Schließt die angegeben Erinnerung
Declaration
public void Close(string NotificationName, Guid ExternId, int UserId, bool ExecuteCloseFunction = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | NotificationName | Name der Konfiguration |
| Guid | ExternId | Id, die den Datensatz referenziert |
| System.Int32 | UserId | Benutzer-Id |
| System.Boolean | ExecuteCloseFunction | Gibt an, ob die Close-Scripte ausgeführt werden sollen |
EditNotification(String, Guid, Int32)
Für das Edit-Script aus
Declaration
public void EditNotification(string InternName, Guid ExternId, int UserId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | InternName | Interne Name der Erinnerung |
| Guid | ExternId | |
| System.Int32 | UserId |
GetNotificationObject(String, Guid, Int32)
Gibt eine instanz einer notication zurück
Declaration
public NotificationObject GetNotificationObject(string InternName, Guid ExternId, int UserId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | InternName | Interner Name |
| Guid | ExternId | Externe Id |
| System.Int32 | UserId | BenutezrId |
Returns
| Type | Description |
|---|---|
| NotificationObject |
GetNotificationOverDueDate()
Gibt alle offnen Erinnerungen für den aktuellen Benutzer zurück
Declaration
public IList<NotificationObject> GetNotificationOverDueDate()
Returns
| Type | Description |
|---|---|
| IList<NotificationObject> | Liste mit Erinnerungen |
GetNotificationOverDueDate(Int32)
Gibt alle offenen Erinnerungen zurück
Declaration
public IList<NotificationObject> GetNotificationOverDueDate(int UserId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | UserId | Benutzer-Id |
Returns
| Type | Description |
|---|---|
| IList<NotificationObject> | Liste mit Erinnerungen |
GetNotificationOverRemindeTime(Int32)
Gibt alle offenen Erinnerungen zurück
Declaration
public IList<NotificationObject> GetNotificationOverRemindeTime(int UserId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | UserId | Benutzer-Id |
Returns
| Type | Description |
|---|---|
| IList<NotificationObject> | Liste mit Erinnerungen |
GetNotificationRemindeTime()
Gibt alle offnen Erinnerungen für den aktuellen Benutzer zurück
Declaration
public IList<NotificationObject> GetNotificationRemindeTime()
Returns
| Type | Description |
|---|---|
| IList<NotificationObject> | Liste mit Erinnerungen |
Init()
Initialisiert das System
Declaration
public void Init()
RemindLater(String, Guid, Int32)
Verschiebt das Erinnerungsdatum um einen angegebenen Minutenbetrag, für den aktuellen Benutzer
Declaration
public void RemindLater(string NotificationName, Guid ExternId, int Minutes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | NotificationName | Name der Konfiguration |
| Guid | ExternId | Id, die den Datensatz referenziert |
| System.Int32 | Minutes | Minutenanzahl |
RemindLater(String, Guid, Int32, Int32)
Verschiebt das Erinnerungsdatum um einen angegebenen Minutenbetrag
Declaration
public void RemindLater(string NotificationName, Guid ExternId, int UserId, int Minuts)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | NotificationName | Name der Konfiguration |
| Guid | ExternId | Id, die den Datensatz referenziert |
| System.Int32 | UserId | Benutzer-Id |
| System.Int32 | Minuts | Minutenanzahl |
SetDueDate(String, Guid, DateTime)
Setzt ein neuer "Fällig am" Datum für alle Erinnerungen aller User zu dieser ExternId
Declaration
public void SetDueDate(string InternName, Guid ExternId, DateTime DueDate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | InternName | |
| Guid | ExternId | |
| DateTime | DueDate |
SetNotificationNote(String, Guid, String)
Setzt einen neuen Notification-Text für alle Erinnerungen aller User zu dieser ExternId
Declaration
public void SetNotificationNote(string InternName, Guid ExternId, string Note)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | InternName | |
| Guid | ExternId | |
| System.String | Note |
SetNotificationText(String, Guid, String)
Setzt einen neuen Notification-Text für alle Erinnerungen aller User zu dieser ExternId
Declaration
public void SetNotificationText(string InternName, Guid ExternId, string Text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | InternName | |
| Guid | ExternId | |
| System.String | Text |
ShowNotificationWindow(Boolean)
Öffnet das Erinnerungsfenster
Declaration
public void ShowNotificationWindow(bool ignoreDueDate = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | ignoreDueDate | Gibt an, ob das Fälligkeitsdatum ignoriert werden soll |