|
|
@@ -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; |
|
|
|