Fixed: User should be notified with success message on MRP run in manufacturing component

(OFBIZ-9533)

Steps to regenerate:
1. Go to Manufacturing component (manufacturing/control/main)
2. Click on Mrp sub menu (manufacturing/control/FindInventoryEventPlan)
3. Click on Run Mrp button.(manufacturing/control/RunMrp)
4. Select Facility/Facility Group and Click Submit button.
On success, the user should be notified with success message like 
"Mrp run is scheduled".

jleroux: despite being a sub-task of an improvement I decided to backport. 
It works well and nothing could go wrong, only UI changes.

Thanks: Aditya Sharma for report, Humera Khan for the fix, Prachi Shastri for
testing and Pierre Smits for noticing this could be backported (despite being
a sub-task of an improvement)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1862278 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2019-06-28 11:53:55 +00:00
parent 71f0cad57c
commit faa035e71e
3 changed files with 25 additions and 1 deletions
@@ -3112,6 +3112,10 @@
<value xml:lang="zh">生产资源计划名称</value>
<value xml:lang="zh-TW">生產資源計劃名稱</value>
</property>
<property key="ManufacturingMrpRunScheduledSuccessfully">
<value xml:lang="en">Mrp run scheduled successfully</value>
<value xml:lang="fr">Exécution de Mrp programmée avec succès</value>
</property>
<property key="ManufacturingNewCalendar">
<value xml:lang="de">Neuer Kalender</value>
<value xml:lang="en">New calendar</value>
@@ -465,7 +465,7 @@ under the License.
<request-map uri="runMrpGo">
<security https="true" auth="true"/>
<event type="service" invoke="executeMrp" path="async"/>
<response name="success" type="view" value="MrpExecution"/>
<response name="success" type="view" value="RunMrpGo"/>
<response name="error" type="view" value="MrpExecution"/>
</request-map>
@@ -871,6 +871,7 @@ under the License.
<!-- MRP view mappings -->
<view-map name="FindMrpPlannedEvents" type="screen" page="component://manufacturing/widget/manufacturing/MrpScreens.xml#FindMrpPlannedEvents"/>
<view-map name="MrpExecution" type="screen" page="component://manufacturing/widget/manufacturing/MrpScreens.xml#MrpExecution"/>
<view-map name="RunMrpGo" page="component://manufacturing/widget/manufacturing/MrpScreens.xml#RunMrpGo" type="screen"/>
<view-map name="ManufacturingReports" type="screen" page="component://manufacturing/widget/manufacturing/ReportScreens.xml#ManufacturingReports"/>
<!-- JobShop Management view mappings -->
@@ -54,6 +54,25 @@ under the License.
</widgets>
</section>
</screen>
<screen name="RunMrpGo">
<section>
<actions>
<set field="titleProperty" value="ManufacturingRunMrp"/>
<set field="tabButtonItem" value="RunMrp"/>
<set field="headerItem" value="mrp"/>
<set field="eventMessage" value="${groovy: org.apache.ofbiz.base.util.UtilProperties.getMessage('ManufacturingUiLabels', 'ManufacturingMrpRunScheduledSuccessfully', locale)}"/>
</actions>
<widgets>
<decorator-screen name="CommonMrpDecorator">
<decorator-section name="body">
<screenlet title="${uiLabelMap.ManufacturingRunMrp}">
<include-form name="RunMrp" location="component://manufacturing/widget/manufacturing/MrpForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindMrpPlannedEvents">
<section>
<actions>