| <?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="CommonCalendarDecorator"> |
| <section> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <!-- do check for MANUFACTURING, _VIEW permission --> |
| <condition> |
| <if-has-permission permission="MANUFACTURING" action="_VIEW"/> |
| </condition> |
| <widgets> |
| <include-menu name="CalendarTabBar" location="component://manufacturing/widget/manufacturing/ManufacturingMenus.xml"/> |
| <decorator-section-include name="body"/> |
| </widgets> |
| <fail-widgets> |
| <label style="h3">${uiLabelMap.ManufacturingViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCalendar"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCalendar"/> |
| <set field="tabButtonItem" value="calendar"/> |
| <!--<set field="labelTitleProperty" value="ProductProductBom"/>--> |
| <set field="headerItem" value="calendar"/> |
| |
| <script location="component://manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendar.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCalendarDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <platform-specific> |
| <html><html-template location="component://manufacturing/webapp/manufacturing/routing/EditCalendar.ftl"/></html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="FindCalendar"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleFindCalendar"/> |
| <set field="tabButtonItem" value="Calendar"/> |
| <set field="headerItem" value="calendar"/> |
| <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/> |
| <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/> |
| |
| <entity-condition list="techDataCalendars" entity-name="TechDataCalendar"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCalendarDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleFindCalendar}"> |
| <container style="button-bar"> |
| <link style="buttontext" target="EditCalendar" text="${uiLabelMap.ManufacturingNewCalendar}"/> |
| </container> |
| <include-form name="ListTechDataCalendars" location="component://manufacturing/widget/manufacturing/CalendarForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="ListCalendarWeek"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleListCalendarWeek"/> |
| <set field="tabButtonItem" value="CalendarWeek"/> |
| <set field="headerItem" value="calendar"/> |
| <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/> |
| <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/> |
| |
| <entity-condition list="calendarWeeks" entity-name="TechDataCalendarWeek"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCalendarDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleListCalendarWeek}"> |
| <container style="button-bar"> |
| <link style="buttontext" target="EditCalendarWeek" text="${uiLabelMap.ManufacturingNewCalendarWeek}"/> |
| </container> |
| <include-form name="ListCalendarWeek" location="component://manufacturing/widget/manufacturing/CalendarForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCalendarWeek"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCalendarWeek"/> |
| <set field="tabButtonItem" value="CalendarWeek"/> |
| <set field="headerItem" value="calendar"/> |
| |
| <entity-one entity-name="TechDataCalendarWeek" value-field="calendarWeek"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCalendarDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleEditCalendarWeek}"> |
| <container style="button-bar"> |
| <link style="buttontext" target="EditCalendarWeek" text="${uiLabelMap.ManufacturingNewCalendarWeek}"/> |
| </container> |
| <include-form name="UpdateCalendarWeek" location="component://manufacturing/widget/manufacturing/CalendarForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCalendarExceptionWeek"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCalendarExceptionWeek"/> |
| <set field="tabButtonItem" value="calendarExceptionWeek"/> |
| <!--<set field="labelTitleProperty" value="ProductProductBom"/>--> |
| <set field="headerItem" value="calendar"/> |
| |
| <script location="component://manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionWeek.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCalendarDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <platform-specific> |
| <html><html-template location="component://manufacturing/webapp/manufacturing/routing/EditCalendarExceptionWeek.ftl"/></html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCalendarExceptionDay"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCalendarExceptionDay"/> |
| <set field="tabButtonItem" value="calendarExceptionDay"/> |
| <!--<set field="labelTitleProperty" value="ProductProductBom"/>--> |
| <set field="headerItem" value="calendar"/> |
| |
| <script location="component://manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCalendarDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <platform-specific> |
| <html><html-template location="component://manufacturing/webapp/manufacturing/routing/EditCalendarExceptionDay.ftl"/></html> |
| </platform-specific> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |