2023-07-03

This commit is contained in:
2023-07-03 14:46:37 +08:00
parent cba6685973
commit e575463176
26 changed files with 517 additions and 52 deletions
@@ -19,10 +19,11 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
this.txtStartRectificationTime.Text = DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd");
this.txtEndRectificationTime.Text = DateTime.Now.ToString("yyyy-MM-dd");
UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, true);
QualityQuestionTypeService.InitQualityQuestionTypeDownList(drpQuestionType, true);
}
this.AnalyseData();
this.AnalyseData();
}
#endregion
@@ -66,6 +67,10 @@ namespace FineUIPro.Web.CQMS.Check
{
strSql += " and CheckDate <'" + DateTime.Parse( this.txtEndRectificationTime.Text.Trim()).AddDays(1).ToString("yyyy-MM-dd") + "' ";
}
if (drpUnit.SelectedValue != BLL.Const._Null)
{
strSql += " and UnitId='" + drpUnit.SelectedValue + "' ";
}
strSql += " group by UnitId,unitName ";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
@@ -138,6 +143,15 @@ namespace FineUIPro.Web.CQMS.Check
{
strSql += " and CheckDate <'" + DateTime.Parse(this.txtEndRectificationTime.Text.Trim()).AddDays(1).ToString("yyyy-MM-dd") + "' ";
}
if (drpUnit.SelectedValue != BLL.Const._Null)
{
strSql += " and UnitId='" + drpUnit.SelectedValue + "' ";
}
if (drpQuestionType.SelectedValue != Const._Null)
{
strSql += " AND QuestionType='"+ drpQuestionType.SelectedValue + "' ";
}
strSql += " group by QuestionDef,QuestionTypeStr ";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));