Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/calendar/roomsmanager/src/ |
Upload File : |
import { Util } from 'calendar.util'; import { CalendarSection } from 'calendar.sectionmanager'; export class RoomsSection extends CalendarSection { constructor(data) { super(data); this.updateData(data); this.calendarContext = Util.getCalendarContext(); // this.roomsManager = this.calendarContext.roomsManager; } updateData(data) { this.data = data || {}; this.type = data.CAL_TYPE || ''; this.necessity = data.NECESSITY || 'N'; this.capacity = parseInt(data.CAPACITY) || 0; this.ownerId = parseInt(data.OWNER_ID) || 0; this.id = parseInt(data.ID); this.location_id = parseInt(data.LOCATION_ID); this.color = this.data.COLOR; this.name = this.data.NAME; this.categoryId = parseInt(this.data.CATEGORY_ID); this.reserved = this.data.reserved || false; } belongsToView() { return true; } }