试压管理修改。增加试压看板,和试压包打印绑值

This commit is contained in:
2025-09-27 00:35:29 +08:00
parent b41ed9caef
commit 9e84ef4a3c
16 changed files with 1028 additions and 792 deletions
@@ -113,11 +113,11 @@ namespace FineUIPro.Web.HJGL.TestPackage
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
@@ -130,6 +130,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
this.Grid1.Columns[4].HeaderText = "压力试验压力kpa(g)";
}
this.InitTreeMenu();//加载树
BindGrid2();
}
}
#endregion
@@ -306,7 +307,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
ptpPipe.TestMediumTemperature, ptpPipe.TestPressure, ptpPipe.HoldingTime,IsoInfo.PipelineCode,testMedium.MediumName
FROM dbo.PTP_PipelineList AS ptpPipe
LEFT JOIN dbo.HJGL_Pipeline AS IsoInfo ON ptpPipe.PipelineId = IsoInfo.PipelineId
LEFT JOIN dbo.Base_TestMedium AS testMedium ON testMedium.TestMediumId = IsoInfo.TestMedium
LEFT JOIN dbo.Base_TestMedium AS testMedium ON testMedium.TestMediumId = IsoInfo.TestMedium
WHERE ptpPipe.PTP_ID=@PTP_ID";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
@@ -321,6 +322,32 @@ namespace FineUIPro.Web.HJGL.TestPackage
Grid1.DataBind();
}
/// <summary>
/// 获取当前项目下所有试压包分析
/// </summary>
private void BindGrid2()
{
// 获取当前项目下所有试压包
var projectTestPackages = BLL.TestPackageEditService.GetTestPackageByProjectId(this.CurrUser.LoginProjectId);
if (projectTestPackages == null || projectTestPackages.Count == 0)
{
Grid2.DataSource = null;
Grid2.DataBind();
return;
}
// 分析每个试压包
var analyzeList = new List<Model.TestPackageAnalyzeOutput>();
foreach (var pkg in projectTestPackages)
{
var analyze = BLL.TestPackageEditService.getTestPackageAnalyze(pkg.PTP_ID, pkg.ProjectId);
analyzeList.Add(analyze);
}
// 绑定到Grid1
Grid2.RecordCount = analyzeList.Count;
Grid2.DataSource = analyzeList;
Grid2.DataBind();
}
#region
/// <summary>
/// 加载页面输入保存信息