26 $this->
setLogoUri(
'/bitrix/images/report/visualconstructor/view-activity.jpg');
27 $this->
setJsClassName(
'BX.Report.VisualConstructor.Widget.Content.Activity');
41 parent::collectReportHandlerFormElements($reportHandler);
44 $whatWillCalculateField = $reportHandler->getFormElement(
'calculate');
45 if ($whatWillCalculateField)
47 $labelField = $reportHandler->getWidgetHandler()->getFormElement(
'label');
48 $labelField->addJsEventListener($whatWillCalculateField, $whatWillCalculateField::JS_EVENT_ON_CHANGE, array(
49 'class' =>
'BX.Report.VisualConstructor.FieldEventHandlers.Title',
50 'action' =>
'whatWillCalculateChange',
52 $whatWillCalculateField->addAssets(array(
53 'js' => array(
'/bitrix/js/report/js/visualconstructor/fields/reporttitle.js')
57 $removeFormElement = $reportHandler->getFormElementByDataAttribute(
'role',
'report-remove-button');
58 if ($removeFormElement)
60 $removeFormElement->setDisplay(
false);
63 $colorField = $reportHandler->getFormElement(
'color');
64 $reportHandler->getFormElement(
'label_color_container_start')->setDisplay(
false);
65 $reportHandler->getFormElement(
'label_color_container_end')->setDisplay(
false);
66 $reportHandler->getFormElement(
'head_container_start')->setDisplay(
false);
67 $reportHandler->getFormElement(
'head_container_end')->setDisplay(
false);
70 $colorField->setDisplay(
false);
74 $labelField = $reportHandler->getFormElement(
'label');
77 $labelField->setDisplay(
false);
90 if ($dataFromReport[
'items'])
93 foreach ($dataFromReport[
'items'] as $item)
96 if (!empty($items[$item[
'firstGroupId']][$item[
'secondGroupId']]))
98 $items[$item[
'firstGroupId']][$item[
'secondGroupId']][
'active'] += (int)$item[
'value'];
102 $items[$item[
'firstGroupId']][$item[
'secondGroupId']] = array(
103 'labelXid' => (
int)$item[
'firstGroupId'] + 1,
104 'labelYid' => (
int)$item[
'secondGroupId'],
105 'active' => (
int)$item[
'value'],
111 foreach ($items as $firstGroupId => $secondGroup)
113 foreach ($secondGroup as $secondGroupId => $newItem)
115 $result[
'items'][] = $newItem;
122 $result[
'config'][
'labelX'] = $this->
getHourList();
176 for ($i = 1; $i <= 24; $i++)
182 if ($i === 0 || $i === 24 || ($i) % 6 == 0)
184 $hour[
'show'] =
true;
187 if ($i >= 9 && $i <= 18)
189 $hour[
'active'] =
true;
static getMessage($code, $replace=null, $language=null)