Applied patch from jira issue - OFBIZ-7570 - Remove HtmlFormWrapper dependencies from Order Delivery Schedule Info screen.
Thanks Ravi for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
import org.ofbiz.base.util.*;
|
||||
import org.ofbiz.entity.*;
|
||||
import org.ofbiz.widget.renderer.html.HtmlFormWrapper;
|
||||
|
||||
orderId = request.getParameter("orderId");
|
||||
orderTypeId = null;
|
||||
@@ -38,15 +37,9 @@ hasSupplierRelatedPermissionStr = checkResult.hasSupplierRelatedPermission;
|
||||
// Determine what the reuslt is, no result is FALSE
|
||||
hasSupplierRelatedPermission = "true".equals(hasSupplierRelatedPermissionStr);
|
||||
|
||||
// Initialize the PO Delivery Schedule form
|
||||
updatePODeliveryInfoWrapper = new HtmlFormWrapper("component://order/widget/ordermgr/OrderDeliveryScheduleForms.xml", "UpdateDeliveryScheduleInformation", request, response);
|
||||
updatePODeliveryInfoWrapper.putInContext("orderId", orderId);
|
||||
updatePODeliveryInfoWrapper.putInContext("orderItemSeqId", "_NA_");
|
||||
updatePODeliveryInfoWrapper.putInContext("schedule", schedule);
|
||||
updatePODeliveryInfoWrapper.putInContext("hasSupplierRelatedPermission", hasSupplierRelatedPermission);
|
||||
|
||||
context.orderId = orderId;
|
||||
context.orderItemSeqId = "_NA_";
|
||||
context.orderTypeId = orderTypeId;
|
||||
context.orderHeader = orderHeader;
|
||||
context.hasPermission = hasSupplierRelatedPermission;
|
||||
context.updatePODeliveryInfoWrapper = updatePODeliveryInfoWrapper;
|
||||
context.schedule = schedule;
|
||||
context.hasPermission = hasSupplierRelatedPermission;
|
||||
@@ -1,41 +0,0 @@
|
||||
<#--
|
||||
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.
|
||||
-->
|
||||
|
||||
<#if hasPermission>
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="h3">${uiLabelMap.OrderScheduleDelivery}</li>
|
||||
<#if orderId??>
|
||||
<li><a href="<@ofbizUrl>orderview?orderId=${orderId}</@ofbizUrl>">${uiLabelMap.OrderViewOrder}</a></li>
|
||||
</#if>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<#if orderId?has_content>
|
||||
${updatePODeliveryInfoWrapper.renderFormString(context)}
|
||||
<#else>
|
||||
${uiLabelMap.OrderNoPurchaseSpecified}
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
<#else>
|
||||
<h3>${uiLabelMap.OrderViewPermissionError}</h3>
|
||||
</#if>
|
||||
@@ -310,9 +310,34 @@ under the License.
|
||||
<widgets>
|
||||
<decorator-screen name="CommonOrderViewDecorator">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://order/template/order/OrderDeliveryScheduleInfo.ftl"/></html>
|
||||
</platform-specific>
|
||||
<section>
|
||||
<condition>
|
||||
<if-compare operator="equals" value="true" field="hasPermission"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.OrderScheduleDelivery}">
|
||||
<container style="button-bar">
|
||||
<link target="orderview" text="${uiLabelMap.OrderViewOrder}" style="buttontext">
|
||||
<parameter param-name="orderId" from-field="orderId"/>
|
||||
</link>
|
||||
</container>
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="orderId"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-form name="UpdateDeliveryScheduleInformation" location="component://order/widget/ordermgr/OrderDeliveryScheduleForms.xml"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label text="${uiLabelMap.OrderNoPurchaseSpecified}"></label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3" text="${uiLabelMap.OrderViewPermissionError}"></label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
|
||||
Reference in New Issue
Block a user