diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs index 14f50b7..494984b 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs @@ -280,12 +280,21 @@ namespace FineUIPro.Web.ContinuousPrint var tb = SQLHelper.GetDataTableRunProc("HJGL_rpt_PipelineAttach", parameter); string IsoNo = string.Empty; + string projectName = string.Empty; if (!string.IsNullOrEmpty(hidISO_ID.Value)) { var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(this.Grid2.SelectedRowID); - if (isoInfo!=null) + if (isoInfo != null) { IsoNo = isoInfo.ISO_IsoNo; + if (!string.IsNullOrEmpty(isoInfo.ProjectId)) + { + var project = BLL.Base_ProjectService.GetProjectByProjectId(isoInfo.ProjectId); + if (project != null) + { + projectName = project.ProjectName; + } + } } } @@ -539,7 +548,7 @@ namespace FineUIPro.Web.ContinuousPrint { ws.GetRow(dataRow).GetCell(1).SetCellValue("工程名称"); ws.GetRow(dataRow).GetCell(1).CellStyle = titleStyle; - ws.GetRow(dataRow).GetCell(3).SetCellValue(BLL.Base_ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId).ProjectName); + ws.GetRow(dataRow).GetCell(3).SetCellValue(projectName); ws.GetRow(dataRow).GetCell(3).CellStyle = titleStyle; } else if (r == 25)