svn commit: r1765059 - /ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/

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

svn commit: r1765059 - /ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/

Mridul Pathak-5
Author: mridulpathak
Date: Sat Oct 15 13:26:58 2016
New Revision: 1765059

URL: http://svn.apache.org/viewvc?rev=1765059&view=rev
Log:
Improved: Removed unused imports from groovy files in projectmgr component.
(OFBIZ-8488)

Thanks: Gopal Yadav for contribution.

Modified:
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy
    ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy Sat Oct 15 13:26:58 2016
@@ -17,16 +17,13 @@
  * under the License.
  */
 
-import java.util.*;
-import java.lang.*;
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.base.util.UtilMisc;
-import org.apache.ofbiz.base.util.UtilValidate;
-import org.apache.ofbiz.base.util.UtilDateTime;
-import org.apache.ofbiz.entity.util.*;
-import org.apache.ofbiz.entity.condition.*;
-import java.sql.Timestamp;
+
+import org.apache.ofbiz.base.util.UtilDateTime
+import org.apache.ofbiz.base.util.UtilProperties
+import org.apache.ofbiz.entity.condition.EntityComparisonOperator
+import org.apache.ofbiz.entity.condition.EntityCondition
+import org.apache.ofbiz.entity.condition.EntityOperator
+import org.apache.ofbiz.entity.util.EntityUtil
 
 uiLabelMap = UtilProperties.getResourceBundleMap("ProjectMgrUiLabels", locale);
 

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy Sat Oct 15 13:26:58 2016
@@ -17,16 +17,11 @@
  * under the License.
  */
 
-import java.util.*;
-import java.lang.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.util.*;
-import org.apache.ofbiz.entity.condition.EntityCondition;
-import org.apache.ofbiz.entity.condition.EntityConditionList;
-import org.apache.ofbiz.entity.condition.EntityExpr;
-import org.apache.ofbiz.entity.condition.EntityOperator;
-import java.math.*;
+
+import org.apache.ofbiz.base.util.UtilDateTime
+import org.apache.ofbiz.base.util.UtilValidate
+import org.apache.ofbiz.entity.condition.EntityCondition
+import org.apache.ofbiz.entity.condition.EntityOperator
 
 projectId = parameters.projectId;
 userLogin = parameters.userLogin;
@@ -140,5 +135,6 @@ if (phases) {
         }
     }
 }
+
 context.phaseTaskList = ganttList;
 

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy Sat Oct 15 13:26:58 2016
@@ -18,8 +18,6 @@
  * under the License.
  */
 
-import org.apache.ofbiz.base.util.*;
-
 // get last request from this user and use that project/task assignment as default on the screen
 
 custRequestList = from("CustRequest").where("fromPartyId", fromPartyId).orderBy("-createdDate").queryList();

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy Sat Oct 15 13:26:58 2016
@@ -17,10 +17,7 @@
  * under the License.
  */
 
-import java.util.*;
-import java.lang.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.base.util.*;
+import org.apache.ofbiz.base.util.UtilValidate;
 
 if (parameters.workEffortId) {
     workEffortId = parameters.workEffortId;

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy Sat Oct 15 13:26:58 2016
@@ -17,7 +17,10 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.condition.*;
+
+import org.apache.ofbiz.entity.condition.EntityCondition
+import org.apache.ofbiz.entity.condition.EntityJoinOperator
+import org.apache.ofbiz.entity.condition.EntityOperator
 
 cond = EntityCondition.makeCondition([
         EntityCondition.makeCondition ("workEffortTypeId", EntityOperator.EQUALS, "PROJECT"),

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy Sat Oct 15 13:26:58 2016
@@ -17,13 +17,6 @@
  * under the License.
  */
 
-import java.util.*;
-import java.lang.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*;
-import org.apache.ofbiz.base.util.*;
-
 allProjects = select("workEffortId").from("WorkEffortAndPartyAssign").where("workEffortTypeId", "PROJECT", "partyId", parameters.partyId).orderBy("workEffortName").cache(true).queryList();
 
 projects = [];

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy Sat Oct 15 13:26:58 2016
@@ -18,11 +18,10 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*;
+
+import org.apache.ofbiz.base.util.UtilDateTime
+import org.apache.ofbiz.entity.condition.EntityCondition
+import org.apache.ofbiz.entity.condition.EntityOperator
 
 projectId = parameters.projectId;
 entryExprs =

Modified: ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy?rev=1765059&r1=1765058&r2=1765059&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy Sat Oct 15 13:26:58 2016
@@ -17,8 +17,6 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.util.EntityUtil;
-
 projectMembers = from("WorkEffortPartyAssignment").where("workEffortId", context.projectId).filterByDate().queryList();
 
 toPartyId = null;