org.kuali.kfs.module.bc.util
Class SalarySettingCalculator

java.lang.Object
  extended by org.kuali.kfs.module.bc.util.SalarySettingCalculator

public class SalarySettingCalculator
extends Object


Constructor Summary
SalarySettingCalculator()
           
 
Method Summary
static org.kuali.rice.kns.util.KualiInteger getAppointmentRequestedAmountTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested amount for the given appointment funding lines
static org.kuali.rice.kns.util.KualiInteger getAppointmentRequestedCsfAmountTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested csf amount for the given appointment funding lines
static BigDecimal getAppointmentRequestedCsfFteQuantityTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested csf full time employee quantity for the given appointment funding lines
static BigDecimal getAppointmentRequestedCsfStandardHoursTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested csf standard hours for the given appointment funding lines
static BigDecimal getAppointmentRequestedCsfTimePercentTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested csf time percent for the given appointment funding lines
static BigDecimal getAppointmentRequestedFteQuantityTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested full time employee quantity for the given appointment funding lines
static BigDecimal getAppointmentRequestedStandardHoursTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested standard hours for the given appointment funding lines
static BigDecimal getAppointmentRequestedTimePercentTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total requested time percent for the given appointment funding lines
static org.kuali.rice.kns.util.KualiInteger getCsfAmountTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total csf amount for the given appointment funding lines
static BigDecimal getCsfFullTimeEmploymentQuantityTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total csf full time employee quantity for the given appointment funding lines
static BigDecimal getCsfStandardHoursTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total csf standard hours for the given appointment funding lines
static BigDecimal getCsfTimePercentTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          calcaulte the total csf time percent for the given appointment funding lines
static List<PendingBudgetConstructionAppointmentFunding> getEffectiveAppointmentFundings(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
          Get a collection of PendingBudgetConstructionAppointmentFunding objects that are not purged and not excluded from total.
static org.kuali.rice.kns.util.KualiDecimal getPercentChange(org.kuali.rice.kns.util.KualiInteger baseAmount, org.kuali.rice.kns.util.KualiInteger requestedAmount)
          calculate the changing percent between the requested amount and the base amount
static BigDecimal getStandarHours(BigDecimal timePercent)
          calculate the standard working hours through the given time percent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SalarySettingCalculator

public SalarySettingCalculator()
Method Detail

getStandarHours

public static BigDecimal getStandarHours(BigDecimal timePercent)
calculate the standard working hours through the given time percent

Parameters:
timePercent - the given time percent
Returns:
the standard working hour calculated from the given time percent

getAppointmentRequestedCsfAmountTotal

public static org.kuali.rice.kns.util.KualiInteger getAppointmentRequestedCsfAmountTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested csf amount for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested csf amount for the given appointment funding lines

getAppointmentRequestedCsfTimePercentTotal

public static BigDecimal getAppointmentRequestedCsfTimePercentTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested csf time percent for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested csf time percent for the given appointment funding lines

getAppointmentRequestedCsfStandardHoursTotal

public static BigDecimal getAppointmentRequestedCsfStandardHoursTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested csf standard hours for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested csf standard hours for the given appointment funding lines

getAppointmentRequestedCsfFteQuantityTotal

public static BigDecimal getAppointmentRequestedCsfFteQuantityTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested csf full time employee quantity for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested csf full time employee quantity for the given appointment funding lines

getAppointmentRequestedAmountTotal

public static org.kuali.rice.kns.util.KualiInteger getAppointmentRequestedAmountTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested amount for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested amount for the given appointment funding lines

getAppointmentRequestedTimePercentTotal

public static BigDecimal getAppointmentRequestedTimePercentTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested time percent for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested time percent for the given appointment funding lines

getAppointmentRequestedStandardHoursTotal

public static BigDecimal getAppointmentRequestedStandardHoursTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested standard hours for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested standard hours for the given appointment funding lines

getAppointmentRequestedFteQuantityTotal

public static BigDecimal getAppointmentRequestedFteQuantityTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total requested full time employee quantity for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total requested full time employee quantity for the given appointment funding lines

getCsfAmountTotal

public static org.kuali.rice.kns.util.KualiInteger getCsfAmountTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total csf amount for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total csf amount for the given appointment funding lines

getCsfTimePercentTotal

public static BigDecimal getCsfTimePercentTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total csf time percent for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total csf time percent for the given appointment funding lines

getCsfStandardHoursTotal

public static BigDecimal getCsfStandardHoursTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total csf standard hours for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total csf standard hours for the given appointment funding lines

getCsfFullTimeEmploymentQuantityTotal

public static BigDecimal getCsfFullTimeEmploymentQuantityTotal(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
calcaulte the total csf full time employee quantity for the given appointment funding lines

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
the total csf full time employee quantity for the given appointment funding lines

getEffectiveAppointmentFundings

public static List<PendingBudgetConstructionAppointmentFunding> getEffectiveAppointmentFundings(List<PendingBudgetConstructionAppointmentFunding> AppointmentFundings)
Get a collection of PendingBudgetConstructionAppointmentFunding objects that are not purged and not excluded from total. This is used to decide whether or not to include csf, request or requestCsf amounts in the totals. This allows marked deleted line in the set, but this is benign since marked deleted lines have zero request and requestCsf amounts by definition and we want marked delete csf amounts included in the totals.

Parameters:
AppointmentFundings - the given appointment funding lines
Returns:
a collection of PendingBudgetConstructionAppointmentFunding objects that are not marked as deleted

getPercentChange

public static org.kuali.rice.kns.util.KualiDecimal getPercentChange(org.kuali.rice.kns.util.KualiInteger baseAmount,
                                                                    org.kuali.rice.kns.util.KualiInteger requestedAmount)
calculate the changing percent between the requested amount and the base amount

Parameters:
baseAmount - the given base amount
requestedAmount - the requested amount
Returns:
the changing percent between the requested amount and the base amount if both of amounts are numbers; otherwise, return null


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.