事故警示调整
This commit is contained in:
@@ -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 ");
|
||||
|
||||
Reference in New Issue
Block a user