diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-07-25-li.sql b/DataBase/版本日志/SGGLDB_WH_V2024-07-25-li.sql new file mode 100644 index 00000000..55f9ad7b --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-07-25-li.sql @@ -0,0 +1,14 @@ +update Sys_Menu set IsUsed=0 where MenuId in ('C2DD3E9E-DB18-466F-8FA0-19AD6E21EEF0','BB5EC5E1-A23D-4A3F-8772-CD40757974EC','F97BCF55-E450-4007-AD84-AB64B3496204','E6F5125D-DD94-4978-B7EB-D9C26694D86D') + + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('2352E44F-BE12-4012-B43F-AAF649EDAC32','Punchlist from完成统计表',null,'Transfer/Chart/PunchlistFromChartNew.aspx',30,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B','Menu_Transfer',0,1,1) +GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('CB76462E-9444-4946-B787-ECB33C21E6D0','Punchlist from分类表',null,'Transfer/Chart/PunchlistFromSort.aspx',35,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B','Menu_Transfer',0,1,1) +GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Icon,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('549DD0B6-05CB-4C75-B8F5-9AADDEDF399F','Punchlist from进度跟踪表',null,'Transfer/Chart/PunchlistFromProgress.aspx',40,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B','Menu_Transfer',0,1,1) +GO \ No newline at end of file diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 4473098d..c320958d 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -615,12 +615,6 @@ - - - - - - diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs index 56385e6f..c4149d2b 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs @@ -219,27 +219,64 @@ namespace FineUIPro.Web.CQMS.ManageReportNew #region 加载文本框内容 var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList(); - txtAre0.Text = txtReportList.FirstOrDefault(x => x.ContentType == "0").ContentText; - txtAre1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "1").ContentText; - txtAre2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText; - - txtAre20.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText; - txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText; - txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText; - txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText; - - imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl; - txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText; - imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl; - txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText; - imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl; - txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText; - imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl; - txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText; - imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl; - txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText; - imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl; - txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText; + if (txtReportList.FirstOrDefault(x => x.ContentType == "0") != null) + { + txtAre0.Text = txtReportList.FirstOrDefault(x => x.ContentType == "0").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "1") != null) + { + txtAre1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "1").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "2") != null) + { + txtAre2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "20") != null) + { + txtAre20.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "21") != null) + { + txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "22") != null) + { + txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "8") != null) + { + txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "23-1") != null) + { + imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl; + txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "23-2") != null) + { + imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl; + txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "23-3") != null) + { + imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl; + txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "23-4") != null) + { + imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl; + txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "23-5") != null) + { + imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl; + txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText; + } + if (txtReportList.FirstOrDefault(x => x.ContentType == "23-6") != null) + { + imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl; + txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText; + } #endregion //加载所有grid diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 7591adf4..f169c916 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -2021,6 +2021,9 @@ + + + @@ -17587,6 +17590,27 @@ PunchlistFromChart.aspx + + PunchlistFromChartNew.aspx + ASPXCodeBehind + + + PunchlistFromChartNew.aspx + + + PunchlistFromProgress.aspx + ASPXCodeBehind + + + PunchlistFromProgress.aspx + + + PunchlistFromSort.aspx + ASPXCodeBehind + + + PunchlistFromSort.aspx + TransferChart.aspx ASPXCodeBehind @@ -19072,8 +19096,9 @@ - -