1
This commit is contained in:
@@ -60,12 +60,12 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
strSql += " AND UnitId = @UnitId";
|
||||
listStr.Add(new SqlParameter("@UnitId", this.drpSponsorUnit.SelectedValue));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
|
||||
if (!string.IsNullOrWhiteSpace(txtStartTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND CheckDate >= @CheckDate";
|
||||
listStr.Add(new SqlParameter("@CheckDate", txtStartTime.Text.Trim() + " 00:00:00"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
if (!string.IsNullOrWhiteSpace(txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND CheckDate <= @CheckDateE";
|
||||
listStr.Add(new SqlParameter("@CheckDateE", txtEndTime.Text.Trim() + " 23:59:59"));
|
||||
|
||||
Reference in New Issue
Block a user