2023-07-03
This commit is contained in:
@@ -17,8 +17,16 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.AnalyseData();
|
||||
if (!IsPostBack)
|
||||
{
|
||||
UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, true);
|
||||
this.drpRegisterTypes.DataTextField = "RegisterTypesName";
|
||||
this.drpRegisterTypes.DataValueField = "RegisterTypesId";
|
||||
this.drpRegisterTypes.DataSource = BLL.HSSE_Hazard_HazardRegisterTypesService.GetHazardRegisterTypesList("1"); //安全巡检类型
|
||||
this.drpRegisterTypes.DataBind();
|
||||
Funs.FineUIPleaseSelect(drpRegisterTypes);
|
||||
}
|
||||
this.AnalyseData();
|
||||
|
||||
}
|
||||
#endregion
|
||||
@@ -63,6 +71,15 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
{
|
||||
strSql += " and CheckTime <'" + DateTime.Parse( this.txtEndRectificationTime.Text.Trim()).AddDays(1).ToString("yyyy-MM-dd") + "' ";
|
||||
}
|
||||
|
||||
if (drpUnit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " and r.ResponsibleUnit='" + drpUnit.SelectedValue + "' ";
|
||||
}
|
||||
if (drpRegisterTypes.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " and r.RegisterTypesId='" + drpRegisterTypes.SelectedValue + "' ";
|
||||
}
|
||||
strSql += " group by u.UnitId,u.unitName ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
@@ -152,6 +169,14 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
{
|
||||
strSql += " and CheckTime <'" + DateTime.Parse(this.txtEndRectificationTime.Text.Trim()).AddDays(1).ToString("yyyy-MM-dd") + "' ";
|
||||
}
|
||||
if (drpUnit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " and r.ResponsibleUnit='" + drpUnit.SelectedValue + "' ";
|
||||
}
|
||||
if (drpRegisterTypes.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " and r.RegisterTypesId='" + drpRegisterTypes.SelectedValue + "' ";
|
||||
}
|
||||
strSql += " group by u.UnitId,u.unitName ,r.RegisterTypesId,t.RegisterTypesName ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
|
||||
Reference in New Issue
Block a user