1
This commit is contained in:
@@ -62,6 +62,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
|
||||
this.txtCertificateLimitTime.Text = string.Format("{0:yyyy-MM-dd}", welder.CertificateLimitTime);
|
||||
}
|
||||
this.txtWelderLevel.Text = welder.WelderLevel;
|
||||
this.txtExamDate.Text = GetWelderExamDate(welder.SitePersonId);
|
||||
//if (welder.IsUsed == true)
|
||||
//{
|
||||
// cbIsOnDuty.Checked = true;
|
||||
@@ -84,11 +85,30 @@ namespace FineUIPro.Web.CQMS.PersonManage
|
||||
this.txtCertificateCode.Text = string.Empty;
|
||||
this.txtCertificateLimitTime.Text = string.Empty;
|
||||
this.txtWelderLevel.Text = string.Empty;
|
||||
this.txtExamDate.Text = string.Empty;
|
||||
cbIsOnDuty.Checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 读取焊工考试时间,新增字段未纳入 DBML 时通过参数化 SQL 获取。
|
||||
/// </summary>
|
||||
private string GetWelderExamDate(string sitePersonId)
|
||||
{
|
||||
if (string.IsNullOrEmpty(sitePersonId))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
string strSql = @"SELECT ExamDate FROM SitePerson_Person WHERE SitePersonId=@SitePersonId";
|
||||
DataTable dt = SQLHelper.GetDataTableRunText(strSql, new SqlParameter("@SitePersonId", sitePersonId));
|
||||
if (dt.Rows.Count > 0 && dt.Rows[0]["ExamDate"] != DBNull.Value)
|
||||
{
|
||||
return string.Format("{0:yyyy-MM-dd}", dt.Rows[0]["ExamDate"]);
|
||||
}
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region 绑定数据-资质信息
|
||||
/// <summary>
|
||||
@@ -601,4 +621,4 @@ namespace FineUIPro.Web.CQMS.PersonManage
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user