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"));
|
||||
|
||||
@@ -54,12 +54,12 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
sb.Append("AND P.CNProfessionalId=@CNProfessionalId ");
|
||||
listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessional.SelectedValue));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text))
|
||||
if (!string.IsNullOrWhiteSpace(txtStarTime.Text))
|
||||
{
|
||||
sb.Append("AND P.InspectionDate >= @startTime ");
|
||||
listStr.Add(new SqlParameter("@startTime", Funs.GetNewDateTime(txtStarTime.Text)));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text))
|
||||
if (!string.IsNullOrWhiteSpace(txtEndTime.Text))
|
||||
{
|
||||
sb.Append("AND P.InspectionDate <= @endTim ");
|
||||
listStr.Add(new SqlParameter("@endTime", Funs.GetNewDateTime(txtEndTime.Text)));
|
||||
|
||||
Reference in New Issue
Block a user