| /** | 
|  * @file          Common Calendar Form | 
|  * @author        Wong Jia Hui (jiahui.wong@3ds.com) | 
|  */ | 
| import { FormSOP } from '../../../libappsop/formsop'; | 
| import { ListSOP } from '../../../libappsop/listsop'; | 
| import { DialogCalendarEvent } from '../../dialogs/calendarevent/dialog.calendarevent'; | 
| import { PanelCommonEventsGanttChart } from './panel.commoneventsganttchart'; | 
| import { PanelCommonEventsList } from './panel.commoneventslist'; | 
|   | 
| export class FormCommonCalendar extends FormSOP { | 
|   public static readonly title = 'Common Calendar'; | 
|   public static readonly componentName = 'LibCal_frmCommonCalendar'; | 
|   public listEventCategory = new ListEventCategory(); | 
|   public pnlCommonEventsGanttChart = new PanelCommonEventsGanttChart(); | 
|   public pnlCommonEventsList = new PanelCommonEventsList(); | 
|   | 
|   public constructor() { | 
|     super(FormCommonCalendar.componentName); | 
|   } | 
| } | 
|   | 
| export class ListEventCategory extends ListSOP<DialogCalendarEvent, ListEventCategoryColumn> { | 
|   public static readonly title = 'Event Categories'; | 
|   | 
|   public constructor() { | 
|     super('lstEventCategories', new DialogCalendarEvent()); | 
|   } | 
| } | 
|   | 
| export interface ListEventCategoryColumn { | 
|   Name?: string; | 
|   NrOfEvents?: string; | 
| } | 
|   | 
| const listEventCategoryContextMenuItem = { | 
|   CreateEvent: { ContextMenu: 'lstEventCategories.cmEventCategories', Name: 'MenuCreateEvent', Label: 'Create event' }, | 
| }; | 
|   | 
| export { listEventCategoryContextMenuItem as ListEventCategoryContextMenuItem }; |