コード例 #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;
                }
            }
        }
コード例 #2
0
ファイル: PayrollRecord.cs プロジェクト: reke592/abcddd
        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
            });
        }
コード例 #3
0
 public EventExcludedDeductionPayment(DeductionPayment payment, Employee employee, PayrollReport report)
 {
     this.DeductionPayment = payment;
     this.Employee         = employee;
     this.Report           = report;
 }
コード例 #4
0
 public EventDeductionPaymentCreated(PayrollReport pr, Deduction d, DeductionPayment dp)
 {
     PayrollReport    = pr;
     Deduction        = d;
     DeductionPayment = dp;
 }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 /// <summary>
 /// default unit = 1 (Unit.WHOLE)
 /// </summary>
 public CommandIncludeSalaryDeductionInReport(PayrollReport report, double unit = Unit.WHOLE)
 {
     this.PayrollReport = report;
     this.MonthlyUnit   = unit;
 }
コード例 #7
0
 public EventDeductionPaymentIncludedInPayroll(PayrollReport report, DeductionPayment payment)
 {
     this.PayrollReport    = report;
     this.DeductionPayment = payment;
 }