示例#1
0
 public void Payday(PayCheck payCheck)
 {
     payCheck.GrossPay   = Classification.CalculatePay(payCheck);
     payCheck.Deductions = Affiliation.CalculateDeductions(payCheck);
     payCheck.NetPay     = payCheck.GrossPay - payCheck.Deductions;
     Method.Pay(payCheck);
 }
示例#2
0
        public void Payday(Paycheck paycheck)
        {
            var grossPay   = Classification.CalculatePay(paycheck);
            var deductions = Affiliation.CalculateDeductions(paycheck);
            var netPay     = grossPay - deductions;

            paycheck.GrossPay   = grossPay;
            paycheck.Deductions = deductions;
            paycheck.NetPay     = netPay;
            Method.Pay(paycheck);
        }
示例#3
0
        internal void Payday(PayCheck pc)
        {
            var grossPay   = Classification.CalculatePay(pc);
            var deductions = Affiliation.CalculateDeductions(pc);
            var netPay     = grossPay - deductions;

            pc.GrossPay   = grossPay;
            pc.Deductions = deductions;
            pc.NetPay     = netPay;
            Method.Pay(pc);
        }
示例#4
0
        public void Payday(Paycheck pc)
        {
            double grossPay   = Classification.CalculatePay(pc);
            double deductions = Affiliation.CalculateDeductions(pc);
            double netPay     = grossPay - deductions;

            pc.GrossPay  = grossPay;
            pc.Deduction = deductions;
            pc.NetPay    = netPay;
            Method.Pay(pc);
        }
示例#5
0
文件: Employee.cs 项目: xinyi88/Notes
        public void Payday(Paycheck paycheck)
        {
            double grossPay   = Classification.CalculatePay(paycheck);
            double deductions = affiliation.CalculateDeductions(paycheck);
            double netPay     = grossPay - deductions;

            paycheck.GrossPay   = grossPay;
            paycheck.Deductions = deductions;
            paycheck.NetPay     = netPay;
            Method.Pay(paycheck);
        }