コード例 #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);
        }
コード例 #2
0
        /// <summary>
        /// 社保计算
        /// </summary>
        public void InsuranceStatistics()
        {
            CityInsuranceCount          = 0;
            TownInsuranceCount          = 0;
            ComprehensiveInsuranceCount = 0;
            for (int i = 0; i < _EmployeeList.Count; i++)
            {
                DateTime monthFirstDay =
                    new DateTime(_EmployeeList[i].EmployeeDetails.StatisticsTime.Date.Year,
                                 _EmployeeList[i].EmployeeDetails.StatisticsTime.Date.Month, 1);

                EmployeeWelfareHistory history =
                    GetEmployeeWelfareHistory(_EmployeeList[i].EmployeeWelfareHistory, monthFirstDay);

                if (history != null && history.EmployeeWelfare != null)
                {
                    EmployeeSocialSecurity s = history.EmployeeWelfare.SocialSecurity;
                    if (s != null && s.Type.Id != SocialSecurityTypeEnum.Null.Id)
                    {
                        if (s.Type.Id == SocialSecurityTypeEnum.CityInsurance.Id)
                        {
                            CityInsuranceCount++;
                        }
                        else if (s.Type.Id == SocialSecurityTypeEnum.ComprehensiveInsurance.Id)
                        {
                            ComprehensiveInsuranceCount++;
                        }
                        else if (s.Type.Id == SocialSecurityTypeEnum.TownInsurance.Id)
                        {
                            TownInsuranceCount++;
                        }
                    }
                }
            }
        }
コード例 #3
0
        public override bool Equals(object obj)
        {
            EmployeeSocialSecurity ess = obj as EmployeeSocialSecurity;

            if (ess == null)
            {
                return(false);
            }
            else
            {
                if (ess.Base.Equals(Base) &&
                    ess.YangLaoBase.Equals(YangLaoBase) &&
                    ess.ShiYeBase.Equals(ShiYeBase) &&
                    ess.YiLiaoBase.Equals(YiLiaoBase) &&
                    ess.EffectiveYearMonth.Equals(EffectiveYearMonth) &&
                    ess.Type.Id.Equals(Type.Id))
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #4
0
        public EmployeeWelfare(EmployeeSocialSecurity socialSecurity, EmployeeAccumulationFund accumulationFund)

        {
            _SocialSecurity   = socialSecurity;
            _AccumulationFund = accumulationFund;
        }
コード例 #5
0
 public EmployeeWelfare(int employeeWelfareID, EmployeeSocialSecurity socialSecurity,
                        EmployeeAccumulationFund accumulationFund) : this(socialSecurity, accumulationFund)
 {
     _EmployeeWelfareID = employeeWelfareID;
 }