1
This commit is contained in:
@@ -434,6 +434,21 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||||||
if (!string.IsNullOrEmpty(this.drpIsUsedType.SelectedValue))
|
if (!string.IsNullOrEmpty(this.drpIsUsedType.SelectedValue))
|
||||||
{
|
{
|
||||||
person.IsUsedType = 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))
|
if (!string.IsNullOrEmpty(this.rblIsCardUsed.SelectedValue))
|
||||||
{
|
{
|
||||||
@@ -509,10 +524,6 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||||||
{
|
{
|
||||||
person.InTime = Convert.ToDateTime(this.txtInTime.Text.Trim());
|
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()))
|
if (!string.IsNullOrEmpty(this.txtBirthday.Text.Trim()))
|
||||||
{
|
{
|
||||||
person.Birthday = Convert.ToDateTime(this.txtBirthday.Text.Trim());
|
person.Birthday = Convert.ToDateTime(this.txtBirthday.Text.Trim());
|
||||||
|
|||||||
Reference in New Issue
Block a user