Ejemplo n.º 1
0
        }                                                                            // component

        private void onDeductionPaymentIncludedInPayroll(object sender, Event e)
        {
            if (e is EventDeductionPaymentIncludedInPayroll)
            {
                var args = e as EventDeductionPaymentIncludedInPayroll;
                if (args.DeductionPayment.Equals(this))
                {
                    this._payroll_report = args.PayrollReport;
                }
            }
        }
Ejemplo n.º 2
0
        public static PayrollRecord Create(PayrollReport pr, Salary sal)
        {
            return(new PayrollRecord {
                _payroll_report = pr,
                _salary = sal,
                _employee = sal.GetEmployee(),

                // copy the gross value to avoid miscalculation in future
                _gross = sal.Gross.PreciseValue * (decimal)pr.MonthlyUnit
            });
        }
Ejemplo n.º 3
0
 public EventExcludedDeductionPayment(DeductionPayment payment, Employee employee, PayrollReport report)
 {
     this.DeductionPayment = payment;
     this.Employee         = employee;
     this.Report           = report;
 }
Ejemplo n.º 4
0
 public EventDeductionPaymentCreated(PayrollReport pr, Deduction d, DeductionPayment dp)
 {
     PayrollReport    = pr;
     Deduction        = d;
     DeductionPayment = dp;
 }
 /// <summary>
 /// Exclude deduction payment on created payroll report
 /// </summary>
 public CommandExcludeDeductionPayment(Employee employee, Deduction deduction, PayrollReport report)
 {
     this.Employee  = employee;
     this.Deduction = deduction;
     this.Report    = report;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// default unit = 1 (Unit.WHOLE)
 /// </summary>
 public CommandIncludeSalaryDeductionInReport(PayrollReport report, double unit = Unit.WHOLE)
 {
     this.PayrollReport = report;
     this.MonthlyUnit   = unit;
 }
 public EventDeductionPaymentIncludedInPayroll(PayrollReport report, DeductionPayment payment)
 {
     this.PayrollReport    = report;
     this.DeductionPayment = payment;
 }