This commit is contained in:
2025-08-18 15:31:13 +08:00
parent 2ac352bdea
commit 00a2003749
2 changed files with 11 additions and 11 deletions
@@ -64,7 +64,7 @@ WHERE 1=1 ";
strSql += " AND P.UnitId = @UnitId";
listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId));
}
if (this.drpCheckMainType.SelectedValue != BLL.Const._Null)
if (this.drpCheckMainType.SelectedValue != null && this.drpCheckMainType.SelectedValue != BLL.Const._Null)
{
strSql += " AND S.CheckMainType = @CheckMainType";
listStr.Add(new SqlParameter("@CheckMainType", this.drpCheckMainType.SelectedValue));