<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
        caption="msg://editorCaption"
        focusComponent="mainGroupBox"
        messagesPack="com.company.daex.web.rpd">
    <data>
        <instance id="rpdDc"
                  class="com.company.daex.entity.RPD"
                  view="rpd.Edit">
            <loader/>
            <collection id="prdFilesDc" property="prdFiles"/>
        </instance>
        <collection id="headRPD" class="com.company.daex.entity.HeadRPD" view="headRPD.Browse">
            <loader>
                <query><![CDATA[select e from daex$HeadRPD e ]]></query>
            </loader>
        </collection>
    </data>
    <dialogMode height="600"
                width="800"/>
    <layout expand="editActions" spacing="true">
        <groupBox id="mainGroupBox" spacing="true">
            <hbox spacing="true">
                <label width="100px" value="mainMsg://ExpertiseRPD"/>
                <label/>
            </hbox>
            <hbox spacing="true">
                <label width="100px" value="mainMsg://XmlGUID"/>
                <textField dataContainer="rpdDc" datatype="string" property="xmlGUID"/>
            </hbox>
            <hbox spacing="true">
                <label width="100px" value="mainMsg://RPD"/>
                <lookupPickerField dataContainer="rpdDc" optionsContainer="headRPD" property="headRPD">
                    <actions>
                        <action id="lookup" type="picker_lookup"/>
                        <action id="open" type="picker_open"/>
                    </actions>
                </lookupPickerField>
            </hbox>
            <hbox spacing="true">
                <label width="100px" value="mainMsg://Pressmark"/>
                <textField dataContainer="rpdDc" datatype="string" property="pressmark"/>
            </hbox>
        </groupBox>
        <groupBox id="prdFilesBox" caption="msg://com.company.daex.entity/RPD.prdFiles">
            <table id="prdFilesTable" dataContainer="prdFilesDc" width="100%" height="200px">
                <actions>
                    <action id="create" type="create"/>
                    <action id="edit" type="edit"/>
                    <action id="remove" type="remove"/>
                </actions>
                <columns>
                    <column id="incomedate"/>
                    <column id="beginningdate"/>
                    <column id="endingdate"/>
                    <column id="remarkAnswer"/>
                </columns>
                <buttonsPanel>
                    <button action="prdFilesTable.create"/>
                    <button action="prdFilesTable.edit"/>
                    <button action="prdFilesTable.remove"/>
                </buttonsPanel>
            </table>
        </groupBox>
        <hbox id="editActions" spacing="true">
            <button action="windowCommitAndClose"/>
            <button action="windowClose"/>
        </hbox>
    </layout>
</window>
