Apply slightly modified patch from jira issue, fixed some typo (OFBIZ-9607) Thanks Suraj Khurana and Rohit Rai for your contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806326 13f79535-47bb-0310-9956-ffa450edef68
170 lines
9.2 KiB
XML
170 lines
9.2 KiB
XML
<?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="CommonMarketReportDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Reports"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<!-- do check for MARKETING, _VIEW permission -->
|
|
<condition>
|
|
<if-has-permission permission="MARKETING" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.MarketingViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="MarketingReportList">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="MarketingReports"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonMarketReportDecorator">
|
|
<decorator-section name="body">
|
|
<container style="h1">
|
|
<label text="${uiLabelMap.MarketingReports}"/>
|
|
</container>
|
|
<container style="lefthalf">
|
|
<screenlet title="${uiLabelMap.MarketingTrackingCodeReportTitle}">
|
|
<include-form name="TrackingCodeReportOptions" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.MarketingEmailStatusReport}">
|
|
<include-form name="EmailStatusOptions" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
</container>
|
|
<container style="righthalf">
|
|
<screenlet title="${uiLabelMap.MarketingCampaignReportTitle}">
|
|
<include-form name="MarketingCampaignOptions" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.MarketingPartyStatusReport}">
|
|
<include-form name="PartyStatusOptions" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="TrackingCodeReport">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="MarketingTrackingCodeReportTitle"/>
|
|
<property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="fromDate" from-field="requestParameters.fromDate" type="Timestamp"/>
|
|
<set field="thruDate" from-field="requestParameters.thruDate" type="Timestamp"/>
|
|
<set field="trackingCodeId" from-field="requestParameters.trackingCodeId"/>
|
|
<script location="component://marketing/groovyScripts/marketing/reports/TrackingCodeReport.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonMarketReportDecorator">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.MarketingTrackingCodeReportTitle} ${uiLabelMap.CommonFrom} ${parameters.fromDate} ${uiLabelMap.CommonThru} ${parameters.thruDate}">
|
|
<include-form name="TrackingCodeReport" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="MarketingCampaignReport">
|
|
<section>
|
|
<actions>
|
|
<set field="title" from-field="uiLabelMap.MarketingTrackingCodeReportTitle"/>
|
|
<property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="fromDate" from-field="requestParameters.fromDate" type="Timestamp"/>
|
|
<set field="thruDate" from-field="requestParameters.thruDate" type="Timestamp"/>
|
|
<script location="component://marketing/groovyScripts/marketing/reports/MarketingCampaignReport.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonMarketReportDecorator">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.MarketingCampaignReportTitle} ${uiLabelMap.CommonFrom} ${parameters.fromDate} ${uiLabelMap.CommonThru} ${parameters.thruDate}">
|
|
<include-form name="MarketCampaignReport" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name= "EmailStatusReport">
|
|
<section>
|
|
<actions>
|
|
<set field="title" from-field="uiLabelMap.MarketingEmailStatusReport"/>
|
|
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
|
|
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
|
|
<set field="statusId" from-field="parameters.statusId" type="String"/>
|
|
<set field="partyIdFrom" from-field="parameters.partyIdFrom" type="String"/>
|
|
<set field="partyIdTo" from-field="parameters.partyIdTo" type="String"/>
|
|
<set field="roleStatusId" from-field="parameters.roleStatusId" type="String"/>
|
|
<script location="component://marketing/groovyScripts/marketing/reports/EmailStatusReport.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonMarketReportDecorator">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.MarketingEmailStatusReport}">
|
|
<include-form name="EmailStatusReport" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name= "PartyStatusReport">
|
|
<section>
|
|
<actions>
|
|
<set field="title" from-field="uiLabelMap.MarketingPartyStatusReport"/>
|
|
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
|
|
<set field="statusDate" from-field="parameters.statusDate" type="Timestamp"/>
|
|
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
|
|
<set field="contactListId" from-field="parameters.contactListId" type="String"/>
|
|
<set field="statusId" from-field="parameters.statusId" type="String"/>
|
|
<script location="component://marketing/groovyScripts/marketing/reports/PartyStatusReport.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonMarketReportDecorator">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.MarketingPartyStatusReport}">
|
|
<include-form name="PartyStatusReport" location="component://marketing/widget/ReportForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|