Package com.projity.pm.assignment.functor

Examples of com.projity.pm.assignment.functor.WorkFunctor


   * @param clause to fill in
   * @return work field functor
   */
  AssignmentFieldFunctor work(SelectFrom clause) {
    ContourBucketIntervalGenerator contour = contourGeneratorInstance(WORK);
    WorkFunctor workF = WorkFunctor.getInstance(this, contour.getWorkCalendar(), contour, detail.calcOvertimeUnits());
    clause.select(workF).from(contour);
    return workF;
  }
View Full Code Here


   * @return The functor to use to calculate cost
   */
  private AssignmentFieldFunctor cost(SelectFrom clause, boolean all) {
    if (detail.getCostContour().isPersonal()) { // in the case where a cost contour has already been saved, use it
      ContourBucketIntervalGenerator costContour = contourGeneratorInstance(COST);
      WorkFunctor workF = WorkFunctor.getInstance(this, getEffectiveWorkCalendar(), costContour, detail.calcOvertimeUnits()); // note that is is a work contour
      clause.select(workF).from(costContour);
      return workF;
    } else {
      boolean prorated = isProratedCost();
      // if prorated, or if calculating a total, then treat as prorated
View Full Code Here

TOP

Related Classes of com.projity.pm.assignment.functor.WorkFunctor

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.