From c28b2bf0ca74ed2fed8be2dfc2996cbd5dddd2e6 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sun, 18 Oct 2009 13:15:59 +0000 Subject: [PATCH] A patch from Pradeep Ruhil "HR Leave Enhancement " (https://issues.apache.org/jira/browse/OFBIZ-2938) - OFBIZ-2938 In this patch we are doing enhancement in HumanResource Leave Module. Initially we can only create new leave application for a partyId. But there was not functionality available for approval of leave. So in this patch we have given functionality for Leave approval as well as leave creation. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826429 13f79535-47bb-0310-9956-ffa450edef68 --- .../humanres/config/HumanResUiLabels.xml | 30 ++++ .../humanres/data/HumanResTypeData.xml | 13 +- .../humanres/entitydef/entitymodel.xml | 27 ++- .../org/ofbiz/humanres/HumanResServices.xml | 38 +++- applications/humanres/servicedef/services.xml | 55 +++++- .../webapp/humanres/WEB-INF/controller.xml | 65 ++++++- .../humanres/widget/EmplLeaveScreens.xml | 142 +++++++++------ .../humanres/widget/EmployeeScreens.xml | 4 +- .../widget/GlobalHRSettingScreens.xml | 44 +++++ .../humanres/widget/LookupScreens.xml | 18 ++ applications/humanres/widget/Menus.xml | 22 +++ .../humanres/widget/forms/EmplLeaveForms.xml | 169 +++++++++++++----- .../humanres/widget/forms/EmployeeForms.xml | 25 ++- .../widget/forms/GlobalHRSettingForms.xml | 46 +++++ .../humanres/widget/forms/LookupForms.xml | 20 +++ 15 files changed, 594 insertions(+), 124 deletions(-) diff --git a/applications/humanres/config/HumanResUiLabels.xml b/applications/humanres/config/HumanResUiLabels.xml index 8d3aa6a3e6..b6637cc2f8 100644 --- a/applications/humanres/config/HumanResUiLabels.xml +++ b/applications/humanres/config/HumanResUiLabels.xml @@ -1873,4 +1873,34 @@ Find Training Approvals + + EmplLeave Reason Type + + + Add Employee Leave Reason + + + Leave Approval + + + Lookup LeaveApp + + + Edit Leave Approval Status + + + Current Leave + + + Employee Leave + + + Leave Type + + + Reason Type + + + Approver Id + diff --git a/applications/humanres/data/HumanResTypeData.xml b/applications/humanres/data/HumanResTypeData.xml index aea11d1d99..706c221ae9 100644 --- a/applications/humanres/data/HumanResTypeData.xml +++ b/applications/humanres/data/HumanResTypeData.xml @@ -52,6 +52,10 @@ under the License. + + + + @@ -101,8 +105,10 @@ under the License. - - + + + + @@ -142,5 +148,8 @@ under the License. + + + diff --git a/applications/humanres/entitydef/entitymodel.xml b/applications/humanres/entitydef/entitymodel.xml index 9f2b83b113..63e12b4998 100644 --- a/applications/humanres/entitydef/entitymodel.xml +++ b/applications/humanres/entitydef/entitymodel.xml @@ -430,21 +430,26 @@ under the License. + + + + - - - - + + - + + + + @@ -934,4 +939,16 @@ under the License. + + + + + + + + + + diff --git a/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml b/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml index 82427ab206..6094ea74ad 100644 --- a/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml +++ b/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml @@ -648,10 +648,13 @@ - + + + + @@ -662,6 +665,11 @@ + + + + + @@ -863,4 +871,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/applications/humanres/servicedef/services.xml b/applications/humanres/servicedef/services.xml index 61857563c5..1a70e1b092 100644 --- a/applications/humanres/servicedef/services.xml +++ b/applications/humanres/servicedef/services.xml @@ -664,12 +664,18 @@ under the License. + Create Employee Leave - + + + + + + + + + + + + + Delete AgreementEmploymentAppl + + + + Create Valid LeaveType @@ -892,5 +910,38 @@ under the License. - + + + Create Valid Leave Reason Type + + + + + + + + Update Valid Leave Reason Type + + + + + + + + Delete Valid Leave Reason Type + + + + + + Update Leave Approval Status + + + + + diff --git a/applications/humanres/webapp/humanres/WEB-INF/controller.xml b/applications/humanres/webapp/humanres/WEB-INF/controller.xml index f4ed59987e..a1a9f843be 100644 --- a/applications/humanres/webapp/humanres/WEB-INF/controller.xml +++ b/applications/humanres/webapp/humanres/WEB-INF/controller.xml @@ -396,9 +396,15 @@ under the License. - + - + + + + + + + @@ -821,14 +827,14 @@ under the License. - - + + - - - + + + @@ -1020,6 +1026,42 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1037,6 +1079,7 @@ under the License. + @@ -1054,6 +1097,7 @@ under the License. + @@ -1124,8 +1168,11 @@ under the License. - + + + + @@ -1145,4 +1192,4 @@ under the License. - + \ No newline at end of file diff --git a/applications/humanres/widget/EmplLeaveScreens.xml b/applications/humanres/widget/EmplLeaveScreens.xml index 61ba3bf885..fb38ad3c13 100644 --- a/applications/humanres/widget/EmplLeaveScreens.xml +++ b/applications/humanres/widget/EmplLeaveScreens.xml @@ -29,92 +29,118 @@ + + + + - - -
- - - - - -
-
- - - - - - -
+ +
+ + + + + + +
+ + + + + +
+
+ + + + + + +
+
+
- -
- - - - - - - - - -
- - - -
-
-
-
-
-
-
- +
- - - - - + + + - + + - + -
- +
- - - - - + + + + + + + + - + - - + +
+ + + + + + + + + + + + + + + + +
+
+
+
+
+
+ +
+ + + + + + + + + + + + - diff --git a/applications/humanres/widget/EmployeeScreens.xml b/applications/humanres/widget/EmployeeScreens.xml index 8f3e09911c..749736ac8d 100644 --- a/applications/humanres/widget/EmployeeScreens.xml +++ b/applications/humanres/widget/EmployeeScreens.xml @@ -274,8 +274,8 @@ under the License. - - + + diff --git a/applications/humanres/widget/GlobalHRSettingScreens.xml b/applications/humanres/widget/GlobalHRSettingScreens.xml index cb94836664..610009f648 100644 --- a/applications/humanres/widget/GlobalHRSettingScreens.xml +++ b/applications/humanres/widget/GlobalHRSettingScreens.xml @@ -226,4 +226,48 @@
+ +
+ + + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + +
+
diff --git a/applications/humanres/widget/LookupScreens.xml b/applications/humanres/widget/LookupScreens.xml index 34d5dbb85f..5469e490fc 100644 --- a/applications/humanres/widget/LookupScreens.xml +++ b/applications/humanres/widget/LookupScreens.xml @@ -308,4 +308,22 @@
+ +
+ + + + + + + + + + + + + + +
+
diff --git a/applications/humanres/widget/Menus.xml b/applications/humanres/widget/Menus.xml index c4b7a43990..72bed8dfa2 100644 --- a/applications/humanres/widget/Menus.xml +++ b/applications/humanres/widget/Menus.xml @@ -289,4 +289,26 @@ + + + + + + + + + + + + + + + + + + diff --git a/applications/humanres/widget/forms/EmplLeaveForms.xml b/applications/humanres/widget/forms/EmplLeaveForms.xml index 89122b42e8..204a36afca 100644 --- a/applications/humanres/widget/forms/EmplLeaveForms.xml +++ b/applications/humanres/widget/forms/EmplLeaveForms.xml @@ -23,72 +23,161 @@
+ + + + + + + + + + + + + + + + -
+ + - - + - - - - - - - - - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
- - - - - - - - + + + + + + + - + + + + + + + + + + -
+ + + + + + + + + + + + + + + + + +
- + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + - - -
- - - - + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/applications/humanres/widget/forms/EmployeeForms.xml b/applications/humanres/widget/forms/EmployeeForms.xml index 282bd45095..24c880ce8a 100644 --- a/applications/humanres/widget/forms/EmployeeForms.xml +++ b/applications/humanres/widget/forms/EmployeeForms.xml @@ -185,14 +185,25 @@
- + - + + + - + + + + + + + + + + widget-style="smallSubmit">
@@ -203,10 +214,14 @@ + + + + - - + +
diff --git a/applications/humanres/widget/forms/GlobalHRSettingForms.xml b/applications/humanres/widget/forms/GlobalHRSettingForms.xml index 724edfbd2c..e6b32ce909 100644 --- a/applications/humanres/widget/forms/GlobalHRSettingForms.xml +++ b/applications/humanres/widget/forms/GlobalHRSettingForms.xml @@ -260,4 +260,50 @@ under the License. +
+ + + + + +
+ + + + + + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + diff --git a/applications/humanres/widget/forms/LookupForms.xml b/applications/humanres/widget/forms/LookupForms.xml index 4e0f326c05..6b340de0dd 100644 --- a/applications/humanres/widget/forms/LookupForms.xml +++ b/applications/humanres/widget/forms/LookupForms.xml @@ -374,4 +374,24 @@ under the License. +
+ + + + + +
+ + + + + + + + + + +