Просмотр исходного кода

疫情接种学生列表优化

新疆影视学院高职
zhangli 2 лет назад
Родитель
Сommit
5ac8397744
1 измененных файлов: 4 добавлений и 1 удалений
  1. +4
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/VaccinationInfo/VaccinationInfoService.cs

+ 4
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/VaccinationInfo/VaccinationInfoService.cs Просмотреть файл

@@ -149,7 +149,10 @@ t.VaccineAddress,t.FirstNeedle,t.SecondNeedle,t.ThirdNeedle,t.NotReason,t.Remark
{
foreach (var item in data)
{
item.Age = DateTime.Now.Year - Convert.ToInt32(item.CardId.ToString().Substring(6, 4));
if (!string.IsNullOrEmpty(item.CardId))
{
item.Age = DateTime.Now.Year - Convert.ToInt32(item.CardId.ToString().Substring(6, 4));
}
}
}
return data;


Загрузка…
Отмена
Сохранить