增加数据穿透界面

This commit is contained in:
2023-06-07 18:55:33 +08:00
parent e66750312e
commit b592ccfe5e
358 changed files with 30974 additions and 2388 deletions
+3 -7
View File
@@ -27,6 +27,7 @@ namespace FineUIPro.Web.DataShow
BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
// 绑定表格t
BindGrid();
this.Panel1.Title = "事故事件数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + "";
}
}
@@ -53,19 +54,14 @@ namespace FineUIPro.Web.DataShow
if (rbType.SelectedValue == "0")
{
strSql += " AND AccidentType.AccidentTypeName LIKE @values";
listStr.Add(new SqlParameter("@values", "% 未遂%"));
}
else
{
strSql += " AND '未遂' NOT IN (AccidentType.AccidentTypeName)";
strSql += " AND Record.IsAttempt='1'";
}
}
else
{
strSql = @"SELECT Record.AccidentReportId AS ID,Record.ProjectId,Project.ProjectCode,Project.ProjectName,
Record.AccidentTypeId,ConstText AS AccidentTypeName,Record.AccidentDate
,Unit.UnitId,Unit.UnitName,Record.States, 1 AS PeopleNum
,Unit.UnitId,Unit.UnitName,Record.States, Record.PeopleNum
, Record.Abstract AS Info
FROM Accident_AccidentReport AS Record
LEFT JOIN Sys_Const AS AccidentType ON AccidentType.ConstValue = Record.AccidentTypeId AND GroupId='AccidentReportRegistration'