Преглед на файлове

疫情接种学生列表优化

新疆影视学院高职
zhangli преди 2 години
родител
ревизия
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;


Зареждане…
Отказ
Запис