コード例 #1
0
 public PaySlipResultViewModel(PaySlip paySlip)
 {
     Name        = paySlip.Name;
     PayPeriod   = paySlip.PayPeriod;
     GrossIncome = paySlip.GrossIncome;
     IncomeTax   = paySlip.IncomeTax;
     NetIncome   = paySlip.NetIncome;
     Super       = paySlip.Super;
 }
コード例 #2
0
        public bool PaySlipEquals(PaySlip obj)
        {
            if (this.Name == obj.Name &&
                this.PayPeriod == obj.PayPeriod &&
                this.GrossIncome == obj.GrossIncome &&
                this.IncomeTax == obj.IncomeTax &&
                this.NetIncome == obj.NetIncome &&
                this.Super == obj.Super
                )
            {
                return(true);
            }

            return(false);
        }