3、安全生产看板,现场人员、机具设备数据穿透只看在建项目数据

This commit is contained in:
2025-04-23 15:19:37 +08:00
parent e84ccc038a
commit 52638d8b10
3 changed files with 10 additions and 3 deletions
+4 -1
View File
@@ -40,8 +40,11 @@ namespace FineUIPro.Web.DataShow
strSql = @"SELECT V.LicenseManagerId,V.ProjectId,V.ProjectCode,V.ProjectName,V.LicenseTypeName,V.UnitName,V.UnitTypeName,V.IsHighRisk
,V.WorkAreaName,V.CompileDate,V.StartDate,V.EndDate,V.WorkStatesStr,V.LicenseTypeId,V.UnitId,V.LicenseManageContents
,V.CompileMan,V.CompileDate,V.States,V.UserName
FROM View_License_LicenseManager AS V
FROM View_License_LicenseManager AS V
LEFT JOIN Base_Project AS Project ON V.ProjectId =Project.ProjectId
WHERE 1=1";
//在建项目数据
strSql += " AND (Project.ProjectState = '1' OR Project.ProjectState IS NULL)";
if (this.rbType.SelectedValue=="2")
{
strSql += " AND V.WorkStates = @WorkStates";