Blame view
applications/product/widget/facility/ShipmentGatewayConfigScreens.xml
11.5 KB
c16038356
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> <screen name="GenericShipmentGatewayConfigDecorator"> <section> <actions> <set field="headerItem" value="ShipmentGatewayConfig"/> </actions> <widgets> <!-- main defines the regions of the HTML page --> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="pre-body"> <include-menu name="ShipmentGatewayConfigTabBar" location="component://product/widget/facility/FacilityMenus.xml"/> </decorator-section> <!-- body is the primary display for this page and is called recursively --> <decorator-section name="body"> <section> <widgets> <container> <label style="h1">${uiLabelMap[labelTitleProperty]}</label> </container> <!-- Now call the SimpleScreen form --> <decorator-section-include name="body"/> </widgets> </section> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="FindShipmentGatewayConfig"> <section> <actions> <set field="titleProperty" value="PageTitleFindShipmentGatewayConfig"/> <set field="tabButtonItem" value="shipmentGatewayConfigTab"/> <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/> <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/> <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/> </actions> <widgets> <decorator-screen name="GenericShipmentGatewayConfigDecorator"> <decorator-section name="body"> <section> <widgets> <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> <decorator-section name="search-options"> <include-form name="FindShipmentGatewayConfig" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </decorator-section> <decorator-section name="search-results"> <include-form name="ListShipmentGatewayConfig" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </decorator-section> </decorator-screen> </widgets> </section> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="EditShipmentGatewayConfig"> <section> <actions> <set field="titleProperty" value="PageTitleUpdateShipmentGatewayConfig"/> <set field="tabButtonItem" value="shipmentGatewayConfigTab"/> <set field="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/> <entity-one entity-name="ShipmentGatewayConfig" value-field="shipmentGatewayConfig"/> <entity-one entity-name="ShipmentGatewayDhl" value-field="shipmentGatewayDhl"> <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/> </entity-one> <entity-one entity-name="ShipmentGatewayFedex" value-field="shipmentGatewayFedex"> <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/> </entity-one> <entity-one entity-name="ShipmentGatewayUsps" value-field="shipmentGatewayUsps"> <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/> </entity-one> <entity-one entity-name="ShipmentGatewayUps" value-field="shipmentGatewayUps"> <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/> </entity-one> </actions> <widgets> <decorator-screen name="GenericShipmentGatewayConfigDecorator"> <decorator-section name="body"> <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfig}"> <include-form name="EditShipmentGatewayConfig" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </screenlet> <section> <condition> <not><if-empty field="shipmentGatewayDhl"/></not> </condition> <widgets> <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigDhl}"> <include-form name="EditShipmentGatewayConfigDhl" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </screenlet> </widgets> </section> <section> <condition> <not><if-empty field="shipmentGatewayFedex"/></not> </condition> <widgets> <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigFedex}"> <include-form name="EditShipmentGatewayConfigFedex" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </screenlet> </widgets> </section> <section> <condition> <not><if-empty field="shipmentGatewayUps"/></not> </condition> <widgets> <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigUps}"> <include-form name="EditShipmentGatewayConfigUps" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </screenlet> </widgets> </section> <section> <condition> <not><if-empty field="shipmentGatewayUsps"/></not> </condition> <widgets> <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigUsps}"> <include-form name="EditShipmentGatewayConfigUsps" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </screenlet> </widgets> </section> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="FindShipmentGatewayConfigTypes"> <section> <actions> <set field="titleProperty" value="PageTitleFindShipmentGatewayConfigTypes"/> <set field="tabButtonItem" value="shipmentGatewayConfigTypesTab"/> <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/> <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/> <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/> </actions> <widgets> <decorator-screen name="GenericShipmentGatewayConfigDecorator"> <decorator-section name="body"> <section> <widgets> <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> <decorator-section name="search-options"> <include-form name="FindShipmentGatewayConfigTypes" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </decorator-section> <decorator-section name="search-results"> <include-form name="ListShipmentGatewayConfigTypes" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </decorator-section> </decorator-screen> </widgets> </section> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="EditShipmentGatewayConfigType"> <section> <actions> <set field="titleProperty" value="PageTitleUpdateShipmentGatewayConfigType"/> <set field="tabButtonItem" value="shipmentGatewayConfigTypesTab"/> <set field="shipmentGatewayConfTypeId" from-field="parameters.shipmentGatewayConfTypeId"/> <entity-one entity-name="ShipmentGatewayConfigType" value-field="shipmentGatewayConfigType"/> </actions> <widgets> <decorator-screen name="GenericShipmentGatewayConfigDecorator"> <decorator-section name="body"> <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigType}"> <include-form name="EditShipmentGatewayConfigType" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/> </screenlet> </decorator-section> </decorator-screen> </widgets> </section> </screen> </screens> |