| <?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" |
| xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| <screen name="CommonMrpDecorator"> |
| <section> |
| <widgets> |
| <decorator-screen name="CommonManufacturingDecorator" location="${parameters.commonManufacturingDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <include-menu name="MrpTabBar" location="component://manufacturing/widget/manufacturing/ManufacturingMenus.xml"/> |
| <decorator-section-include name="body"/> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="MrpExecution"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="ManufacturingRunMrp"/> |
| <set field="tabButtonItem" value="RunMrp"/> |
| <set field="headerItem" value="mrp"/> |
| </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> |
| <set field="titleProperty" value="PageTitleFindInventoryEventPlan"/> |
| <set field="tabButtonItem" value="findInventoryEventPlan"/> |
| <set field="headerItem" value="mrp"/> |
| <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/> |
| <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/> |
| <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/> |
| |
| <entity-condition entity-name="JobSandbox" list="mrpActiveJobs"> |
| <condition-list combine="and"> |
| <condition-expr field-name="serviceName" value="executeMrp"/> |
| <condition-list combine="or"> |
| <condition-expr field-name="statusId" value="SERVICE_PENDING"/> |
| <condition-expr field-name="statusId" value="SERVICE_QUEUED"/> |
| <condition-expr field-name="statusId" value="SERVICE_RUNNING"/> |
| </condition-list> |
| </condition-list> |
| <order-by field-name="-createdStamp"/> |
| </entity-condition> |
| <entity-condition entity-name="JobSandbox" list="mrpRunningJobs"> |
| <condition-list combine="and"> |
| <condition-expr field-name="serviceName" value="executeMrp"/> |
| <condition-expr field-name="statusId" value="SERVICE_RUNNING"/> |
| </condition-list> |
| <order-by field-name="-createdStamp"/> |
| </entity-condition> |
| <entity-condition entity-name="JobSandbox" list="lastFinishedJobs"> |
| <condition-list combine="and"> |
| <condition-expr field-name="serviceName" value="executeMrp"/> |
| <condition-list combine="or"> |
| <condition-expr field-name="statusId" value="SERVICE_FINISHED"/> |
| <condition-expr field-name="statusId" value="SERVICE_FAILED"/> |
| <condition-expr field-name="statusId" value="SERVICE_CRASHED"/> |
| <condition-expr field-name="statusId" value="SERVICE_CANCELLED"/> |
| </condition-list> |
| </condition-list> |
| <order-by field-name="-finishDateTime"/> |
| <limit-range start="0" size="5"/> |
| </entity-condition> |
| <script location="component://manufacturing/groovyScripts/mrp/FindInventoryEventPlan.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonMrpDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.ManufacturingMrpJobLastExecuted}"> |
| <include-form name="ListFinishedMrpJobs" location="component://manufacturing/widget/manufacturing/MrpForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.ManufacturingMrpJobScheduledOrRunning}"> |
| <include-form name="ListRunningMrpJobs" location="component://manufacturing/widget/manufacturing/MrpForms.xml"/> |
| </screenlet> |
| <section> |
| <condition> |
| <if-empty field="mrpRunningJobs"/> |
| </condition> |
| <widgets> |
| <platform-specific> |
| <html><html-template location="component://manufacturing/template/mrp/FindInventoryEventPlan.ftl"/></html> |
| </platform-specific> |
| </widgets> |
| <fail-widgets> |
| <label style="h1">${uiLabelMap.ManufacturingMrpJobIsRunning}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |