标签:
< form name= "returnHeaderReason" type = "single" default-map-name ="returnHeader" > <actions > <entity-one value-field = "returnHeader" entity-name= "ReturnHeader" > <field-map field-name = "returnId" from-field= "parameters.returnId" /> </entity-one > </actions > <field name = "returnReason" title= "退货理由" ><display ></display ></field > </form >
< auto-fields-entity entity-name = ""/>< auto-fields-service service-name = ""/>
< form name= "listReturnItem" type = "list" list-name= "listReturnItems" odd-row-style= "alternate-row" header-row-style ="header-row-2" default-table-style = "basic-table hover-bar"> <actions > <entity-and entity-name = "ReturnItem" use-cache= "false" list= "listReturnItems" > <field-map field-name = "returnId" from-field= "parameters.returnId" /> </entity-and > </actions > <field name = "returnQuantity" title= "退货数量" ><display ></display ></field > <field name = "returnPrice" title= "退货单价" ><display ></display ></field > <field name = "returnTotalPrice" title= "退货金额" ><display ></display ></field > </form >
< row-actions> <script location= "component://portal/webapp/portal/WEB-INF/actions/returnOrder/listReturnItem.groovy" /> </row-actions >
if (!productId) return; product = delegator.findOne ("Product" ,[productId:productId], false); productDescription = product. get("description" ) context. productDescription = productDescription
<field name = "productDescription" title= "商品描述" ><display ></display ></field >
< decorator-section name = "body"> <section > <widgets > <decorator-screen name= "FindScreenDecorator" location= "component://common/widget/CommonScreens.xml" > <decorator-section name= "search-options" > <include-form name= "SearchReturnOrder" location= "component://portal/widget/ReturnOrderForms.xml" /> </decorator-section > <decorator-section name= "search-results" > <include-form name= "ListReturnOrder" location= "component://portal/widget/ReturnOrderForms.xml" /> </decorator-section > </decorator-screen > </widgets > </section > </decorator-section >
< form name= "SearchReturnOrder" target = "ListReturnOrder" title= "" type= "single" header-row-style= "header" default-table-style = "basic-table talbe_left_padding"> <field name = "noConditionFind">< hidden value= "Y" /></field > <field name = "returnId">< text ></text ></field > <field name = "statusId" title= "${uiLabelMap.CommonStatus}"> <drop-down allow-empty = "true"> <entity-options entity-name = "StatusItem" description= "${description}" > <entity-constraint name = "statusTypeId" operator= "equals" value = "ORDER_RETURN_STTS"/> </entity-options > </drop-down > </field > <field name = "createdStamp_fld0_value" title= "申请开始时间" > <date-time type = "date"/> </field > <field name = "createdStamp_fld0_op"> <hidden value = "greaterThanFromDayStart"/> </field > <field name = "createdStamp_fld1_value" title= "申请结束时间" > <date-time type = "date"/> </field > <field name = "createdStamp_fld1_op"> <hidden value = "upThruDay"/> </field > <field name = "searchButton" title= "${uiLabelMap.CommonFind}" widget-style= "smallSubmit" ><submit button-type = "button"/></ field> </form >
<entity-constraint name = "statusTypeId" operator= "equals" value = "ORDER_RETURN_STTS"/>
<field name = "createdStamp_fld0_value" title= "申请开始时间" > <date-time type = "date"/> </field > <field name = "createdStamp_fld0_op"> <hidden value = "greaterThanFromDayStart"/> </field >
标签:
原文地址:http://www.cnblogs.com/wangqc/p/ofbiz_form.html