Дерево страниц
Skip to end of metadata
Go to start of metadata

Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 5 Следующий »

Постановка задачи

Добавить в кнопку "Создать" новый объект "Экспедиция\Заказ"
Инструменты: Палитра XML, НБР-Админка
Статус

В РАБОТЕ

РазделФорма
Комментарий

Реализация

<Сопроводительная информация>

Создать схему

Создать схему проекта

<?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>


Создать модуль

Создать произвольный модуль на базе Внутренних документов


Подключить документ к портальному профилю пользователя

Открыть портальный профиль

  • Нет меток