diff --git a/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy b/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy index 923e27746b..bdceb4504a 100644 --- a/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy +++ b/specialpurpose/projectmgr/groovyScripts/EditWeekTimesheet.groovy @@ -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); diff --git a/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy b/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy index a17042ff23..486b18c8e7 100644 --- a/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy +++ b/specialpurpose/projectmgr/groovyScripts/GanttChart.groovy @@ -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; diff --git a/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy b/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy index e7bf7798c0..b8f6bf1166 100644 --- a/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy +++ b/specialpurpose/projectmgr/groovyScripts/GetLastRequestAssignment.groovy @@ -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(); diff --git a/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy b/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy index 88933c38e4..53bb0965aa 100644 --- a/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy +++ b/specialpurpose/projectmgr/groovyScripts/GetProjectId.groovy @@ -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; diff --git a/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy b/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy index 7dd1f4bce1..6e418f7cdb 100644 --- a/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy +++ b/specialpurpose/projectmgr/groovyScripts/ListCurrentProjects.groovy @@ -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"), diff --git a/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy b/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy index 6e33928d4d..40919932ee 100644 --- a/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy +++ b/specialpurpose/projectmgr/groovyScripts/ListResourceBillingHours.groovy @@ -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 = []; diff --git a/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy b/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy index ed1e23acd5..eae354f0d1 100644 --- a/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy +++ b/specialpurpose/projectmgr/groovyScripts/ProjectBilling.groovy @@ -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 = diff --git a/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy b/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy index 1d26a4bca8..cb71e02854 100644 --- a/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy +++ b/specialpurpose/projectmgr/groovyScripts/ProjectIsBillable.groovy @@ -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;