2023-07-03
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user