Kind: Class
Source: Frontend/src/app/services/dashboard/mydesk/calendar.service.ts (line 83)
Part of: Frontend
CalendarService groups calendar-related data access for the My Desk dashboard area. It exposes methods for priority data, type data, general data, and calendar retrieval so dashboard components can request each data set through one service.
Methods
| Method | Signature | Returns |
|---|---|---|
getPriorityData | getPriorityData() | void |
getTypeData | getTypeData() | void |
getData | getData() | void |
GetCalendar | GetCalendar(clientId: number, principleId: number, projectId: number, responsibleId: number, contact: number, team: number, includeTasks: undefined, includeMeetingActivity: undefined, includeVisitActivity: undefined, includeCallActivity: undefined, includeDeliveries: undefined, includeReceivables: undefined, includeBidDueDate: undefined) | void |
Diagram
mermaidgraph LR Dashboard[My Desk Dashboard] --> Service[CalendarService] Service --> Priority[getPriorityData()] Service --> Type[getTypeData()] Service --> Data[getData()] Service --> Calendar[GetCalendar()]
Usage
tsimport { CalendarService } from './calendar.service';
export class MyDeskComponent {
constructor(private readonly calendarService: CalendarService) {}
loadCalendarData() {
const priorityData = this.calendarService.getPriorityData();
const typeData = this.calendarService.getTypeData();
const data = this.calendarService.getData();
const calendar = this.calendarService.GetCalendar();
return { priorityData, typeData, data, calendar };
}
}
AI Coding Instructions
- Keep calendar data access inside
CalendarServiceinstead of duplicating calls in dashboard components. - Preserve the existing method names and casing, including
GetCalendar(). - Check each method’s return type before subscribing, awaiting, or binding its result in a template.
- Update consuming My Desk components when changing the data shape returned by any service method.
Used by
2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Imported by (2)
CalendarComponent—Frontend/src/app/components/dashboard/my-desk/calendar/calendar.component.ts:1PamsServicesModule—Frontend/src/app/services/pams-services.module.ts:1
Was this page helpful?