Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
 public void MakeWorkTime()
 {
     WorkPayCalc = new WorkPayCalcTInfo(PreparingReport);
     WorkPayCalc.CalcWorkPayT(this);
 }