This commit is contained in:
毕文静 2025-06-27 15:09:59 +08:00
parent 3fa01b6206
commit df66193a9d
1 changed files with 11 additions and 2 deletions

View File

@ -280,12 +280,21 @@ namespace FineUIPro.Web.ContinuousPrint
var tb = SQLHelper.GetDataTableRunProc("HJGL_rpt_PipelineAttach", parameter); var tb = SQLHelper.GetDataTableRunProc("HJGL_rpt_PipelineAttach", parameter);
string IsoNo = string.Empty; string IsoNo = string.Empty;
string projectName = string.Empty;
if (!string.IsNullOrEmpty(hidISO_ID.Value)) if (!string.IsNullOrEmpty(hidISO_ID.Value))
{ {
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(this.Grid2.SelectedRowID); var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(this.Grid2.SelectedRowID);
if (isoInfo!=null) if (isoInfo != null)
{ {
IsoNo = isoInfo.ISO_IsoNo; 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).SetCellValue("工程名称");
ws.GetRow(dataRow).GetCell(1).CellStyle = titleStyle; 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; ws.GetRow(dataRow).GetCell(3).CellStyle = titleStyle;
} }
else if (r == 25) else if (r == 25)