Ejemplo n.º 1
0
        public OrgReportFee CalcFee(OrgReport report)
        {
            var BenClass = _benClassRepository.GetBenClass(report.BenClass.ID, Helper.YM2Date(report.Year, report.Month));
            var fee      = new OrgReportFee();

            fee.Report = report;
            fee.Dun    = report.Salary * BenClass.Total / 100;
            return(fee);
        }
Ejemplo n.º 2
0
 public OrgReportFee CalcReportEditDiff(OrgReportFee reportOld, OrgReportFee reportNew)
 {
     return(new OrgReportFee()
     {
         Report = reportNew.Report,
         Dun = reportNew.Dun - reportOld.Dun,
         TetAO = reportNew.TetAO - reportOld.TetAO,
         TetD = reportNew.TetD - reportOld.TetD,
         TmjAO = reportNew.TmjAO - reportOld.TmjAO,
         TmjD = reportNew.TmjD - reportOld.TmjD,
         EmdAO = reportNew.EmdAO - reportOld.EmdAO,
         EmdD = reportNew.EmdD - reportOld.EmdD,
         AjlAO = reportNew.AjlAO - reportOld.AjlAO,
         AjlD = reportNew.AjlD - reportOld.AjlD,
         YosAO = reportNew.YosAO - reportOld.YosAO
     });
 }