20250329 工作台
This commit is contained in:
@@ -238,7 +238,7 @@ SELECT InspectionPersonId AS DataId
|
||||
,'../CQMS/Comprehensive/InspectionPersonEdit.aspx?ToDo=ToDo&InspectionPersonId='+Person.InspectionPersonId AS PCUrl
|
||||
FROM Comprehensive_InspectionPerson AS Person
|
||||
LEFT JOIN Sys_User AS users ON users.UserId =@userId
|
||||
WHERE Person.ProjectId=@projectId and (Person.IsOnSite=1 or Person.DepartureTime is not null) and
|
||||
WHERE Person.ProjectId=@projectId and Person.IsOnSite=1 and
|
||||
dateadd(day,-15,Person.ValidityDate)<getdate() and getdate()<Person.ValidityDate
|
||||
UNION ALL
|
||||
SELECT InspectionPersonId AS DataId
|
||||
@@ -252,7 +252,7 @@ SELECT InspectionPersonId AS DataId
|
||||
,'../CQMS/Comprehensive/InspectionPersonEdit.aspx?ToDo=ToDo&InspectionPersonId='+Person.InspectionPersonId AS PCUrl
|
||||
FROM Comprehensive_InspectionPerson AS Person
|
||||
LEFT JOIN Sys_User AS users ON users.UserId =@userId
|
||||
WHERE Person.ProjectId=@projectId and (Person.IsOnSite=1 or Person.DepartureTime is not null) and
|
||||
WHERE Person.ProjectId=@projectId and Person.IsOnSite=1 and
|
||||
Person.ValidityDate<getdate()
|
||||
UNION ALL
|
||||
SELECT InspectionMachineId AS DataId
|
||||
@@ -266,7 +266,7 @@ SELECT InspectionMachineId AS DataId
|
||||
,'../CQMS/Comprehensive/InspectionMachineEdit.aspx?ToDo=ToDo&InspectionMachineId='+Machine.InspectionMachineId AS PCUrl
|
||||
FROM Comprehensive_InspectionMachine AS Machine
|
||||
LEFT JOIN Sys_User AS users ON users.UserId =@userId
|
||||
WHERE Machine.ProjectId=@projectId and (Machine.IsOnSite=1 or Machine.LeaveDate is not null) and
|
||||
WHERE Machine.ProjectId=@projectId and Machine.IsOnSite=1 and
|
||||
dateadd(day,-15,Machine.NextTestDate)<getdate() and getdate()<Machine.NextTestDate
|
||||
UNION ALL
|
||||
SELECT InspectionMachineId AS DataId
|
||||
@@ -280,7 +280,7 @@ SELECT InspectionMachineId AS DataId
|
||||
,'../CQMS/Comprehensive/InspectionMachineEdit.aspx?ToDo=ToDo&InspectionMachineId='+Machine.InspectionMachineId AS PCUrl
|
||||
FROM Comprehensive_InspectionMachine AS Machine
|
||||
LEFT JOIN Sys_User AS users ON users.UserId =@userId
|
||||
WHERE Machine.ProjectId=@projectId and (Machine.IsOnSite=1 or Machine.LeaveDate is not null) and
|
||||
WHERE Machine.ProjectId=@projectId and Machine.IsOnSite=1 and
|
||||
Machine.NextTestDate<getdate()
|
||||
UNION ALL
|
||||
SELECT distinct Project.ProjectId AS DataId
|
||||
|
||||
Reference in New Issue
Block a user