首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

OFBiz的screen中应用entity-one

2013-07-16 
OFBiz的screen中使用entity-onescreen nameEditWWsectionactionsset fieldmoduleId valuew

OFBiz的screen中使用entity-one
<screen name="EditWW">
        <section>
            <actions>
            <set field="moduleId" value="ww"/>
                <set field="headerItem" value="FindWW"/>
                <set field="titleProperty" value="EditWW"/>
                <set field="tabButtonItem" value="EditImpPriceSetting"/>
                <set field="baseId" from-field="parameters.baseId"/>
               <entity-one entity-name="ImpWW" value-field="entity"/>
            </actions>
            <widgets>
                <decorator-screen name="ofc-EditScreenDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="edit-options">
                        <include-form name="EditWW" location="component://filmproduct/widget/comWW.xml"/>
                        <platform-specific>
                    <html>
                    <html-template location="component://com/webapp/filmproduct/action/comWW.ftl"/>
                    </html>
                    </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

等同于

<screen name="EditWW">
        <section>
            <actions>
            <set field="moduleId" value="ww"/>
                <set field="headerItem" value="FindWW"/>
                <set field="titleProperty" value="EditWW"/>
                <set field="tabButtonItem" value="EditImpPriceSetting"/>
                <set field="baseId" from-field="parameters.baseId"/>
                <entity-one entity-name="ImpWW" value-field="entity">
                   <field-map field-name="baseId" from-field="parameters.baseId"/>
                </entity-one>

            </actions>
            <widgets>
                <decorator-screen name="ofc-EditScreenDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="edit-options">
                        <include-form name="EditWW" location="component://filmproduct/widget/comWW.xml"/>
                        <platform-specific>
                    <html>
                    <html-template location="component://com/webapp/filmproduct/action/comWW.ftl"/>
                    </html>
                    </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>



为何   为什么  查看entityone模型 源码  没怎么搞懂

热点排行