svn commit: r1836906 - in /ofbiz/ofbiz-framework/trunk/applications/product: servicedef/services_facility.xml webapp/facility/WEB-INF/controller.xml widget/facility/FacilityForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1836906 - in /ofbiz/ofbiz-framework/trunk/applications/product: servicedef/services_facility.xml webapp/facility/WEB-INF/controller.xml widget/facility/FacilityForms.xml

adityasharma
Author: adityasharma
Date: Sat Jul 28 13:28:46 2018
New Revision: 1836906

URL: http://svn.apache.org/viewvc?rev=1836906&view=rev
Log:
Improved: Add Option to update Facility Party Role on Edit Facility Party Role screen.
(OFBIZ-9085)
Manually applied the outdated patch. Slightly modified the patch changes, uiLabel was missing for title of 'thruDate'.
Thanks Akshay Modak for your contribution

Modified:
    ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_facility.xml
    ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
    ofbiz/ofbiz-framework/trunk/applications/product/widget/facility/FacilityForms.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_facility.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_facility.xml?rev=1836906&r1=1836905&r2=1836906&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_facility.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_facility.xml Sat Jul 28 13:28:46 2018
@@ -1128,6 +1128,12 @@ under the License.
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
         <override name="fromDate" optional="true"/>
     </service>
+    <service name="updateFacilityParty" default-entity-name="FacilityParty" engine="entity-auto" invoke="update" auth="true">
+        <description>Update Party From Facility</description>
+        <permission-service service-name="facilityGenericPermission" main-action="UPDATE"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+    </service>
     <service name="removePartyFromFacility" default-entity-name="FacilityParty" engine="entity-auto" invoke="expire" auth="true">
         <description>Remove Party From Facility</description>
         <permission-service service-name="facilityGenericPermission" main-action="DELETE"/>

Modified: ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml?rev=1836906&r1=1836905&r2=1836906&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml Sat Jul 28 13:28:46 2018
@@ -368,6 +368,12 @@ under the License.
         <response name="success" type="view" value="EditFacilityParties"/>
         <response name="error" type="view" value="EditFacilityParties"/>
     </request-map>
+    <request-map uri="updateFacilityParty">
+        <security https="true" auth="true"/>
+        <event type="service" path="" invoke="updateFacilityParty"/>
+        <response name="success" type="view" value="EditFacilityParties"/>
+        <response name="error" type="view" value="EditFacilityParties"/>
+    </request-map>
     <request-map uri="removePartyFromFacility">
         <security https="true" auth="true"/>
         <event type="service" path="" invoke="removePartyFromFacility"/>

Modified: ofbiz/ofbiz-framework/trunk/applications/product/widget/facility/FacilityForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/widget/facility/FacilityForms.xml?rev=1836906&r1=1836905&r2=1836906&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/widget/facility/FacilityForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/widget/facility/FacilityForms.xml Sat Jul 28 13:28:46 2018
@@ -632,7 +632,7 @@ under the License.
     </form>
 
     <!-- FacilityParty -->
-    <form name="EditFacilityParties" type="list" paginate-target="EditFacilityParties" title="" list-name="facilityParties"
+    <form name="EditFacilityParties" type="list" paginate-target="EditFacilityParties" title="" list-name="facilityParties" target="updateFacilityParty"
         header-row-style="header-row-2" odd-row-style="alternate-row" default-table-style="basic-table hover-bar" separate-columns="true">
         <field name="facilityId"><hidden/></field>
         <field name="partyId">
@@ -641,9 +641,12 @@ under the License.
         <field name="roleTypeId">
             <display-entity entity-name="RoleType"/>
         </field>
-        <field name="fromDate" title="${uiLabelMap.CommonFromDate}"><date-time/></field>
+        <field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display/></field>
         <field name="thruDate" title="${uiLabelMap.CommonThruDate}"><date-time/></field>
-        <field name="deleteLink" title=" " widget-style="buttontext">
+        <field name="updateButton" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext">
+            <submit button-type="button"/>
+        </field>
+        <field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
             <hyperlink description="${uiLabelMap.CommonDelete}" target="removePartyFromFacility" also-hidden="false">
                 <parameter param-name="facilityId"/>
                 <parameter param-name="partyId"/>