public void CheckBeforeReport() { if (AvPayCalc == null) { AvPayCalc = new AvPayCalcInfo(true); } if (SickDayCalc == null) { SickDayCalc = new SickDayCalcInfo(true); } if (VacationCalc == null) { VacationCalc = new VacationCalcInfo(true, TotalSI._CALC_VER); } if (WorkPayCalc == null) { WorkPayCalc = new WorkPayCalcTInfo(true); } if (CalcR == null) { CalcR = new CalcRInfo(true, TotalSI._CALC_VER); } if (BonusCalc == null) { BonusCalc = new BonusCalcInfo(CalcR, (KlonsADataSet.SALARY_PLUSMINUSRow[])null, true); } }
public ErrorList MakeWorkTime2(out AvPayCalcInfo avpaycalc) { avpaycalc = null; var err = WorkPayCalc.CalcWorkPayTAvPay(this); if (WorkPayCalc.AvPayCalc != null && WorkPayCalc.AvPayCalc.RateCalendarDay > 0.0M) { avpaycalc = WorkPayCalc.AvPayCalc; } if (err.HasErrors) { return(err); } if (!PreparingReport) { WorkPayCalc = null; } return(new ErrorList()); }
public void MakeWorkTime() { WorkPayCalc = new WorkPayCalcTInfo(PreparingReport); WorkPayCalc.CalcWorkPayT(this); }