代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
using BLL;
|
||||
using NPOI.POIFS.Crypt.Dsig;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.TestPackage
|
||||
{
|
||||
public partial class TestPackageDatePrint : PageBase
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// 试压包主键
|
||||
/// </summary>
|
||||
@@ -40,7 +36,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
}
|
||||
private void BindGrid()
|
||||
{
|
||||
var list = BLL.TestPackagePrintService.GetListByPTP_ID(PTP_ID);
|
||||
var list = BLL.TestPackagePrintService.GetListByPTP_ID(PTP_ID);
|
||||
//根据 BLL.TestPackagePrintService.TypeIntMap 和 list 进行左连接,确保所有类型都显示,获取对应的 PrintCount,没有的类型 PrintCount 为 0
|
||||
var result = from type in BLL.TestPackagePrintService.TypeIntMap
|
||||
join item in list on type.Key equals item.TypeInt into gj
|
||||
@@ -69,7 +65,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
// 在文件名中加入时间戳,例如:PTP_ID_2025-09-17-14-30-00.pdf
|
||||
string timeStamp = DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss");
|
||||
string fileName = $"{PTP_ID}_{timeStamp}.pdf";
|
||||
string filePath = System.IO.Path.Combine(Funs.RootPath, "FileUpload", fileName);
|
||||
string filePath = System.IO.Path.Combine(Funs.RootPath, "FileUpload", fileName);
|
||||
BLL.FastReportService.ExportMergeReport(FastReportItemList, filePath, "1");
|
||||
FileInfo info = new FileInfo(filePath);
|
||||
long fileSize = info.Length;
|
||||
@@ -80,6 +76,6 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
System.Web.HttpContext.Current.Response.TransmitFile(filePath, 0, fileSize);
|
||||
System.Web.HttpContext.Current.Response.Flush();
|
||||
System.Web.HttpContext.Current.Response.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user