1234567891011121314151617181920212223242526272829303132 |
- using InABox.Core;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Comal.Classes
- {
- public enum EventSubscriberType
- {
- Notification,
- Email
- }
- public class EventSubscriber : Entity, IRemotable, IPersistent, IManyToMany<Event, Employee>, ILicense<CoreLicense>
- {
- public EventLink Event { get; set; }
- [EditorSequence(1)]
- public EmployeeLink Employee { get; set; }
- [EditorSequence(2)]
- public EventSubscriberType SubscriberType { get; set; } = EventSubscriberType.Notification;
- static EventSubscriber()
- {
- DefaultColumns.Add<EventSubscriber>(x => x.Event.Code);
- DefaultColumns.Add<EventSubscriber>(x => x.Employee.Code);
- DefaultColumns.Add<EventSubscriber>(x => x.Employee.Name);
- DefaultColumns.Add<EventSubscriber>(x => x.SubscriberType);
- }
- }
- }
|