diff --git a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs index fa692eda..56e627f6 100644 --- a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs @@ -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;