Ejemplo n.º 1
0
        public static string GetSupvLvlId(string emplid, int year, int month)
        {
            DateTime period_begin            = new DateTime(year, month, 1);
            DateTime period_begin_next_month = period_begin.AddMonths(1);
            string   supvLvlId = PsHelper.GetEmployeeSupvLvl(emplid, year, month);

            //如果是本月15号后入职的,取下月15号前职务等级
            if (supvLvlId == null)
            {
                supvLvlId = PsHelper.GetEmployeeSupvLvl(emplid, period_begin_next_month.Year, period_begin_next_month.Month);
            }
            return(supvLvlId);
        }