移交表增加查询条件

This commit is contained in:
2024-02-04 10:47:46 +08:00
parent bfdd5b1b3b
commit 9d7679a283
34 changed files with 304 additions and 86 deletions
@@ -50,6 +50,12 @@ namespace FineUIPro.Web.Transfer
strSql += " AND Test_Package_START <= @InspectionDateZ";
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
}
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
{
strSql += " AND SystemName like @SystemName";
listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%"));
}
strSql += " order by Civil_Structure ";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);