Exemple #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;
                }
            }
        }
Exemple #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
            });
        }
Exemple #3
0
 public EventExcludedDeductionPayment(DeductionPayment payment, Employee employee, PayrollReport report)
 {
     this.DeductionPayment = payment;
     this.Employee         = employee;
     this.Report           = report;
 }
Exemple #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;
 }
Exemple #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;
 }