1 <transition name="createProductRecommend">
2 <service-call name="create#mantle.product.category.ProductCategoryMember" in-map="productId:productId, productCategoryId:'SANG_ServiceRecommend',fromDate:ec.user.nowTimestamp"/>
3 <default-response url="."></default-response>
4 </transition>
5
6 <transition name="delete">
7 <actions>
8 <entity-delete-by-condition entity-name="mantle.product.category.ProductCategoryMember">
9 <econdition field-name="productId" from="productId"/>
10 <econdition field-name="productCategoryId" value="SANG_ServiceRecommend"/>
11 </entity-delete-by-condition>
12 </actions>
13 <default-response url="."></default-response>
14 </transition>
15 <actions>
16 <entity-find entity-name="mantle.product.category.ProductCategoryMember" list="pcmList">
17 <date-filter/>
18 <econdition field-name="productCategoryId" value="SANG_ServiceRecommend"/>
19 </entity-find>
20 <entity-find entity-name="mantle.product.Product" list="recommendList">
21 <search-form-inputs default-order-by="^productName"/>
22 <econdition field-name="productId" operator="in" from="pcmList.productId"/>
23 </entity-find>
24 </actions>
1 <widgets>
2 <container-dialog id="CreateProductRecommend" button-text="添加推荐服务">
3 <form-single name="CreateProductRecommend" transition="createProductRecommend">
4 <field name="productId"><default-field title="服务名称">
5 <drop-down>
6 <entity-options key="${productId}" text="${productName}">
7 <entity-find entity-name="mantle.product.Product">
8 <order-by field-name="productName"/></entity-find>
9 </entity-options>
10 </drop-down>
11 </default-field></field>
12 <field name="submitButton"><default-field><submit confirmation="Really Add?"/></default-field></field>
13 </form-single>
14 </container-dialog>
15
16 <form-list name="ListProductRecommend" list="recommendList">
17 <field name="productId">
18 <header-field title="服务标识" show-order-by="true"><text-find size="45" hide-options="true"/></header-field>
19 <default-field><display also-hidden="false"/></default-field>
20 </field>
21 <field name="productName">
22 <header-field title="服务名" show-order-by="true"><text-find size="45" hide-options="true"/></header-field>
23 <default-field><display also-hidden="false"/></default-field>
24 </field>
25 <field name="statusId">
26 <header-field title="服务状态 " show-order-by="true"><text-find size="25" hide-options="true"/></header-field>
27 <default-field><display also-hidden="false"/></default-field>
28 </field>
29
30 <field name="delete">
31 <header-field title="查找"><submit/></header-field>
32 <default-field>
33 <link url="delete" text="删除" confirmation="Really Delete ?" parameter-map="[productId:productId]"/>
34 </default-field>
35 </field>
36 <form-list-column><field-ref name="productId"/></form-list-column>
37 <form-list-column><field-ref name="productName"/></form-list-column>
38 <form-list-column><field-ref name="statusId"/></form-list-column>
39 <form-list-column><field-ref name="delete"/></form-list-column>
40 </form-list>
41 </widgets>