Moved Birt demos in the Example application. (OFBIZ-3352)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892633 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bruno Busco
2009-12-20 18:22:09 +00:00
parent bfeb62aada
commit 63ebc81a33
18 changed files with 1393 additions and 2846 deletions
@@ -0,0 +1,41 @@
<?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.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="EditMail" type="single" target="sendBirtMail">
<field name="sendFrom"><text/></field>
<field name="sendTo"><text/></field>
<field name="subject"><text/></field>
<field name="birtReportLocation" tooltip="Example is component://example/webapp/birt/report/product.rptdesign"><text/></field>
<field name="birtContentType">
<drop-down>
<option key="text/html" description="text/html"/>
<option key="application/pdf" description="application/pdf"/>
<option key="application/vnd.ms-excel" description="application/vnd.ms-excel"/>
<option key="application/vnd.ms-word" description="application/vnd.ms-word"/>
<option key="application/vnd.ms-powerpoint" description="application/vnd.ms-powerpoint"/>
</drop-down>
</field>
<field name="attachmentName"><text/></field>
<field name="sendButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
</forms>
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="main">
<section>
<actions>
</actions>
<widgets>
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<label style="h3" text="BIRT is an open source Eclipse-based reporting system that integrates with any OFBiz application to produce compelling reports including graphical presentations like pie and bar charts."/>
<label style="h3" text="This application provides you with a sample product report."/>
<label style="h3" text="See the help option how to create your own OFBiz intergrated reports."/>
<link style="h3" text="or see the Birt home for more information" target="http://eclipse.org/birt/phoenix/intro/" url-mode="plain" target-window="_blank_"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="Report">
<section>
<actions>
<set field="tabButtonItem" value="Report"/>
</actions>
<widgets>
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<screenlet title="Using report tag">
<platform-specific>
<html>
<html-template location="component://example/webapp/birt/report.ftl"/>
</html>
</platform-specific>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditMail">
<section>
<actions>
<set field="tabButtonItem" value="Mail"/>
</actions>
<widgets>
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<screenlet title="Send BIRT report by mail">
<include-form location="component://example/widget/example/BirtForms.xml" name="EditMail"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>
@@ -202,6 +202,43 @@ under the License.
</section>
</screen>
<screen name="CommonBirtDecorator">
<section>
<actions>
<set field="headerItem" value="Birt"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="pre-body">
<section>
<!-- do check for WEBTOOLS, _VIEW permission -->
<condition>
<if-has-permission permission="ENTITY_MAINT"/>
</condition>
<widgets>
<include-menu name="BirtTabBar" location="component://example/widget/example/ExampleMenus.xml"/>
</widgets>
</section>
</decorator-section>
<decorator-section name="body">
<section>
<!-- do check for WEBTOOLS, _VIEW permission -->
<condition>
<if-has-permission permission="ENTITY_MAINT"/>
</condition>
<widgets>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.WebtoolsPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="main">
<!-- This is the screen for the Main page in the Example component. A common pattern
in OFBiz is to have each component include a Main page as a starting point for
@@ -36,6 +36,10 @@ under the License.
<link target="ExampleGeoLocationPointSet1">
</link>
</menu-item>
<menu-item name="Birt" title="${uiLabelMap.Birt}">
<link target="BirtMain">
</link>
</menu-item>
</menu>
<menu name="EditExample" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
@@ -87,4 +91,11 @@ under the License.
</link>
</menu-item>
</menu>
<menu name="BirtTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="Report" title="${uiLabelMap.ExampleBirtReport}"><link target="Report"/></menu-item>
<menu-item name="Export" title="${uiLabelMap.ExampleBirtViewHandler}"><link target="ViewHandler"/></menu-item>
<menu-item name="Mail" title="${uiLabelMap.ExampleBirtMail}"><link target="Mail"/></menu-item>
</menu>
</menus>