ilscipio/scipio-erp

View on GitHub
applications/marketing/widget/MarketingReportScreens.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
    <screen name="CommonMarketReportDecorator">
        <section>
            <actions>
                <set field="activeSubMenuItem" from-field="activeSubMenuItem" default-value="Reports"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonMarketingAppDecorator" location="${parameters.mainDecoratorLocation}">
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="MarketingReportList">
        <section>
            <actions>
                <set field="titleProperty" value="MarketingReports"/>
                <!--  <script location="component://order/webapp/ordermgr/WEB-INF/actions/reports/ReportList.groovy"/>-->
            </actions>
            <widgets>
                <decorator-screen name="CommonMarketReportDecorator">
                    <decorator-section name="body">
                        <container style="h2">
                            <label text="${uiLabelMap.MarketingReports}"/>
                        </container>
                        <container style="${styles.grid_large}6">
                            <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="${styles.grid_large}6">
                            <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/webapp/marketing/WEB-INF/actions/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" value="${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/webapp/marketing/WEB-INF/actions/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" value="${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/webapp/marketing/WEB-INF/actions/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" value="${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/webapp/marketing/WEB-INF/actions/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>