Exemple #1
0
        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());
        }
Exemple #2
0
        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);
        }