feat(hjgl): 完善管线预制与焊接业务

同步管线组件、材料和焊口关联数据,优化预制组件打印及焊接相关查询,减少业务台账与实际关联信息不一致。
This commit is contained in:
2026-09-16 15:49:02 +08:00
parent d090c174b9
commit 7b5b060ffc
13 changed files with 179 additions and 195 deletions
+7 -5
View File
@@ -312,11 +312,13 @@ namespace FineUIPro.Web.HJGL.NDT
}
foreach (var trust in trusts)
{
string code = string.Empty;
Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(trust.PointBatchId);
var pointBatch = PointBatchService.GetPointBatchById(batch.PointBatchId);
code = "DK-" + pointBatch.PointBatchCode.Substring(pointBatch.PointBatchCode.Length - 4) + "【" + string.Format("{0:yyyy-MM-dd}", pointBatch.StartDate) + "】" + "【" + UnitService.GetUnitNameByUnitId(pointBatch.UnitId) + "】";
string code = trust.TrustBatchCode;
Model.HJGL_Batch_PointBatch batch = null;
if (this.Type != "R")
{
batch = BLL.PointBatchService.GetPointBatchById(trust.PointBatchId);
code = "DK-" + batch.PointBatchCode.Substring(batch.PointBatchCode.Length - 4) + "【" + string.Format("{0:yyyy-MM-dd}", batch.StartDate) + "】" + "【" + UnitService.GetUnitNameByUnitId(batch.UnitId) + "】";
}
TreeNode newNode = new TreeNode();
//string code = trust.TrustBatchCode;
// 未检测委托红色显示