20240625 质量月报
This commit is contained in:
@@ -69,15 +69,15 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
strSql += " AND P.CNProfessionalId=@CNProfessionalId";
|
||||
listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessional.SelectedValue));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text))
|
||||
{
|
||||
strSql += " AND P.InspectionDate >= @InspectionDate";
|
||||
listStr.Add(new SqlParameter("@InspectionDate", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
strSql += " AND P.InspectionDate >= @startTime";
|
||||
listStr.Add(new SqlParameter("@startTime", Funs.GetNewDateTime(txtStarTime.Text)));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text))
|
||||
{
|
||||
strSql += " AND P.InspectionDate <= @InspectionDate";
|
||||
listStr.Add(new SqlParameter("@InspectionDate", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
strSql += " AND P.InspectionDate <= @endTime";
|
||||
listStr.Add(new SqlParameter("@endTime", Funs.GetNewDateTime(txtEndTime.Text)));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Reference in New Issue
Block a user