添加时间限制
This commit is contained in:
parent
6dd2db4824
commit
3a17c000be
|
@ -107,7 +107,14 @@ namespace FineUIPro.Web.HSSE.TowerCrane
|
||||||
{
|
{
|
||||||
strSql += " and AlarmType is not null ";
|
strSql += " and AlarmType is not null ";
|
||||||
}
|
}
|
||||||
|
if (!string.IsNullOrEmpty(txtStartTime.Text))
|
||||||
|
{
|
||||||
|
strSql += " and Date >='"+ txtStartTime.Text + "' ";
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(txtEndTime.Text))
|
||||||
|
{
|
||||||
|
strSql += " and Date <='" + txtEndTime.Text + "' ";
|
||||||
|
}
|
||||||
strSql += " order by Date desc";
|
strSql += " order by Date desc";
|
||||||
SqlParameter[] parameter = listStr.ToArray();
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
|
Loading…
Reference in New Issue