yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * @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 };