public void CheckBeforeReport() { if (AvPayCalc == null) { AvPayCalc = new AvPayCalcInfo(true); } if (SickDayCalc == null) { SickDayCalc = new SickDayCalcInfo(true); } if (VacationCalc == null) { VacationCalc = new VacationCalcInfo(true, SI._CALC_VER); } if (WorkPayCalc == null) { WorkPayCalc = new WorkPayCalcInfo(true); } if (CalcR == null) { CalcR = new CalcRInfo(true, SI._CALC_VER); } if (BonusCalc == null) { BonusCalc = new BonusCalcInfo(CalcR, (KlonsADataSet.SALARY_PLUSMINUSRow[])null, true); } }
public void SetAvPayFrom(SalaryCalcInfo sc) { if (sc.AvPayCalc != null) { AvPayCalc = sc.AvPayCalc; } if (IsAvPayCalcDone) { return; } IsAvPayCalcDone = sc.IsAvPayCalcDone; AvPayRateHour = sc.AvPayRateHour; AvPayRateDay = sc.AvPayRateDay; }
public void SetAvPayFrom(AvPayCalcInfo ap, decimal aphour, decimal apday, decimal apcalday) { if (IsAvPayCalcDone) { return; } AvPayCalc = ap; AvPayRateHour = aphour; AvPayRateDay = apday; AvPayRateCalendarDay = apcalday; IsAvPayCalcDone = true; SI._AVPAYCALC_HOUR = AvPayRateHour; SI._AVPAYCALC_DAY = AvPayRateDay; SI._AVPAYCALC_CALDAY = AvPayRateCalendarDay; }
public void SetAvPayFrom(VacationCalcInfo vc) { if (vc.AvPayCalc != null) { AvPayCalc = vc.AvPayCalc; } if (IsAvPayCalcDone) { return; } IsAvPayCalcDone = vc.IsAvPayCalcDone; AvPayRateHour = vc.AvPayRateHour; AvPayRateDay = vc.AvPayRateDay; AvPayRateCalendarDay = vc.AvPayRateCalendarDay; }
public ErrorList CalcAvPay() { if (IsAvPayCalcDone) { new ErrorList(); } AvPayCalc = new AvPayCalcInfo(PreparingReport); var err = AvPayCalc.CalcAvPay(SRS, TotalSI); if (err.HasErrors) { return(err); } AvPayCalc.SetAvPayTo(this); return(new ErrorList()); }
public ErrorList GatAvPay(SalarySheetRowInfo sr) { if (IsAvPayCalcDone) { return(new ErrorList()); } AvPayCalc = new AvPayCalcInfo(PreparingReport); var err = AvPayCalc.CalcList(sr); if (err.HasErrors) { return(err); } IsAvPayCalcDone = true; AvPayRateHour = AvPayCalc.RateHour; AvPayRateDay = AvPayCalc.RateDay; AvPayRateCalendarDay = AvPayCalc.RateCalendarDay; return(new ErrorList()); }
public ErrorList MakeWorkTime2(out AvPayCalcInfo avpaycalc) { avpaycalc = null; var err = WorkPayCalc.CalcPayWithAvPay(SR, null); if (err.HasErrors) { return(err); } if (WorkPayCalc.AvPayCalc != null && WorkPayCalc.AvPayCalc.RateCalendarDay > 0.0M) { avpaycalc = WorkPayCalc.AvPayCalc; } if (!PreparingReport) { WorkPayCalc = null; } return(new ErrorList()); }
public void SetAvPayFrom(AvPayCalcInfo ap, decimal aphour, decimal apday, decimal apcalday) { if (IsAvPayCalcDone) { return; } AvPayCalc = ap; AvPayRateHour = aphour; AvPayRateDay = apday; AvPayRateCalendarDay = apcalday; IsAvPayCalcDone = true; TotalSI._AVPAYCALC_HOUR = AvPayRateHour; TotalSI._AVPAYCALC_DAY = AvPayRateDay; TotalSI._AVPAYCALC_CALDAY = AvPayRateCalendarDay; foreach (var lsc in LinkedSCI) { SetAvPayFrom(ap, aphour, apday, apcalday); } }
public ErrorList CalcAvPay() { if (SR.SalarySheetRowSet == null) { throw new Exception("Bad Init."); } var err_list = new ErrorList(); if (IsAvPayCalcDone) { return(err_list); } AvPayCalc = new AvPayCalcInfo(PreparingReport); err_list = AvPayCalc.CalcAvPay(SR.SalarySheetRowSet, SI); if (err_list.HasErrors) { return(err_list); } AvPayCalc.SetAvPayTo(this); return(err_list); }