Esempio n. 1
0
        public void AddGroupEmp(PaySlipGroupEmp model)
        {
            var payslip = new PaySlipEmp();

            payslip.EmpId = empService.GetByGroupId(model.GroupId).Select(p => p.Id).ToList();
            payslip.Id    = model.Id;
            AddListEmp(payslip);
        }
Esempio n. 2
0
 public void AddListEmp(PaySlipEmp model)
 {
     foreach (var item in model.EmpId)
     {
         var basicvm = new PaySlip()
         {
             EmployeeId      = item,
             PayrollPeriodId = model.Id,
         };
         Add(basicvm);
     }
 }
Esempio n. 3
0
 public ActionResult AddEmp(PaySlipEmp request)
 {
     payslipService.AddListEmp(request);
     return(Ok());
 }
Esempio n. 4
0
 public void DeleteEmp(PaySlipEmp model)
 {
 }