This commit is contained in:
夏菊 2025-03-24 15:31:10 +08:00
parent 72ca366f7e
commit e863a39cde
5 changed files with 26 additions and 6 deletions

View File

@ -300,22 +300,41 @@ and (pu.RoleId like '%22F78A47-F59C-4FE8-9C43-2DD304CB2108%' or pu.RoleId like '
--or (DATEADD(day,60,(select top 1 EndDate from JDGL_QuantityCompletion WHERE ProjectId=@projectId order by EndDate desc))<GETDATE()) --or (DATEADD(day,60,(select top 1 EndDate from JDGL_QuantityCompletion WHERE ProjectId=@projectId order by EndDate desc))<GETDATE())
) )
UNION ALL UNION ALL
SELECT MonthPlan.MonthPlanId AS DataId SELECT DISTINCT --MonthPlan.MonthPlanId AS DataId
'' AS DataId
,'94287B92-7E96-4B90-BC6F-DAF30AE3B314' AS MenuId ,'94287B92-7E96-4B90-BC6F-DAF30AE3B314' AS MenuId
,'月度计划尚未完成' AS MenuName ,'进度管理,月度计划尚未完成' AS MenuName
,'' AS Content ,'' AS Content
,users.UserId ,users.UserId
,users.UserName ,users.UserName
,GETDATE() AS DataTime ,GETDATE() AS DataTime
,CONVERT(varchar(100),GETDATE(), 23) AS DataTimeStr ,CONVERT(varchar(100),GETDATE(), 23) AS DataTimeStr
,'../JDGL/Check/MonthPlanEdit.aspx?ToDo=ToDo' AS PCUrl ,'../JDGL/Check/MonthPlanEditNew.aspx?ToDo=ToDo&Months='+CONVERT(varchar(100),Months, 23) AS PCUrl
FROM JDGL_MonthPlan AS MonthPlan FROM JDGL_MonthPlan AS MonthPlan
LEFT JOIN Sys_User AS users ON users.UserId =@userId LEFT JOIN Sys_User AS users ON users.UserId =@userId
LEFT JOIN Project_ProjectUser as pu on pu.UserId=@userId LEFT JOIN Project_ProjectUser as pu on pu.UserId=@userId
WHERE MonthPlan.ProjectId=@projectId WHERE MonthPlan.ProjectId=@projectId
and MonthPlan.DutyPerson=@userId and MonthPlan.RealDate is null and DATENAME(DAY,GETDATE())>=22 and and MonthPlan.DutyPerson like '%'+@userId+'%' and MonthPlan.RealDate is null and DATENAME(DAY,GETDATE())>=22 and
DATENAME(year,GETDATE())=DATENAME(year,MonthPlan.PlanDate) and DATENAME(MONTH,GETDATE())=DATENAME(MONTH,MonthPlan.PlanDate) DATENAME(year,GETDATE())=DATENAME(year,MonthPlan.PlanDate) and DATENAME(MONTH,GETDATE())=DATENAME(MONTH,MonthPlan.PlanDate)
UNION ALL
SELECT DISTINCT --WeekPlan.WeekPlanId AS DataId
'' AS DataId
,'56A54B4B-BBA3-4249-9FFC-3A60DAC79059' AS MenuId
,'进度管理,周进度计划尚未完成' AS MenuName
,'' AS Content
,users.UserId
,users.UserName
,GETDATE() AS DataTime
,CONVERT(varchar(100),GETDATE(), 23) AS DataTimeStr
,'../JDGL/Check/WeekPlanEdit.aspx?ToDo=ToDo&WeekNo='+WeekPlan.WeekNo AS PCUrl
FROM JDGL_WeekPlan AS WeekPlan
LEFT JOIN Sys_User AS users ON users.UserId =@userId
LEFT JOIN Project_ProjectUser as pu on pu.UserId=@userId
WHERE WeekPlan.ProjectId=@projectId
and WeekPlan.DutyPerson like '%'+@userId+'%' and WeekPlan.IsOK =0 and DATENAME(DAY,GETDATE())<=DATENAME(DAY,WeekPlan.EndDate)
and DATENAME(year,GETDATE())=DATENAME(year,WeekPlan.EndDate) and DATENAME(MONTH,GETDATE())=DATENAME(MONTH,WeekPlan.EndDate)
ORDER BY DataTime DESC ORDER BY DataTime DESC
END END

View File

@ -2405,6 +2405,7 @@
<Content Include="File\Excel\DataIn\ProjectSetup导入模板.xls" /> <Content Include="File\Excel\DataIn\ProjectSetup导入模板.xls" />
<Content Include="File\Word\HSSE\环境监测数据接口.docx" /> <Content Include="File\Word\HSSE\环境监测数据接口.docx" />
<Content Include="libman.json" /> <Content Include="libman.json" />
<Content Include="File\Excel\DataOut\关键事项.xlsx" />
<None Include="packages.config" /> <None Include="packages.config" />
<Content Include="ReportPrint\ReportTabFile\分包商上传周报.tab" /> <Content Include="ReportPrint\ReportTabFile\分包商上传周报.tab" />
<Content Include="ReportPrint\ReportTabFile\HSSE日志暨管理数据收集.tab" /> <Content Include="ReportPrint\ReportTabFile\HSSE日志暨管理数据收集.tab" />
@ -19772,7 +19773,7 @@
</FlavorProperties> </FlavorProperties>
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">

View File

@ -52793,7 +52793,7 @@ namespace Model
} }
} }
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_WorkCode", DbType="VarChar(20)")] [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_WorkCode", DbType="NVarChar(100)")]
public string WED_WorkCode public string WED_WorkCode
{ {
get get