This commit is contained in:
geh 2026-02-02 10:00:47 +08:00
parent 59725e1f29
commit 474e208256
1 changed files with 15 additions and 4 deletions

View File

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