fix:无损检测单录入树节点显示点口名称

This commit is contained in:
李鹏飞 2026-05-02 11:28:05 +08:00
parent 4a7dec7a03
commit 790a4d7dfa
1 changed files with 6 additions and 2 deletions

View File

@ -310,12 +310,16 @@ 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) + "】";
TreeNode newNode = new TreeNode();
string code = trust.TrustBatchCode;
//string code = trust.TrustBatchCode;
// 未检测委托红色显示
if (BLL.Batch_NDEService.GetNDEViewByTrustBatchId(trust.TrustBatchId) == null)
{
Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(trust.PointBatchId);
if (batch != null && batch.IsClosed == true)
{
newNode.Text = code;