作业票

This commit is contained in:
2023-06-12 10:49:20 +08:00
parent c4bcf04d74
commit 9d94a295ce
23 changed files with 2718 additions and 12 deletions
@@ -144,8 +144,9 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
}
if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
{
strSql += " AND CheckTime <= @EndTime";
listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
strSql += " AND CheckTime < @EndTime";
DateTime endTime = DateTime.Parse(this.txtEndTime.Text).AddDays(1);
listStr.Add(new SqlParameter("@EndTime", endTime.ToString("yyyy-MM-dd")));
}
if (!string.IsNullOrEmpty(txtStartRectificationTime.Text.Trim()))
{
@@ -155,7 +156,8 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
if (!string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim()))
{
strSql += " AND RectificationTime <= @EndRectificationTime";
listStr.Add(new SqlParameter("@EndRectificationTime", this.txtEndRectificationTime.Text.Trim()));
DateTime endTime = DateTime.Parse(this.txtEndRectificationTime.Text).AddDays(1);
listStr.Add(new SqlParameter("@EndRectificationTime", endTime.ToString("yyyy-MM-dd")));
}
if (this.drpProblemTypes.SelectedValue != BLL.Const._Null)
{