This commit is contained in:
2021-07-26 11:08:59 +08:00
parent 7700a66999
commit 16bd4f1767
18 changed files with 1180 additions and 216 deletions
@@ -184,10 +184,17 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
new SqlParameter("@ProjectId", this.ProjectId)
};
if (!string.IsNullOrEmpty(unitId) && unitId != "0")
if (!string.IsNullOrEmpty(unitId))
{
strSql += " AND UnitId =@UnitId ";
listStr.Add(new SqlParameter("@UnitId", unitId));
if (unitId == "0")
{
strSql += " AND UnitId IS NULL ";
}
else
{
strSql += " AND UnitId =@UnitId ";
listStr.Add(new SqlParameter("@UnitId", unitId));
}
}
if (!string.IsNullOrEmpty(this.txtPersonName.Text.Trim()))
{