Package org.zkoss.ganttz.data

Examples of org.zkoss.ganttz.data.GanttDate


            public void doAction() {
                int i = 1;
                final int total = reassignations.size();
                for (final WithAssociatedEntity each : reassignations) {
                    Task ganttTask = each.ganntTask;
                    GanttDate previousStart = ganttTask.getBeginDate();
                    GanttDate previousEnd = ganttTask.getEndDate();

                    transactionService
                            .runOnReadOnlyTransaction(reassignmentTransaction(each));
                    diagramGraph.enforceRestrictions(each.ganntTask);
                    ganttTask.enforceDependenciesDueToPositionPotentiallyModified();
View Full Code Here


                if (deadline != null) {
                    return Collections
                            .singletonList(lessOrEqualThan(toGantt(deadline)));
                }
            case FINISH_NOT_LATER_THAN:
                GanttDate date = toGantt(endConstraint.getConstraintDate());
                return Collections.singletonList(lessOrEqualThan(date));
            }
        }
        return Collections.emptyList();
    }
View Full Code Here

        private void updateLimitingResourceQueueElementDates(Task task) {
            try {
                LimitingResourceQueueElement limiting = task
                        .getAssociatedLimitingResourceQueueElementIfAny();

                GanttDate earliestStart = resolveConstraints(task, Point.START);
                GanttDate earliestEnd = resolveConstraints(task, Point.END);

                limiting.updateDates(
                        TaskElementAdapter.toIntraDay(earliestStart),
                        TaskElementAdapter.toIntraDay(earliestEnd));
            } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.data.GanttDate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.