工作框架各种使用整理 -- 枚举类型下拉选择

<form-list name="ListProductCategory" list="productCategoryList">
            <auto-fields-entity entity-name="mantle.product.category.ProductCategory" field-type="find-display" include="nonpk"/>
            <field name="pseudoId">
                <header-field title="分类标识" show-order-by="true"><text-find size="15" hide-options="true"/></header-field>
                <default-field><display also-hidden="false"/></default-field>
            </field>
            <field name="categoryName">
                <header-field title="分类名称" show-order-by="true"><text-find size="15" hide-options="true"/></header-field>
                <default-field><display also-hidden="false"/></default-field>
            </field>
            <field name="productCategoryTypeEnumId">
                <header-field title="分类所属类别" show-order-by="true"><drop-down allow-empty="true">
                    <option key="PctCatalog" text="产品目录"/><option key="PctSangCatalog" text="sang产品目录"/><option key="PctSangRecommendation" text="sang推荐产品"/>
                </drop-down></header-field>
                <default-field>
                    <display-entity entity-name="moqui.basic.Enumeration" key-field-name="enumId" text="${description}"/>
                    </default-field>
            </field>
            <field name="lastUpdatedStamp">
                <header-field title="最后更新时间" show-order-by="true"><text-find size="15" hide-options="true"/></header-field>
                <default-field><display also-hidden="true"/></default-field>
            </field>
            <field name="find">
                <header-field title="Find"><submit/></header-field>
            </field>
        </form-list>

 

posted @ 2016-09-05 14:30  霓裳梦竹  阅读(328)  评论(0编辑  收藏  举报