2023-07-03
This commit is contained in:
@@ -18,14 +18,18 @@
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowHeader="false" ShowBorder="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="20% 3% 20% 30% 15% 10%">
|
||||
<f:FormRow ColumnWidths="15% 15% 15% 2% 15% 30% 15% 10%">
|
||||
<Items>
|
||||
<f:DatePicker ID="txtStartRectificationTime" runat="server" Label="检查时间" LabelAlign="Right"
|
||||
<f:DropDownList runat="server" Label="责任单位" ID="drpUnit" LabelWidth="80px" Width="150px"> </f:DropDownList>
|
||||
|
||||
<f:DropDownList runat="server" Label="问题类别" ID="drpQuestionType" LabelWidth="80px" Width="150px"> </f:DropDownList>
|
||||
|
||||
<f:DatePicker ID="txtStartRectificationTime" runat="server" Label="检查时间" LabelAlign="Right" Width="100px"
|
||||
LabelWidth="80px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label3" runat="server" Text="至" Width="5px">
|
||||
</f:Label>
|
||||
<f:DatePicker ID="txtEndRectificationTime" runat="server">
|
||||
<f:DatePicker ID="txtEndRectificationTime" runat="server" Width="100px">
|
||||
</f:DatePicker>
|
||||
<f:RadioButtonList ID="rblState" runat="server" Label="分析类型" LabelWidth="80px" Width="250px"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="drpChartType_SelectedIndexChanged">
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -50,6 +50,24 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpQuestionType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpQuestionType;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartRectificationTime 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user