예제 #1
0
        /// <summary>
        /// 空福利
        /// </summary>
        /// <returns></returns>
        public static EmployeeWelfare EmptyWelfare()
        {
            EmployeeWelfare        welfare;
            EmployeeSocialSecurity employeeSocialSecurity =
                new EmployeeSocialSecurity(SocialSecurityTypeEnum.Null, null, null, null, null, null);

            employeeSocialSecurity.BaseTemp               = "";
            employeeSocialSecurity.YangLaoBaseTemp        = "";
            employeeSocialSecurity.YiLiaoBaseTemp         = "";
            employeeSocialSecurity.ShiYeBaseTemp          = "";
            employeeSocialSecurity.EffectiveYearMonthTemp = new List <string>(new string[2] {
                "", ""
            });
            EmployeeAccumulationFund employeeAccumulationFund =
                new EmployeeAccumulationFund(string.Empty, null, null, string.Empty, null);

            employeeAccumulationFund.BaseTemp = "";
            employeeAccumulationFund.EffectiveYearMonthTemp = new List <string>(new string[2] {
                "", ""
            });
            employeeAccumulationFund.SupplyAccount = string.Empty;
            welfare =
                new EmployeeWelfare(employeeSocialSecurity, employeeAccumulationFund);
            return(welfare);
        }
        public override bool Equals(object obj)
        {
            EmployeeAccumulationFund eaf = obj as EmployeeAccumulationFund;

            if (eaf == null)
            {
                return(false);
            }
            else
            {
                if (eaf.Base.Equals(Base) &&
                    eaf.EffectiveYearMonth.Equals(EffectiveYearMonth) &&
                    eaf.Account.Equals(Account) && eaf.SupplyAccount.Equals(SupplyAccount) &&
                    eaf.SupplyBase.Equals(SupplyBase))
                {
                    return(true);
                }
            }
            return(false);
        }
예제 #3
0
        public EmployeeWelfare(EmployeeSocialSecurity socialSecurity, EmployeeAccumulationFund accumulationFund)

        {
            _SocialSecurity   = socialSecurity;
            _AccumulationFund = accumulationFund;
        }
예제 #4
0
 public EmployeeWelfare(int employeeWelfareID, EmployeeSocialSecurity socialSecurity,
                        EmployeeAccumulationFund accumulationFund) : this(socialSecurity, accumulationFund)
 {
     _EmployeeWelfareID = employeeWelfareID;
 }