日期:2014-05-17 浏览次数:20505 次
SELECT S.State,S.Name,P.operationSequenceId,S.Description,S.Quantity,P.StartCalendar,P.EndCalendar
FROM GanttMultiuser.dbo.EOperation as P join GanttMultiuser.dbo.EProductionOrder as S
WHERE @StartDate = P.StartCalendar and @State = S.State AND P.SelectedResourceId in ( Select P.SelectedResourceId from GanttMultiuser.dbo.EResource as T WHERE @Name = T.Name and T.Id = P.SelectedResourceId and @GroupId = T.ResourceGroupId )