This commit is contained in:
2026-05-17 08:37:41 +08:00
2 changed files with 34 additions and 26 deletions
+1 -1
View File
@@ -18538,7 +18538,7 @@
</FlavorProperties> </FlavorProperties>
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v18.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
@@ -335,12 +335,20 @@ namespace FineUIPro.Web.HSSE.SitePerson
if (!string.IsNullOrEmpty(birthDateStr)) if (!string.IsNullOrEmpty(birthDateStr))
{ {
// 解析日期字符串为DateTime对象 // 解析日期字符串为DateTime对象
try
{
var birthDate = DateTime.ParseExact(birthDateStr, "yyyyMMdd", null); var birthDate = DateTime.ParseExact(birthDateStr, "yyyyMMdd", null);
if (birthDate.AddYears(60) < DateTime.Now) if (birthDate.AddYears(60) < DateTime.Now)
{ {
Grid1.Rows[i].RowCssClass = "Yellow"; Grid1.Rows[i].RowCssClass = "Yellow";
} }
} }
catch (Exception ex)
{
ErrLogInfo.WriteLog($"{person.PersonName}身份证号码异常:{idCard}");
continue;
}
}
} }
// if (person.IsUsedType=="2") //待审批 // if (person.IsUsedType=="2") //待审批
// { // {