Создать схему
Создать схему проекта
Блок кода | ||||
---|---|---|---|---|
| ||||
<?xml version='1.0' encoding='UTF-8'?>
<schemas xmlns="http://www.intertrust.ru/schema/palette/tn-schema">
<schema extends="RkkResource" name="RkkResourceProjects">
<!-- Название вкладки -->
<string name="pagename" temporal="true">
<calc-values>
<script event="open" lang="SPEL"><![CDATA['Проект']]></script>
</calc-values>
</string>
<!-- Тип документа -->
<string name="showIdent" temporal="true">
<calc-values>
<script event="open" lang="SPEL"><![CDATA['Проект']]></script>
</calc-values>
</string>
<!-- Исполнители -->
<actor name="executor" system="true" array="true"/>
<!-- Автор -->
<actor name="author" system="true"/>
<!-- Раздел -->
<string name="section">
<storage-field name="section"/>
</string>
</schema>
</schemas> |
Создать форму
Создать форму проекта
Блок кода | ||||
---|---|---|---|---|
| ||||
<?xml version='1.0' encoding='UTF-8'?>
<ui xmlns="http://www.intertrust.ru/schema/palette/tn-ui">
<form schema-ref="RkkResourceProjects" id="RkkResourceProjectsForm" projection="default" showtabs="true">
<appearance widget="tabs"/>
<component>
<!-- Шапка -->
<section id="Header">
<appearance field-layout="horizontal"/>
<component>
<field attribute-ref="showIdent">
<properties>
<read-only condition-union="AND">
<condition>true</condition>
</read-only>
</properties>
<appearance align="left" importance="normal">
<label-style field-width="4" field-unit="symbol"/>
<alt-appearancies>
<alt-appearance>
<appearance-ref ref="css_headerElementWithIcon"/>
<enable condition-union="AND">
<condition>true</condition>
</enable>
</alt-appearance>
</alt-appearancies>
</appearance>
</field>
</component>
</section>
<!-- Тело -->
<section id="Attributes" name="${ui.form.RkkResourceProjects.section.Attributes.name:Реквизиты}">
<component>
<field attribute-ref="executor" name="${ui.form.RkkResourceProjects.Attributes.executor.name:Исполнители:}"/>
<field attribute-ref="author" name="${ui.form.RkkResourceProjects.Attributes.author.name:Автор:}"/>
<field attribute-ref="section" name="${ui.form.RkkResourceProjects.Attributes.author.section:Раздел:}"/>
</component>
</section>
</component>
</form>
</ui> |
Создать документ
Объединить схему проекта с типом объекта RKK_INTERNAL
Блок кода | ||||
---|---|---|---|---|
| ||||
<?xml version='1.0' encoding='UTF-8'?>
<catalog xmlns="http://www.intertrust.ru/schema/palette/cat-ui">
<document name="${catalog.document.project.name:Проект}" schema-ref="RkkResourceProjects" object-ref="RKK_INTERNAL" general="true" category="Другое">
<module ident="Project"/>
</document>
</catalog> |
Создать модуль
- Открыть НБР-админку
- Перейти в раздел "Структура системы\Типы приложений"
- Создать новый тип приложения ProjectDoc
- Перейти в раздел "Структура системы\Приложения"
- Создать новое приложение на базе Внутренних документов
- Перейти в раздел "Структура системы\Приложения организаций"
- Создать приложение