Author: taher
Date: Fri Aug 26 11:37:52 2016
New Revision: 1757822
URL: http://svn.apache.org/viewvc?rev=1757822&view=rev
Log:
WorkEffortAttribute CRUD screens patch by Leila Mekika - OFBIZ-7973
This commit follows another commit in which the CRUD services for
WorkEffortAttribute were also submitted by Leila (thank you). I made
some minor modifications to formatting and added Arabic translation
to the submitted labels in the patch.
Modified:
ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml
ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml
ofbiz/trunk/applications/workeffort/widget/WorkEffortForms.xml
ofbiz/trunk/applications/workeffort/widget/WorkEffortMenus.xml
ofbiz/trunk/applications/workeffort/widget/WorkEffortScreens.xml
Modified: ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml?rev=1757822&r1=1757821&r2=1757822&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml (original)
+++ ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml Fri Aug
26 11:37:52 2016
@@ -921,7 +921,13 @@
<value xml:lang="zh">æ·»å 人工æå¡ææ´¾è´¹ç</value>
<value xml:lang="zh-TW">æ°å¢å·¥ä½æå
¥ææ´¾è²»ç</value>
</property>
+ <property key="PageTitleAddWorkEffortAttribute">
+ <value xml:lang="ar">Ø§Ø¶Ø§ÙØ© سÙ
Ø© ÙÙ
جÙÙØ¯ Ø§ÙØ¹Ù
Ù</value>
+ <value xml:lang="en">Add Work Effort Attribute</value>
+ <value xml:lang="fr">Ajouter un attribut à la tâche</value>
+ </property>
<property key="PageTitleAddWorkEffortCommEvent">
+ <value xml:lang="ar">Ø§Ø¶Ø§ÙØ© اتصا٠ÙÙ
جÙÙØ¯ Ø§ÙØ¹Ù
Ù</value>
<value xml:lang="de">Arbeitseinsatz Kommunikationsereignis
hinzufügen</value>
<value xml:lang="en">Add Work Effort Communication Event</value>
<value xml:lang="es">Añadir evento de comunicación a esfuerzo de
trabajo</value>
@@ -1436,6 +1442,11 @@
<value xml:lang="zh">人工æå¡ææ´¾è´¹ç</value>
<value xml:lang="zh-TW">工使å
¥ææ´¾è²»ç</value>
</property>
+ <property key="PageTitleListWorkEffortAttributes">
+ <value xml:lang="ar">سÙ
ات Ù
جÙÙØ¯ Ø§ÙØ¹Ù
Ù</value>
+ <value xml:lang="en">Work Effort Attributes</value>
+ <value xml:lang="fr">Attributs de la tâche</value>
+ </property>
<property key="PageTitleListWorkEffortCommEvents">
<value xml:lang="en">Work Effort Communication Events</value>
<value xml:lang="es">Eventos de comunicación</value>
@@ -1931,6 +1942,11 @@
<value xml:lang="zh">åå è
</value>
<value xml:lang="zh-TW">åå è
</value>
</property>
+ <property key="WorkEffortAttributes">
+ <value xml:lang="ar">سÙ
ات</value>
+ <value xml:lang="en">Attributes</value>
+ <value xml:lang="fr">Attributs</value>
+ </property>
<property key="WorkEffortBanner3">
<value xml:lang="de">Existierende Kommunikationsereignis ID unten
eingeben</value>
<value xml:lang="en">Enter existing Communication Event Id
below</value>
Modified:
ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml?rev=1757822&r1=1757821&r2=1757822&view=diff
==============================================================================
---
ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml
(original)
+++
ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml
Fri Aug 26 11:37:52 2016
@@ -268,6 +268,30 @@ under the License.
<response name="error" type="view" value="ListWorkEffortQuotes"/>
</request-map>
+ <!-- WorkEffort Attribute request mappings -->
+ <request-map uri="ListWorkEffortAttributes">
+ <security https="true" auth="true"/>
+ <response name="success" type="view" value="ListWorkEffortAttributes"/>
+ </request-map>
+ <request-map uri="createWorkEffortAttribute">
+ <security https="true" auth="true"/>
+ <event type="service" path="" invoke="createWorkEffortAttribute"/>
+ <response name="success" type="view" value="ListWorkEffortAttributes"/>
+ <response name="error" type="view" value="ListWorkEffortAttributes"/>
+ </request-map>
+ <request-map uri="updateWorkEffortAttribute">
+ <security https="true" auth="true"/>
+ <event type="service" path="" invoke="updateWorkEffortAttribute"/>
+ <response name="success" type="view" value="ListWorkEffortAttributes"/>
+ <response name="error" type="view" value="ListWorkEffortAttributes"/>
+ </request-map>
+ <request-map uri="deleteWorkEffortAttribute">
+ <security https="true" auth="true"/>
+ <event type="service" path="" invoke="deleteWorkEffortAttribute"/>
+ <response name="success" type="view" value="ListWorkEffortAttributes"/>
+ <response name="error" type="view" value="ListWorkEffortAttributes"/>
+ </request-map>
+
<!-- WorkEffort Requirement request mappings -->
<request-map uri="ListWorkEffortRequirements"><security https="true"
auth="true"/><response name="success" type="view"
value="ListWorkEffortRequirements"/></request-map>
<request-map uri="createWorkEffortRequirement">
@@ -696,6 +720,7 @@ under the License.
<view-map name="ListWorkEffortFixedAssetAssigns" type="screen"
page="component://workeffort/widget/WorkEffortScreens.xml#ListWorkEffortFixedAssetAssigns"/>
<view-map name="ListWorkEffortPartyAssigns" type="screen"
page="component://workeffort/widget/WorkEffortScreens.xml#ListWorkEffortPartyAssigns"/>
<view-map name="EditWorkEffortRates" type="screen"
page="component://workeffort/widget/WorkEffortScreens.xml#EditWorkEffortRates"/>
+ <view-map name="ListWorkEffortAttributes" type="screen"
page="component://workeffort/widget/WorkEffortScreens.xml#ListWorkEffortAttributes"/>
<view-map name="ListWorkEffortCommEvents" type="screen"
page="component://workeffort/widget/WorkEffortScreens.xml#ListWorkEffortCommEvents"/>
<view-map name="ListWorkEffortShopLists" type="screen"
page="component://workeffort/widget/WorkEffortScreens.xml#ListWorkEffortShopLists"/>
Modified: ofbiz/trunk/applications/workeffort/widget/WorkEffortForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/widget/WorkEffortForms.xml?rev=1757822&r1=1757821&r2=1757822&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/widget/WorkEffortForms.xml (original)
+++ ofbiz/trunk/applications/workeffort/widget/WorkEffortForms.xml Fri Aug 26
11:37:52 2016
@@ -903,6 +903,36 @@ under the License.
<field name="submitButton"
title="${uiLabelMap.PageTitleAddWorkEffortTimeToNewInvoice}"
widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
+ <!-- WorkEffort Attribute -->
+ <form name="ListWorkEffortAttributes" target="updateWorkEffortAttribute"
+ type="list" header-row-style="header-row-2"
odd-row-style="alternate-row"
+ default-table-style="basic-table hover-bar">
+ <actions>
+ <entity-condition entity-name="WorkEffortAttribute">
+ <condition-expr field-name="workEffortId"
from-field="workEffortId"/>
+ </entity-condition>
+ </actions>
+ <auto-fields-service service-name="updateWorkEffortAttribute"
map-name="updateWorkEffortAttribute"/>
+ <field name="workEffortId"><hidden/></field>
+ <field name="attrName"><display/></field>
+ <field name="attrValue"><text/></field>
+ <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit
button-type="button"/></field>
+ <field name="deleteLink" title=" " widget-style="buttontext">
+ <hyperlink target="deleteWorkEffortAttribute"
description="${uiLabelMap.CommonDelete}" also-hidden="false">
+ <parameter param-name="workEffortId"/>
+ <parameter param-name="attrName"/>
+ </hyperlink>
+ </field>
+ </form>
+
+ <form name="EditWorkEffortAttribute" type="single"
+ default-map-name="workEffortAttribute"
target="createWorkEffortAttribute"
+ title="" header-row-style="header-row"
default-table-style="basic-table">
+ <auto-fields-service service-name="createWorkEffortAttribute"/>
+ <field name="workEffortId"><hidden/></field>
+ <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit
button-type="button"/></field>
+ </form>
+
<!-- WorkEffort Note -->
<form name="ListWorkEffortNotes" type="list" list-name="workEffortNotes"
header-row-style="header-row-2" odd-row-style="alternate-row"
default-table-style="basic-table hover-bar">
Modified: ofbiz/trunk/applications/workeffort/widget/WorkEffortMenus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/widget/WorkEffortMenus.xml?rev=1757822&r1=1757821&r2=1757822&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/widget/WorkEffortMenus.xml (original)
+++ ofbiz/trunk/applications/workeffort/widget/WorkEffortMenus.xml Fri Aug 26
11:37:52 2016
@@ -134,6 +134,11 @@ under the License.
<parameter param-name="workEffortId"/>
</link>
</menu-item>
+ <menu-item name="WorkEffortAttributes"
title="${uiLabelMap.WorkEffortAttributes}">
+ <link target="ListWorkEffortAttributes">
+ <parameter param-name="workEffortId"/>
+ </link>
+ </menu-item>
<menu-item name="WorkEffortEventReminders"
title="${uiLabelMap.WorkEffortEventReminders}">
<link target="listWorkEffortEventReminders">
<parameter param-name="workEffortId"/>
Modified: ofbiz/trunk/applications/workeffort/widget/WorkEffortScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/widget/WorkEffortScreens.xml?rev=1757822&r1=1757821&r2=1757822&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/widget/WorkEffortScreens.xml (original)
+++ ofbiz/trunk/applications/workeffort/widget/WorkEffortScreens.xml Fri Aug 26
11:37:52 2016
@@ -725,6 +725,27 @@ under the License.
</section>
</screen>
+ <screen name="ListWorkEffortAttributes">
+ <section>
+ <actions>
+ <set field="titleProperty"
value="PageTitleListWorkEffortAttributes"/>
+ <set field="labelTitleProperty" from-field="titleProperty"/>
+ <set field="tabButtonItem" value="WorkEffortAttributes"/>
+ <set field="workEffortId"
from-field="parameters.workEffortId"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonWorkEffortDecorator"
location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet id="AddWorkEffortEventAttribute"
title="${uiLabelMap.PageTitleAddWorkEffortAttribute}" collapsible="true">
+ <include-form name="EditWorkEffortAttribute"
location="component://workeffort/widget/WorkEffortForms.xml"/>
+ </screenlet>
+ <include-form name="ListWorkEffortAttributes"
location="component://workeffort/widget/WorkEffortForms.xml"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
<screen name="ListWorkEffortEventReminders">
<section>
<actions>