Examples of WorkFunctor


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

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

   * @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
Copyright © 2018 www.massapi.com. 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.