From 474e20825664e29e9903c17ee3ecaae132ed7b3a Mon Sep 17 00:00:00 2001 From: geh <1923421292@qq.com> Date: Mon, 2 Feb 2026 10:00:47 +0800 Subject: [PATCH] 1 --- .../HSSE/SitePerson/PersonListEdit.aspx.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/SUBQHSE/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs b/SUBQHSE/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs index f9ec3cf..6f3dfee 100644 --- a/SUBQHSE/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs +++ b/SUBQHSE/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs @@ -434,6 +434,21 @@ namespace FineUIPro.Web.HSSE.SitePerson if (!string.IsNullOrEmpty(this.drpIsUsedType.SelectedValue)) { person.IsUsedType = this.drpIsUsedType.SelectedValue; + if (this.drpIsUsedType.SelectedValue == "0") + { + if (!string.IsNullOrEmpty(this.txtOutTime.Text.Trim())) + { + person.OutTime = Convert.ToDateTime(this.txtOutTime.Text.Trim()); + } + else + { + person.OutTime = DateTime.Now; + } + } + else + { + person.OutTime = null; + } } if (!string.IsNullOrEmpty(this.rblIsCardUsed.SelectedValue)) { @@ -509,10 +524,6 @@ namespace FineUIPro.Web.HSSE.SitePerson { person.InTime = Convert.ToDateTime(this.txtInTime.Text.Trim()); } - if (!string.IsNullOrEmpty(this.txtOutTime.Text.Trim())) - { - person.OutTime = Convert.ToDateTime(this.txtOutTime.Text.Trim()); - } if (!string.IsNullOrEmpty(this.txtBirthday.Text.Trim())) { person.Birthday = Convert.ToDateTime(this.txtBirthday.Text.Trim());