20210726
This commit is contained in:
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user