移交表增加查询条件
This commit is contained in:
@@ -49,6 +49,12 @@ namespace FineUIPro.Web.Transfer
|
||||
strSql += " AND TestPackageSTART <= @InspectionDateZ";
|
||||
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
{
|
||||
strSql += " AND SYSTEM like @SYSTEM";
|
||||
listStr.Add(new SqlParameter("@SYSTEM", "%" + this.txtSystem.Text.Trim() + "%"));
|
||||
}
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
|
||||
Reference in New Issue
Block a user