3namespace Bitrix\Bizproc\Integration\UI\EntitySelector;
5use Bitrix\Bizproc\Workflow\Template\Tpl;
6use Bitrix\Main\Localization\Loc;
7use Bitrix\Main\ORM\Query\Filter\ConditionTree;
8use Bitrix\UI\EntitySelector\Dialog;
9use Bitrix\UI\EntitySelector\Tab;
13 protected const ENTITY_ID =
'bizproc-script-template';
14 protected const TAB_ID =
'script-templates';
28 foreach ($complexDocumentTypes as $documentType)
36 $documentItem->setNodeOptions([
'dynamic' =>
true,
'open' =>
false]);
37 $dialog->
addItem($documentItem);
45 $first->setNodeOptions([
'dynamic' =>
true,
'open' =>
true]);
55 'title' => Loc::getMessage(
'BIZPROC_ENTITY_SELECTOR_TEMPLATES_TAB_SCRIPT_TEMPLATES_TITLE'),
56 'itemOrder' => [
'sort' =>
'asc nulls last'],
67 static::ITEM_DOCUMENT_TYPE_PREFIX .
$template->getDocumentType()
73 ->setNodeOptions([
'open' =>
true,
'dynamic' =>
false,
'itemOrder' => [
'sort' =>
'asc nulls last']])
77 $templateItem = $documentItem->getChildren()->get(static::ENTITY_ID,
$template->getId());
81 $templateItem = $documentItem->getChildren()->get(self::ENTITY_ID,
$template->getId());
84 $templateItem->setSort(1);
94 || \CBPDocument::canUserOperateDocumentType(
106 ->where(
'ACTIVE',
'Y')
if(isset( $_REQUEST["mode"]) &&$_REQUEST["mode"]=="ajax") if(isset($_REQUEST["mode"]) && $_REQUEST["mode"]=="save_lru" &&check_bitrix_sessid()) $first
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
__construct(array $options=[])
fillDialog(Dialog $dialog)
getDefaultTemplateFilter()
canUserStartWorkflow(int $userId, array $complexDocumentType)
openTemplateTree(Dialog $dialog, Tpl $template)
addTemplatesTab(Dialog $dialog)
getComplexDocumentTypes(string $moduleId='')
isUserWorkflowTemplateAdmin(int $userId)
openPreselectedItemTree(Dialog $dialog)
fillDocumentItem(Dialog $dialog, Item $documentItem, int $currentUserId)
getDocumentItem(Dialog $dialog, array $complexDocumentType)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
IsModuleInstalled($module_id)
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"