事故警示调整

This commit is contained in:
2025-12-23 09:58:51 +08:00
parent 81291b03f7
commit 19c093122b
10 changed files with 127 additions and 24 deletions
@@ -64,9 +64,14 @@ namespace FineUIPro.Web.Accident
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.txtSearch.Text.Trim()))
{
sb.Append("and (Code like @txtSearch or Title like @txtSearch or Address like @txtSearch ) ");
sb.Append("and (Code like @txtSearch or Title like @txtSearch or Type like @txtSearch or Address like @txtSearch or Source like @txtSearch ) ");
listStr.Add(new SqlParameter("@txtSearch", "%" + this.txtSearch.Text.Trim() + "%"));
}
//if (!string.IsNullOrEmpty(this.txtType.Text.Trim()))
//{
// sb.Append("and (Type like @txtType ) ");
// listStr.Add(new SqlParameter("@txtType", "%" + this.txtType.Text.Trim() + "%"));
//}
if (!string.IsNullOrEmpty(this.txtAccidentDateStart.Text.Trim()))
{
sb.Append("and AccidentDate >= @AccidentDateStart ");